General > Users

How to deny certain MAC address for dhcp ?

(1/1)

bulek:
Hi,

I'd like to add certain MAC address to be ignored by dhcp. Have two questions:
- what is needed to add to dchcpd.conf ?
- any way to add this change to  survive network settings change via admin page ?

Thanks in advance,
regards,
Bulek.

pigdog:
Hi bulek,

Would iptables help?

Something like this?

iptables -A INPUT -m mac --mac-source 00:XX:XX:XX:XX:XX -j DROP

Where XX: etc is the MAC address.

https://help.ubuntu.com/community/IptablesHowTo

Cheers.

bulek:

--- Quote from: pigdog on April 26, 2015, 05:41:30 pm ---Hi bulek,

Would iptables help?

Something like this?

iptables -A INPUT -m mac --mac-source 00:XX:XX:XX:XX:XX -j DROP

Where XX: etc is the MAC address.

https://help.ubuntu.com/community/IptablesHowTo

Cheers.

--- End quote ---
Hi,

I like this solution - it's even better cause it works immediately. I'll try it.

Edit: I had to change -A to -I (otherwise rule is appended at the end and doesn't get triggerred).

Thanks,

Bulek.

Navigation

[0] Message Index

Sitemap 
Go to full version