On 03/10/2010 08:30 AM, Ming-Ching Tiew wrote:
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 ?
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? -- Bob Nichols "NOSPAM" is really part of my email address. Do NOT delete it. -- To unsubscribe from this list: send the line "unsubscribe netfilter" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html