Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 09-30-2006, 06:00 PM   #1
LQ Newbie
Registered: Jan 2006
Location: Australia
Distribution: Slackware 10.2
Posts: 10

Rep: Reputation: 0
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??

Old 09-30-2006, 06:06 PM   #2
Registered: Sep 2005
Location: US
Distribution: Gentoo AMD64 Testing
Posts: 129

Rep: Reputation: 16
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).

Last edited by chadl; 09-30-2006 at 06:07 PM.
Old 09-30-2006, 08:13 PM   #3
Registered: Nov 2005
Location: Land of Linux :: Finland
Distribution: VirtualBox win 10 guest | OpenBSD 6.5 bridge | Fedora 31 | windows 10 pro 64bit
Posts: 407

Rep: Reputation: 195Reputation: 195
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.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
dhcp and iptables routing xtremeclones Linux - Networking 2 08-17-2006 05:13 PM
Iptables + DHCP kemplej Linux - Security 1 09-18-2004 02:05 AM
iptables with DHCP and hostname MartinN Linux - Networking 2 12-29-2003 10:55 AM
dhcp server and iptables firewall m021998 Linux - Networking 3 09-15-2003 07:35 PM
DHCP Iptables rob_roman23 Linux - Networking 2 09-05-2002 12:52 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:55 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration