All of lore.kernel.org
 help / color / mirror / Atom feed
From: rita jacques <ritajacques@lycos.fr>
To: linux-admin@vger.kernel.org
Subject: NAT (iptables) problem (help)
Date: Wed, 22 May 2002 14:25:57 -0400	[thread overview]
Message-ID: <1022091957007296@lycos.fr> (raw)

[-- 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


             reply	other threads:[~2002-05-22 18:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-22 18:25 rita jacques [this message]
2002-05-22 19:02 ` NAT (iptables) problem (help) Jeff Largent

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1022091957007296@lycos.fr \
    --to=ritajacques@lycos.fr \
    --cc=linux-admin@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.