Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 04-29-2008, 12:36 PM   #1
LQ Newbie
Registered: Oct 2003
Posts: 5

Rep: Reputation: 0
Block DHCP SERVER request on network

I have a server on a network that hands out IP addresses using DHCP. If someone on the network installs a router incorrectly that router will hand out IP addresses that are incorrect for the network. Anyone who gets a bad address cannot access the internet. Is there a way of using IPtables that can block these bad DHCP servers?
Old 04-29-2008, 02:59 PM   #2
Registered: Nov 2006
Location: Seattle, WA
Distribution: Fedora
Posts: 407

Rep: Reputation: 35
DHCP is an extension of the BOOTP protocol, which uses UDP ports 67 (server) and 68 (client). You ought to be able to construct an IPTABLES rule that drops port 68 packets that do not belong on the subnet, by examining the source address of those packets, and only allowing them to pass if they come from your trusted DHCP server.


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
Question: Request a specific IP address from a DHCP server? haertig Linux - Software 2 09-13-2006 05:32 PM
Need help getting dhcp client request to server. Budious Linux - Networking 0 03-26-2006 07:54 PM
Block URL request in server spiffytech Linux - Security 2 02-08-2006 10:16 PM
why DHCP client not sending own host name in DHCP request packet? sonika_singhi Linux - Networking 7 05-28-2005 06:18 AM
Setting up a DHCP server w/ the server on a wireless network Ionexchange Linux - Wireless Networking 0 05-08-2004 11:56 AM

All times are GMT -5. The time now is 10:45 PM.

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