Stateless NAT64 and DNS64 support
I have the need for a IPv6-only network. Unfortunately, you still need to be able to connect to IPv4 hosts to visit most sites on the internet, this can be done using nat64. It would be nice to have this feature in OPNsense.
This is possible using NAT64 and DNS64
- For NAT64 a possibile solution is tayga
- For DNS64 there are several options:
- I have this working using BIND 9 (+tayga and radvd)
- TOTD can also do this, but appears to be abandonned.
Unfortunately, dnsmasq does not support dns64 yet.

I was experimenting with this at some point, TOTD sort of worked but overall it sucked. Not tried tayga. Would love to see this in opnsense eventually.
We'd need pf(4) support for this in order to drop in nicely.
I am also in need of this feature, Apple has made it a requirement for submission of Apps to their store (as of June 2016) that they support IPv6 only networks, they currently suggest supporting IPv4 via NAT64/DNS64 hence requirement of this feature so i can make an IPv6 Only network that can still do IPv4 Traffic. Any one aware how this can currently be achieved until this feature is added?
Hi, I would very much appreciate that the NAT64 and DNS64 are available under opnsens. Currently we have a Debian with Tayga for NAT and Bind for DNS, but we would prefer to put it in a opnsense.
note that there is an old ticket about that: https://github.com/opnsense/plugins/issues/16
Wikipedia says that PF can do NAT64 since OpenBSD 5.1 (https://de.wikipedia.org/wiki/NAT64#Unterst.C3.BCtzung) If PF in FreeBSD is not too old, it may support it as well.
FreeBSD doesn't support NAT64 in PF unfortunately, otherwise it probably was implemented already.
There seems to be progress on the ipfw side, but as far as I know, nobody is working on NAT64 in PF on FreeBSD. A plugin for Tayga is probably the only viable option at the moment, which is where ticket https://github.com/opnsense/plugins/issues/16 comes in. Although kernel level support (preferably in PF) would be better.
Adding Tayga to our ports collection might be an option, but we have to ask @fichtner about that, but in that case you have to configure it manually.
sure https://github.com/opnsense/tools/commit/d2a6720d8
@fichtner thanks! one stupid question, is Sixxs out of support?
Yes: https://www.sixxs.net/sunset/
EOL: 2017-06-06
I totally forgot, thanks!
timeout (+ duplicate https://github.com/opnsense/plugins/issues/16 )
if i am not mistaking, we are now based on hardenedbsd, which supports nat64? if so, will we be seeing this functionality come natively to opnsense? (need it to easily manage my network when going ipv6 with a provider that changes wan prefix almost daily)
If there's a volunteer to test with such a setup I can try to build a plugin with tayga .. but no promise for success
i should be able to test it if needed
@dsbaars @pierrehenrymuller sorry for bothering you, which bits did you set in BIND for DNS64? As it's also available I have to add some stuff there too.
Natively ipfw supports nat64 in both stateful and stateless modes, but since we use pf as our main firewall, it’s always the question how well those two play together.
A nice sample of both options can be found here: https://bsdrp.net/documentation/examples/nat64
Unfortunately pf only supports nat64 on openbsd (https://man.openbsd.org/pf.conf#af-to)
@AdSchellevis I had a quick look at tayga, most annoying thing is missing rc script, but it's not the first plugin where I had to add one. :)
@mimugmail startup scripts usually aren’t the challenge indeed😊 I haven’t tried any of the options, but if ipfw is easier to add, we might also consider adding it to core if someone wants to try out the rules first.
I'd say we start with a plugin, if adaoption rate is good we can still try ipfw (mostly performance-wise I'd guess).