From: Herve Eychenne <rv@wallfire.org>
To: Harald Welte <laforge@netfilter.org>,
netfilter-devel@lists.netfilter.org
Subject: Re: (D)NAT with IPv6 (was "nf_conntrack & NAT")
Date: Wed, 7 Dec 2005 13:02:23 +0100 [thread overview]
Message-ID: <20051207120222.GX5617@eychenne.org> (raw)
In-Reply-To: <20051207070517.GA4361@rama.exocore.com>
On Wed, Dec 07, 2005 at 12:35:17PM +0530, Harald Welte wrote:
> On Tue, Dec 06, 2005 at 06:31:35PM +0100, Herve Eychenne wrote:
> > > for stuff like redirecting traffic, all you really need is stateless
> > > rewriting of the destination address. If people want that, the entire
> > > implementation fits in a single ip6tables target. no relation to
> > > nf_conntrack at all.
> >
> > Stateless? And what if you want the response (of the packets which have
> > been redirected) to come back with their initial address, as if they
> > had not been redirected? (if the client shouldn't know that, if this
> > should be transparent to him)
> then you need a static snat target that does this for all reply packets.
Ok, let's say that some packets originally destined to host A are
redirected to host B (dst addr changed).
Of course, regular packets coming from B should not have their
src addr systematically changed to A...
So how do you know that some packets coming back from host B are part of
a connection that was originally destined to host A (their src addr
should be changed to A again for transparency) without storing state?
> > This is also known as DNAT, for which the state has be stored, right?
> you don't really need state unless you want to do stuff like dynamically
> changing port numbers, etc.
Or dst addresses, yes. And that's what is needed here.
> > So, in one word: if we definitely need DNAT with IPv4 today, why
> > wouldn't we need DNAT with IPv6?
> stateful IPv6 NAT only over my dead body. Do you know that NAT is the
> single most destructive way that ever happened to todays internet? That
> it is the number one reason why VoIP doesn't really take off as much as
> it could? The number one reason for various non-deterministic breakage
> all over the place?
I know all of this.
> I've participated in the IETF BEHAVE group discussions, and there was
> concensus that any BEHAVE compliant NAT must not do NAT for ipv6.
I understand that core network developpers have been bitten more than once
by NAT issues, and that they've become so allergic to it that the
evocation of this simple word can make them cry at night.
But even if massive use of NAT should definitely be considered
harmful and should not be encouraged, some uses of NAT/PAT can still be
considered legitimate even with IPv6 as some specific technical needs are
still there.
Like a french expression says, I just think we should not throw the baby
with the (unclean) water of his bath.
Anyway, until IPv6 is widely used elsewhere than in Asia, there is no
real hurry for retarded occidentals like us. ;-)
> > > also, IPVS doesn't need any ip_conntrack/iptable_nat today,
> >
> > I don't know IPVS implementation, but maybe the IPVS-NAT method could
> > theorically share some code with the current NAT code... (they both
> > seem to handle the same kind of state table, even if at least the hashing
> > algorithm could probably be different, I guess)
> *sigh*. IPVS doesn't use ip_conntrack,
I was only saying that maybe it could have, from a technical point of
view (I always praise code factorization). I was not particularly
encouraging it here though.
> so they won't be using nf_conntrack. Also, it's their project and their decision.
Herve
--
_
(°= Hervé Eychenne
//)
v_/_ WallFire project: http://www.wallfire.org/
next prev parent reply other threads:[~2005-12-07 12:02 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-23 11:30 nf_conntrack & NAT Krzysztof Oledzki
2005-11-23 12:25 ` Yasuyuki KOZAKAI
2005-11-23 13:20 ` Herve Eychenne
2005-11-23 13:24 ` Jan Kasprzak
2005-12-06 15:43 ` Harald Welte
2005-12-06 17:31 ` Herve Eychenne
2005-12-07 7:05 ` Harald Welte
2005-12-07 7:00 ` Patrick Schaaf
2005-12-07 13:06 ` Harald Welte
2005-12-07 9:41 ` Patrick Schaaf
2005-12-07 12:02 ` Herve Eychenne [this message]
2005-12-07 11:22 ` Jozsef Kadlecsik
2005-12-07 14:54 ` (D)NAT with IPv6 (was "nf_conntrack & NAT") Herve Eychenne
2005-12-07 15:09 ` Jozsef Kadlecsik
2005-12-08 11:41 ` Herve Eychenne
2005-12-08 11:56 ` Patrick Schaaf
2005-12-09 4:56 ` Harald Welte
2005-12-09 8:56 ` Krzysztof Oledzki
2005-12-09 9:16 ` Patrick Schaaf
2005-12-09 4:57 ` Harald Welte
2005-12-12 20:42 ` Balazs Scheidler
2005-12-12 22:56 ` Alexander Samad
2005-12-13 8:57 ` Balazs Scheidler
[not found] ` <200511231225.jANCPmnh018866@toshiba.co.jp>
2005-11-23 13:44 ` nf_conntrack & NAT Krzysztof Oledzki
2005-11-25 4:54 ` Yasuyuki KOZAKAI
2005-11-26 23:52 ` Patrick McHardy
2005-11-27 8:42 ` 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=20051207120222.GX5617@eychenne.org \
--to=rv@wallfire.org \
--cc=laforge@netfilter.org \
--cc=netfilter-devel@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.