LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


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

Rep: Reputation: 0
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.
 
Old 09-30-2006, 05:06 PM   #2
chadl
Member
 
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 05:07 PM.
 
Old 09-30-2006, 07:13 PM   #3
//////
Member
 
Registered: Nov 2005
Location: Land of Linux :: Finland
Distribution: Arch Linux && OpenBSD 7.4 && Pop!_OS && Kali && Qubes-Os
Posts: 824

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


Reply

Tags
iptables



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 04:13 PM
Iptables + DHCP kemplej Linux - Security 1 09-18-2004 01:05 AM
iptables with DHCP and hostname MartinN Linux - Networking 2 12-29-2003 09:55 AM
dhcp server and iptables firewall m021998 Linux - Networking 3 09-15-2003 06:35 PM
DHCP Iptables rob_roman23 Linux - Networking 2 09-05-2002 11:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 11:37 AM.

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