This is a little docker container to run a IPv6 to IPv4 NAT ("NAT64") system. It will be used for automated testing Contiki systems as part of the Creator System Test Framework.
-
The IPv6 prefix length set in Tayga config file is important, this is defined by RFC6052. TOTD is passing the IPv4 address back in the low-order bytes of the IPv6 address, so you must ensure that Tayga is configured similarly (i.e.
/96
). -
The
creatordev/docker-nat64
is not being particularly smart with PID1, or restricting IP forwarding etc. Similarly, it could be a whole bunch smaller. However, since this is only really meant for test systems, we're not too bothered at the moment. -
There's currently some hardcoding of routes from the nat64 container to the client container, although this should only affect clients using TAP devices. This can probably be resolved/removed through the use of router announcements, but there's a little work required to get that running.
Thanks to the following projects:
See also:
- Shawn Tan's blog post for achieving the same thing on OpenWRT.
- unique-local-ipv6.com for generating your own local IPv6 addresses.