Linux Netfilter discussions
 help / color / mirror / Atom feed
* Redirect DHCP requests to DMZ?
@ 2003-04-23 10:08 Carsten Maass
  2003-04-23 12:19 ` Cedric Blancher
  0 siblings, 1 reply; 7+ messages in thread
From: Carsten Maass @ 2003-04-23 10:08 UTC (permalink / raw)
  To: netfilter

Hello List!

My network layout looks like this:


Local LAN (192.168.20.*)
     |
     |
   Switch
     |
     |
Router/Firewall ---- DMZ (192.168.21.*)
     |
     |
     |
  Internet


Everything runs smoothly, except for one thing: I am unable to redirect 
DHCP request from the clients on the local LAN to the DHCP server inside 
the DMZ.

So my question is: How can I accomplish this task? Is it at all possible 
to redirect broadcasts from one subnet to another with the help of iptables?

I tried the following rules, but they didn't work out:

$IPTABLES -A FORWARD -p UDP -i $LAN_IFACE --dport 67 --sport 68 -j ACCEPT
$IPTABLES -t nat -A PREROUTING -p UDP -i $LAN_IFACE -d 255.255.255.255 
--dport 67 -j DNAT --to-destination $DMZ_DHCP_IP

I am running iptables v1.2.6a with kernel 2.4.20 on Debian GNU/Linux 3.0.

Any hint would be highly appreciated.

Thanks in advance,
Carsten.




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-04-24  9:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-23 10:08 Redirect DHCP requests to DMZ? Carsten Maass
2003-04-23 12:19 ` Cedric Blancher
2003-04-23 16:21   ` Arnt Karlsen
2003-04-23 17:47     ` Carsten Maass
2003-04-23 16:58   ` Carsten Maass
2003-04-23 17:58     ` Jesper Lund
2003-04-24  9:00     ` Cedric Blancher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox