Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Mr Vandeley <mr.vandeley@gmail.com>
To: netfilter@vger.kernel.org
Subject: Nated connection behavior
Date: Thu, 5 Mar 2009 15:02:05 -0300	[thread overview]
Message-ID: <87fa72960903051002g75faf755vcf16d10241de04dc@mail.gmail.com> (raw)

Hi,
I have a question related to a NAT connection behavior:

|CLIENT|<----->[ROUTER/IPTABLES/NAT]<---->|SERVER|

Why is it that if I ping SERVER from CLIENT, I see answers comming
from SERVER internal IP instead of ROUTER external IP.

NAT rule on ROUTER is:

iptables -t nat -A POSTROUTING -s <IP SERVER> -o <external eth of
ROUTER> -j SNAT --to-source <external IP of ROUTER>

I know that it is awful too basic question for you guys, but if
someone could explain that I'll be much appreciative.

             reply	other threads:[~2009-03-05 18:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-05 18:02 Mr Vandeley [this message]
     [not found] ` <c1dd97640903051012j60998ea1o179195f0a3037a26@mail.gmail.com>
2009-03-06 11:50   ` Nated connection behavior Mr Vandeley

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=87fa72960903051002g75faf755vcf16d10241de04dc@mail.gmail.com \
    --to=mr.vandeley@gmail.com \
    --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