LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-20-2003, 12:30 PM   #1
jjfate
LQ Newbie
 
Registered: Jun 2003
Posts: 18

Rep: Reputation: 0
blocking DHCP requests


Is it possible to use IPTables to block a specific protocol like DHCP? Could anyone point me in the direction of a good tutorial?
 
Old 06-20-2003, 12:42 PM   #2
manthram
Member
 
Registered: Feb 2002
Location: Fairfax, VA
Distribution: RedHat 8, Mandrake9.1, Slack9
Posts: 456

Rep: Reputation: 31
yeah you can do that and dvery easily. just tell it to drop all the packets which have a source and destination ports of 67 and 68.


IPTABLES -A INPUT -i interface -dport 67:68 -sport 67:68 -j DROP


you can goto netfilter and check out their documentation
 
Old 06-20-2003, 01:01 PM   #3
jjfate
LQ Newbie
 
Registered: Jun 2003
Posts: 18

Original Poster
Rep: Reputation: 0
Perfect, thank you very much!
 
Old 06-20-2003, 01:05 PM   #4
jjfate
LQ Newbie
 
Registered: Jun 2003
Posts: 18

Original Poster
Rep: Reputation: 0
just one more thing I thought of, I have eth0 and eth1;

I would like to block dhcp requests coming only from eth1, does that fit into the syntax here as well?
 
Old 06-20-2003, 01:49 PM   #5
jjfate
LQ Newbie
 
Registered: Jun 2003
Posts: 18

Original Poster
Rep: Reputation: 0
oops nevermind....i saw the light!
 
  


Reply


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
Firewall blocking some POP3 requests Funky D Linux - Networking 5 09-23-2005 04:21 PM
Forwarding dhcp requests through a Linux router fr_laz Linux - Networking 1 05-19-2005 08:14 AM
Interface card(Ethernet) not sending DHCP requests vishalsethia Linux - Newbie 5 05-08-2005 01:12 AM
dhcp client requests a new address every time EdoardoC Linux - Networking 6 02-02-2005 05:02 PM
DHCP Requests and Discovers not receiving Response xmnemonic Linux - Networking 1 01-10-2004 09:01 PM


All times are GMT -5. The time now is 01:41 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration