LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (http://www.linuxquestions.org/questions/linux-security-4/)
-   -   Iptables & Dhcp (http://www.linuxquestions.org/questions/linux-security-4/iptables-and-dhcp-488329/)

bluel1te 09-30-2006 06:00 PM

Iptables & Dhcp
 
Hi,

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

Thanks.

chadl 09-30-2006 06: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 08:13 PM

Quote:

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 12:49 PM.