NAT for IPv6 FINISHED!!!!!
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 -----
From: "Yasuyuki Kozakai" <[email protected]>
To: <[email protected]>
Cc: <[email protected]>
Sent: Wednesday, May 26, 2004 4:01 PM
Subject: Re: NAT for IPv6 FINISHED!!!!!
Quoted 9 lines
[...]
I think your work is useful when someone writes NAT-PT with conntrack because we can see how generalization is needed.
[...]
I revisednf_conntrackto able to handle fragmented IPv6 packets and I'm debugging now. After committing and more testing it, I'll deleteip6_conntrackfrom USAGI tree.
[...]P.S. By the way, what situation do you want to use NAT with IPv6 ?