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

Notices


Reply
  Search this Thread
Old 04-29-2008, 11:36 AM   #1
louiscastoria
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, 01:59 PM   #2
dkm999
Member
 
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:55 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