From: Henrik Nordstrom <hno@marasystems.com>
To: Balazs Scheidler <bazsi@balabit.hu>
Cc: netfilter-devel@lists.samba.org
Subject: Re: NAT, not doing route_me_harder?
Date: Wed, 26 Jun 2002 12:04:23 +0200 [thread overview]
Message-ID: <200206261204.23831.hno@marasystems.com> (raw)
In-Reply-To: <20020626095557.GB4140@balabit.hu>
Balazs Scheidler wrote:
> But what happens when you initiate a connection on the host running
> netfilter, thus you have no PREROUTING chain?
You have the OUTPUT chain.
> If I'm doing SNAT in POSTROUTING, the routing decision is not redone, thus
> it leaves with the specified source address, but on the wrong interface.
See my previous reply.
> I think I now understand, have my packets marked in local OUTPUT, route
> based on that mark, and SNAT based on the marks. Is this the way you
> suggested? Hmm.. this sounds reasonable on the programmer's perspective,
> but is difficult to maintain from the user's: it needs two rules.
Yes, it requires three custom rules rather than two (there is also the routing
policy rule)
Having NAT reroute all packets due to source nat transformations would be a
significant performance impact only to support the corner cases where it is
handy..
Regards
Henrik
next prev parent reply other threads:[~2002-06-26 10:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-26 8:41 NAT, not doing route_me_harder? Balazs Scheidler
2002-06-26 9:13 ` Henrik Nordstrom
2002-06-26 9:55 ` Balazs Scheidler
2002-06-26 10:04 ` Henrik Nordstrom [this message]
2002-06-26 10:18 ` Balazs Scheidler
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=200206261204.23831.hno@marasystems.com \
--to=hno@marasystems.com \
--cc=bazsi@balabit.hu \
--cc=netfilter-devel@lists.samba.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.