Linux Netfilter discussions
 help / color / mirror / Atom feed
From: xchris <lyra@fastwebnet.it>
To: netfilter@lists.netfilter.org
Cc: Eric Joe <sysop@ns2.tje1.com>
Subject: Re: redirection
Date: Tue, 8 Apr 2003 21:40:27 +0200	[thread overview]
Message-ID: <200304082140.27919.lyra@fastwebnet.it> (raw)
In-Reply-To: <Pine.LNX.4.44.0304081443120.28439-100000@ns2.tje1.com>

On Tuesday 08 April 2003 08:44 pm, Eric Joe wrote:

> Do this
>
>
> iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -d x.y.z.1 -j DNAT
> --to x.y.z.2:80
>
> iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to x.y.z.1

am i wrong or i loose the original connection source address?

if i check the log in x.y.z.2 i see connections from x.y.z.1.
I really need to preserve the source address.
Thank you very much
xchris


  reply	other threads:[~2003-04-08 19:40 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-08 18:31 redirection xchris
2003-04-08 18:44 ` redirection Eric Joe
2003-04-08 19:40   ` xchris [this message]
2003-04-08 22:49     ` redirection Eric Joe
2003-04-08 23:17       ` redirection xchris
  -- strict thread matches above, loose matches on Subject: below --
2004-02-27 12:08 Redirection Sasa Stupar
2004-02-27 12:19 ` Redirection Antony Stone
     [not found] ` <008b01c3fd2b$f8910320$2a245cc2@cea05>
2004-02-27 12:41   ` Redirection Sasa Stupar
2004-02-27 12:46     ` Redirection Sasa Stupar
2003-04-09 13:10 redirection dhiraj.2.bhuyan
2003-04-09 13:34 ` redirection Christian Cernuschi
2003-04-09 13:38   ` redirection xchris
2003-04-09 10:15 Redirection Simone Sestini
2003-04-09 10:03 redirection dhiraj.2.bhuyan
2003-04-09 10:25 ` redirection xchris
2003-04-09  8:40 redirection dhiraj.2.bhuyan
2003-04-09  9:13 ` redirection xchris
2003-04-08 16:10 redirection Christian Cernuschi
2003-04-10 17:45 ` redirection Eric Joe

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=200304082140.27919.lyra@fastwebnet.it \
    --to=lyra@fastwebnet.it \
    --cc=netfilter@lists.netfilter.org \
    --cc=sysop@ns2.tje1.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox