Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Jörg Harmuth" <harmuth@mnemon.de>
To: netfilter@lists.netfilter.org
Subject: Re: MASQUERADING
Date: Thu, 21 Jul 2005 13:19:56 +0200	[thread overview]
Message-ID: <42DF84DC.7070007@mnemon.de> (raw)
In-Reply-To: <04EE7AD0450F7B498BA216312943A1A102B5A7CA@blrse201.ap.infineon.com>

Chandra.Vempali@infineon.com schrieb:

> Suppose I masquerade ppp0 using
> iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
> 
> And now all packets will have a src ip addr as 192.168.0.2 will be
> changed to that of ppp0 , for example say 10.10.10.1
> Now my question is, when the reply comes, their destination addr will be
> that of ppp0 i.e 10.10.10.1
> Who will reverse translate this 10.10.10.1 destination addr to actual
> 192.168.0.2 ?

This is the job of connection tracking, basically ipt_conntrack.

Have a nice time,

Joerg



  reply	other threads:[~2005-07-21 11:19 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-21 10:59 MASQUERADING Chandra.Vempali
2005-07-21 11:19 ` Jörg Harmuth [this message]
2005-07-21 11:54   ` MASQUERADING Jan Engelhardt
2005-07-21 12:09     ` MASQUERADING Jörg Harmuth
  -- strict thread matches above, loose matches on Subject: below --
2003-10-31  3:19 Masquerading Fritz Mesedilla
2003-09-12 13:24 masquerading Cilliè Burger
2003-09-12  2:09 masquerading Wendy Moore
2003-09-12  5:04 ` masquerading Mark E. Donaldson
2003-02-24 10:40 masquerading Esteban
2003-02-24 17:07 ` masquerading Michael K
2003-02-24  8:50 masquerading Esteban
2003-02-24 10:21 ` masquerading hare ram
2003-02-24 10:33   ` masquerading Esteban Ribicic
2003-02-24  8:43 masquerading Esteban Ribicic
2002-10-21 23:51 Masquerading Wilson Fletcher
2002-10-23  9:53 ` Masquerading Antony Stone

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=42DF84DC.7070007@mnemon.de \
    --to=harmuth@mnemon.de \
    --cc=netfilter@lists.netfilter.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