LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-11-2003, 09:02 PM   #1
m021998
LQ Newbie
 
Registered: Sep 2003
Posts: 3

Rep: Reputation: 0
dhcp server and iptables firewall


Hi,
Ive got a dhcp server on one network segment, 192.168.10.x, and my clients on another segment, 192.168.100.x . these are seperated by an iptables firewall on a multihomed machine. my problem is that when a machine on the .100 subnet sends a dhcp request to 255.255.255.255:67, i cant seem to make it forward to the 192.168.10.x segment. However, if i eventually get that far, will the dhcp server receive a proper arp reply for the client on another nic and network segment? should i be forwarding all arp between the two network segments? if so, how? i'd appreciate any help. right now im tying a firewall conf of:

iptables -t nat -I PREROUTING -i eth3 -p udp -s 0.0.0.0 --sport 68 -d 255.255.255.255 --dport 67 -j DNAT --to-destination 192.168.10.93

iptables -A INPUT -p udp --dport 67 -j ACCEPT

the dhcp machine accepts everything right now, it wont be locked down until i resolve this problem. thanks in advance for any help.

--paul
 
Old 09-12-2003, 08:45 AM   #2
Medievalist
Member
 
Registered: Aug 2003
Distribution: Dead Rat
Posts: 191

Rep: Reputation: 56
You need to install a DHCP forwarder on the firewall node. Or fake one with IPtables.... Mandrake and Red Hat both come with one packaged, you just need to load and start it.

Or check out this website. http://www-user.tu-chemnitz.de/~ensc/dhcp-fwd/
 
Old 09-12-2003, 09:52 AM   #3
m021998
LQ Newbie
 
Registered: Sep 2003
Posts: 3

Original Poster
Rep: Reputation: 0
that looks like just what i need. thanks for the link and ill post results when i get them.

--paul
 
Old 09-15-2003, 06:35 PM   #4
m021998
LQ Newbie
 
Registered: Sep 2003
Posts: 3

Original Poster
Rep: Reputation: 0
dhcrelay worked great. thanks for the help.

--paul
 
  


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
Can't get to IMAP server through iptables firewall/router matthanley Linux - Networking 0 05-05-2004 07:09 PM
Which Firewall, Proxy, DHCP, DNS and Email server package would you recommend? davidas Linux - Software 3 04-14-2004 04:24 AM
how to configure a firewall (iptables) to let me use a email server behind it? jorgelopez100 Linux - Networking 1 03-26-2004 09:49 AM
Iptables Firewall & Proxy Server chrisfirestar Linux - Security 22 12-22-2003 09:30 AM
UT2003 Server iptables Firewall Mods akfnphx Linux - Networking 2 11-23-2002 08:30 AM

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

All times are GMT -5. The time now is 11:03 PM.

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