Allowing only a particular dhcp client :
===========================
# /sbin/modprobe ipt_mac
#iptables -A INPUT -p UDP --dport 67 --sport 68 -m mac --mac-source xx:xx:xx:xx:xx:xx -j ACCEPT
DHCP server runs on UDP port 67
DHCP client runs on UDP port 68
Here mac-source is dhcp client mac address.
===========================
# /sbin/modprobe ipt_mac
#iptables -A INPUT -p UDP --dport 67 --sport 68 -m mac --mac-source xx:xx:xx:xx:xx:xx -j ACCEPT
DHCP server runs on UDP port 67
DHCP client runs on UDP port 68
Here mac-source is dhcp client mac address.
No comments:
Post a Comment