LinuxQuestions.org
Visit the LQ Articles and Editorials section
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-17-2004, 11:45 AM   #1
kemplej
Member
 
Registered: Dec 2003
Posts: 235

Rep: Reputation: 30
Iptables + DHCP


What would I put in my rc.firewall to allow DHCP requests and answers into and out from a lan segment my firewall is guarding? IE: allow a outside router to push dhcp into a lan segement ?
 
Old 09-18-2004, 02:05 AM   #2
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Re: Iptables + DHCP

Quote:
Originally posted by kemplej
What would I put in my rc.firewall to allow DHCP requests and answers into and out from a lan segment my firewall is guarding? IE: allow a outside router to push dhcp into a lan segement ?
do you mean that you want dhcp requests that hit the gateway on the lan interface to be forwarded to a dhcp server on the external network??

i think you can do that like this:

Code:
iptables -A PREROUTING -p UDP -i $LAN_IFACE --dport 67 --sport 68 -j DNAT \
--to-destination bla.bla.bla.bla
iptables -A FORWARD -p UDP -i $LAN_IFACE -o $INET_IFACE --dport 67 \
--sport 68 -j ACCEPT

Last edited by win32sux; 09-18-2004 at 02:06 AM.
 
  


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
iptables, nat, dhcp with adsl modem/router and wireless AP gjhicks Linux - Wireless Networking 8 05-16-2005 07:15 AM
iptables with DHCP and hostname MartinN Linux - Networking 2 12-29-2003 10:55 AM
DHCP + IP Alias + public/private IP +iptables marcinbu Linux - Networking 4 09-23-2003 04:15 PM
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


All times are GMT -5. The time now is 06:08 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration