drop dhcp request from a particular mac address, after a dhcp relay

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.




      
--
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

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux