-   Linux - Security (
-   -   Iptables & Dhcp (

bluel1te 09-30-2006 05:00 PM

Iptables & Dhcp

I am using Slackware 10.2 and was playing around with my iptables rules file and noticed that even if I enter only one rule in my rules file - iptables -A INPUT -j DROP - I notice that when the PC boots it is still able to get a DHCP IP from my router. I created a rc.firewall file in the etc/rc.d folder so the rules are implemented when I boot.

I may be missing something here but I thought if I had only the above rule in my rules file, even DHCP requests would be blocked when the PC boots. Can anyone shed any light on this for me??


chadl 09-30-2006 05:06 PM

DHCP is not affected by the IPTables settings, because it binds directly to the network interface in much the same way as a packet monitor does (this is one of the reasons you need to run it as root).

////// 09-30-2006 07:13 PM


Originally Posted by chadl
DHCP is not affected by the IPTables settings

If that is the case it explains/solves my problems concerning bootps/dhcp, thanks for that info.

All times are GMT -5. The time now is 06:27 AM.