linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* NAT (iptables) problem (help)
@ 2002-05-22 18:25 rita jacques
  2002-05-22 19:02 ` Jeff Largent
  0 siblings, 1 reply; 2+ messages in thread
From: rita jacques @ 2002-05-22 18:25 UTC (permalink / raw)
  To: linux-admin

[-- Attachment #1: Type: text/plain, Size: 736 bytes --]

hi
I have a LAN (linux mandrake boxes, with IP 192.168.0.1 to
20). I have also a gateway (linux mandrake with 2 Network
cards eth0 with real IP AAA.BBB.CCC.DDD and eth1 with
192.168.0.1).
What sould I do to redirect for example web request to
192.168.0.20 machine in the LAN...
I tried iptables...not working
(iptables -t nat -A PREROUTING -i eth0 -p tcp --dport www -
j DNAT --to-dest 192.168.1.20 )

Should I use iptables on the gateway only or on the linux
boxes on the LAN also?

What about SNAT?
is this correct
iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to-
source AAA.BBB.CCC.DDD

Thanks
Rita

______________________________________________________
Boîte aux lettres - Lycos - http://www.lycos.fr


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

end of thread, other threads:[~2002-05-22 19:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-22 18:25 NAT (iptables) problem (help) rita jacques
2002-05-22 19:02 ` Jeff Largent

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).