Happy user of openWRT here for a few years, running 24.10 on Archer C7. I have "private" wired and both "private" and "guest" WiFi networks; "private" and "guest" use different network segments.
I have a dock for laptops (wired network and monitors), this works perfectly with my personal equipment.
However, I want to use my employer's laptop (belongs on "guest" network) via the dock, when I connect it gets wired DHCP onto the private network as well as WiFi DHCP to the guest one. This is obviously not desirable!
I have tried to set Firewall traffic rules to block this, to no avail. Unplugging cable works but is clunky.
Is it possible to block the wired link to a specific MAC address, if so please can someone advise how to do it?
Whatever goes through the dock get the MAC of the dock's RJ45.
You've got nothing unique to filter/trigger on, unless you kill the wired connection (diable the Ethernet interface, pull the cable, etc) and force the work laptop to use wifi instead.
Hmm, good point. I thought it used a pass-through mode for MAC - I will have to check that out.
As I have it at present, the work laptop DHCP request gets through and gets a reply, even though I have tried to block it. Why does this not block the MAC address that it sees (and which I see in the logs)?
@egc Looking more closely at the links you provided, MAC filtering suggests connecting via SSH and trying something like this:
uci add dhcp host
uci set dhcp.@host[-1].name="mydesktop"
uci set dhcp.@host[-1].mac="00:11:22:33:44:55"
uci set dhcp.@host[-1].ip="ignore"
uci commit dhcp
service dnsmasq restart