From: "Davide Guerri" Subject: Re: NAT for IPv6 FINISHED!!!!! Date: Wed, 26 May 2004 19:28:36 +0200 Sender: netfilter-devel-admin@lists.netfilter.org Message-ID: <011301c44346$e0e7dd00$0400000a@majinbu> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_010E_01C44357.A439BE80" Return-path: To: Errors-To: netfilter-devel-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: List-Id: netfilter-devel.vger.kernel.org This is a multi-part message in MIME format. ------=_NextPart_000_010E_01C44357.A439BE80 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Yasuyuki, how do you handle ipv6 fragment? It is possible to know original = fragments size? BTW, some time ago I have finished my first version of NA(P)T-PT but I = wrote my own connection tracking code (I had expires and I could not wait for = an IPv6 conntrack that could handle fragmentation). However my connection tracking code isn't that different from yours so, = with minimal effort, I can remove it and use your code when (and if) it will = meet my requirements. My NA(P)T-PT supports fragmentation (on IPv4 and IPv6 side), preserves = the DF(IPv4) and Fragment Header(IPv6) semantics (it is possible to do path = MTU discovery throught it and it can handle fragments correctly with DF flag set) and, for now, it works like the masquerade: it's unidiretional, in = the sense that connections may start only from IPv6 side, and IPv4 source address (for IPv6 to IPv4 translations) is calculated dinamically. Unfortunately to handle fragments correctly, I have had to re-write = parts of kernel fragmentation/defragmentation code, so I'm not that proud of my = code ;) Best regards, Davide Guerri. ----- Original Message -----=20 From: "Yasuyuki Kozakai" To: Cc: Sent: Wednesday, May 26, 2004 4:01 PM Subject: Re: NAT for IPv6 FINISHED!!!!! > [...] > I think your work is useful when someone writes NAT-PT with conntrack > because we can see how generalization is needed. > [...] > I revised nf_conntrack to able to handle fragmented IPv6 packets and > I'm debugging now. After committing and more testing it, I'll delete > ip6_conntrack from USAGI tree. > [...] > P.S. By the way, what situation do you want to use NAT with IPv6 ? ------=_NextPart_000_010E_01C44357.A439BE80 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi=20 Yasuyuki,
how do you handle ipv6 fragment? It is possible to know = original=20 fragments
size?

BTW, some time ago I have finished my first = version of=20 NA(P)T-PT but I wrote
my own connection tracking code (I had expires = and I=20 could not wait for an
IPv6 conntrack that could handle=20 fragmentation).

However my connection tracking code isn't that = different=20 from yours so, with
minimal effort, I can remove it and use your code = when=20 (and if) it will meet
my requirements.

My NA(P)T-PT supports=20 fragmentation (on IPv4 and IPv6 side), preserves the
DF(IPv4) and = Fragment=20 Header(IPv6) semantics (it is possible to do path MTU
discovery = throught it=20 and it can handle fragments correctly with DF flag
set) and, for now, = it=20 works like the masquerade: it's unidiretional, in the
sense that = connections=20 may start only from IPv6 side, and IPv4 source
address (for IPv6 to = IPv4=20 translations) is calculated dinamically.
Unfortunately to handle = fragments=20 correctly, I have had to re-write parts of
kernel=20 fragmentation/defragmentation code, so I'm not that proud of my=20 code
;)

Best regards,
Davide Guerri.

----- Original = Message=20 -----
From: "Yasuyuki Kozakai" <
yasuyuki.kozakai@toshiba.co.jp>
To: <
ipv6natlover@yahoo.com
>
Cc: <
netfilter-devel@lists.netfilter.org>
Sent: Wednesday, May 26, 2004 = 4:01=20 PM
Subject: Re: NAT for IPv6 FINISHED!!!!!

> [...]
> = I think=20 your work is useful when someone writes NAT-PT with conntrack
> = because we=20 can see how generalization is needed.
> [...]
> I revised=20 nf_conntrack to able to handle fragmented IPv6 packets and
> I'm = debugging=20 now. After committing and more testing it, I'll delete
> = ip6_conntrack=20 from USAGI tree.
> [...]
> P.S. By the way, what situation = do you=20 want to use NAT with IPv6 ?
------=_NextPart_000_010E_01C44357.A439BE80--