All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Andreas Wolff" <aw@mw-itcon.de>
To: netfilter@lists.netfilter.org
Subject: Re: assymetrical routing, iptables problem.
Date: Fri, 4 Oct 2002 08:49:07 +0200	[thread overview]
Message-ID: <002b01c26b72$22e964c0$03c0a8c0@aw01> (raw)
In-Reply-To: 20021003042738.24234.8348.Mailman@kashyyyk


> on A:
>
> # iptables -t nat -A PREROUTING -d 1.1.1.1 -p tcp --destination-port 80 \
>   -j DNAT --to-destination 2.2.2.2:8000
>
> Redirects packets destined for 1.1.1.1 port 80 to 2.2.2.2 port 8000. This
> is a way to 'tag' the packets (I opted against using any TCP options, as
> routers/firewalls along the way may play with said options).
>

> on B:
>
> # iptables -t nat -A POSTROUTING -s 2.2.2.2 -p tcp --source-port 8000 -j \
>   SNAT --to-source 1.1.1.1:80
>
I don't understand this rule. Do you really need this? The the nating of the
the packets going back is done on A. Doesn't this rule break the nating of
packets going back to A as they do not have the source address and port
expected by a (the 2.2.2.2 and the port 8000)?

Regards,

Andreas



       reply	other threads:[~2002-10-04  6:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20021003042738.24234.8348.Mailman@kashyyyk>
2002-10-04  6:49 ` Andreas Wolff [this message]
2002-10-03  2:15 assymetrical routing, iptables problem Bob Keyes
2002-10-03  6:46 ` Cedric Blancher
2002-10-03 17:36   ` Bob Keyes

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='002b01c26b72$22e964c0$03c0a8c0@aw01' \
    --to=aw@mw-itcon.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 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.