Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Pascal Hambourg <pascal.mail@plouf.fr.eu.org>
To: netfilter@vger.kernel.org
Subject: Re: IPTABLES port forwarding woes
Date: Fri, 30 May 2008 21:11:32 +0200	[thread overview]
Message-ID: <48405164.3000706@plouf.fr.eu.org> (raw)
In-Reply-To: <48401A99.70408@soe.ucsc.edu>

Erich Weiler a écrit :
> Hmmm..  Follow up question to this.  How would the outgoing connection 
> back to the internet find it's way back to the remote internet host, if 
> the source address was re-written to machine 1 when in came in to begin 
> with?  Wouldn't the original remote internet source address be lost in 
> all the translation?

No, the connection tracking takes care of all this. The NAT operations 
applied by iptables rules to the first packet creating the connection 
are recorded and applied to subsequent packets in the same direction, 
while the inverse operations are applied to reply packets in the 
opposite direction.

> Thanks for your insight by the way!

You're welcome.

  reply	other threads:[~2008-05-30 19:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-30 14:02 IPTABLES port forwarding woes Erich Weiler
2008-05-30 14:42 ` Pascal Hambourg
2008-05-30 15:17   ` Erich Weiler
2008-05-30 19:11     ` Pascal Hambourg [this message]
2008-05-30 21:06       ` Erich Weiler
  -- strict thread matches above, loose matches on Subject: below --
2008-05-30 13:24 Erich Weiler
2008-05-30 13:53 ` Pascal Hambourg
2008-05-30 13:15 Erich Weiler

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=48405164.3000706@plouf.fr.eu.org \
    --to=pascal.mail@plouf.fr.eu.org \
    --cc=netfilter@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox