Stateful NAT64 Run
This document explains how to run Jool in Stateful NAT64 mode.
All the remarks in the first document’s Sample Network section apply here.
Nodes A through E:
Nodes V through Z:
Notice these nodes do not need a default route. This is a consequence of them being in the same network as the NAT64; T will be masking the IPv6 nodes, so V through Z think they’re talking directly to it.
In previous versions of Jool, T used to need two or more IPv4 addresses. Because pool4 now stores port ranges, this is no longer the case.
Remember you might want to cross-ping T vs everything before continuing.
Even though they share a lot of code, because of kernel quirks, the NAT64 module is separate from the SIIT one. The name of the NAT64 module is
Though the meaning of
pool6 is slightly different than in SIIT, the instance configuration looks pretty much the same:
The iptables configuration, on the other hand, needs to use the
JOOL target and match more specific transport addresses in the IPv4 side. Ports 61001-65535 of T’s owned IPv4 addresses are Jool’s default reserved mask range. More information can be found in pool4.
About those iptables rules:
As far as transport protocols are concerned, NAT64 Jool knows how to handle TCP and UDP (as well as ICMP if you count it). Because of the large transport header hacking that is required by a stateful translator, NAT64 Jool cannot translate unknown transport protocols like SIIT Jool. That, on top of the fact that iptables Jool drops traffic when it finds itself unable to translate it, is why it’s better not to default
all, and instead declare a dedicated rule for each one.
And again: Please remember that a suitable ICMP-matching rule is not optional on a healthy network.
If something doesn’t work, try the FAQ.
Test by sending requests from the IPv6 network:
Obviously, users should not need to be aware of IP addresses, much less know they need to append a prefix whenever they need to speak to IPv4. The DNS64 document will tell you how to make the prefix-address-hack transparent to users.
Because a NAT64 is stateful, only IPv6-started tests can be run at this point. See port forwarding if 4-to-6 translation is relevant for you.
- More complex setups might require you to consider the MTU notes.
- Please note that none of what was done in this tutorial survives reboots! Documentation on persistence will be released in the future.
The next tutorial explains DNS64.