From: Joel Newkirk <netfilter@newkirk.us>
To: bauer@mit.edu, netfilter@lists.netfilter.org
Subject: Re: SNAT in OUTPUT chain of the nat table question?
Date: Wed, 8 Jan 2003 21:36:02 -0500 [thread overview]
Message-ID: <200301082136.02090.netfilter@newkirk.us> (raw)
In-Reply-To: <20030109003721.GA26207@mit.edu>
On Wednesday 08 January 2003 07:37 pm, bauer@mit.edu wrote:
> Is there a good reason that I am unable to conceive of at the
> moment why SNAT is not a valid target in the OUTPUT chain of the
> nat table?
Turn this around somewhat. Can you present a case where SNAT would need
to be done in the nat OUTPUT chain, that could not also be performed in
the nat POSTROUTING chain achieving the same effect? Even if you're
going to localhost, packets don't go from OUTPUT straight to INPUT.
That said, connections originating on the local box addressed to any IP
of the box itself do NOT appear in the nat-PREROUTING chain. (If you try
to DNAT in PREROUTING it still comes back in INPUT instead of
forwarding) Obviously this is a case where DNAT would be required in nat
OUTPUT, where it is in fact a valid target. This is the only way to
DNAT a connection from the box to itself and send it elsewhere.
> Thanks,
> Steve
j
(stealing someone else's apropos sig, I believe Antony Stone's :^)
--
Perfection in design is achieved not when there is nothing left to add,
but rather when there is nothing left to take away.
- Antoine de Saint-Exupery
prev parent reply other threads:[~2003-01-09 2:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-09 0:37 SNAT in OUTPUT chain of the nat table question? bauer
2003-01-08 17:11 ` Ranjeet Shetye
2003-01-09 1:29 ` Athan
2003-01-09 2:36 ` Joel Newkirk [this message]
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=200301082136.02090.netfilter@newkirk.us \
--to=netfilter@newkirk.us \
--cc=bauer@mit.edu \
--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.