drop dhcp request from a particular mac address, after a dhcp relay
I would like to inhibit a dhcp request from a particular mac address, on the dhcp server.
If the client is directly LAN connected, I would suppose the following will work :-
iptables ....... -m mac --mac-source
But to add a twist to the problem, the machine which must be blocked from obtaining a DHCP IP is connected to a DHCP relay, and therefore, the dhcp server is seeing only the mac adddress of the relay. Can this be accomplished with iptables ?
Is there a match which works something like this :-
iptables ..... -m bootp --mac-source 00:08:a1:ab:75:d1 -j DROP ?
Well, if 'iptables' can't serve the purpose, how about ebtables ?
Regards.
Quoted 7 lines · Ming-Ching Tiew
I would like to inhibit a dhcp request from a particular mac address, on the dhcp server.
If the client is directly LAN connected, I would suppose the following will work :-
iptables ....... -m mac --mac-source
Quoted 7 lines
But to add a twist to the problem, the machine which must be blocked from obtaining a DHCP IP is connected to a DHCP relay, and therefore, the dhcp server is seeing only the mac adddress of the relay. Can this be accomplished with iptables ?
Is there a match which works something like this :-
iptables ..... -m bootp --mac-source 00:08:a1:ab:75:d1 -j DROP ?Well, if 'iptables' can't serve the purpose, how about ebtables ?
Wouldn't it be a lot easier to adjust the DHCP server's configuration by adding a "deny" statement in the pool's permit list?
Signature · 2 lines
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.