This GitHub Gist details the manual configuration needed on a UniFi controller to enable IPv6 tunneling with Hurricane Electric's Tunnelbroker service.
This is what works for me personally. Stuff you'll need to do to adapt this to your ends:
- Replace "local-ip" with your USG's public IPv4 address.
- Replace "remote-ip" with the address of your Tunnelbroker tunnel server.
- Replace "address" with the IPv6 address that your are allocated.
Follow these instructions and drop your config.gateway.json
file in the correct location e.g. /usr/lib/unifi/data/sites/$NAME/
.
Goodness, I'm afraid this was so long ago that I can't remember! I no longer use this config anymore as it was far too fragile coding an address when my home IP was dynamic. I doubt Ubiquiti have changed the JSON config format though so I'd be surprised if this didn't still work with the latest version of the controller software.
I do remember that you have to add firewall rules to explicitly accept ICMP and ICMPv6 packets as the UniFi gateway products block them by default. I don't remember for sure whether the above config interferes with those rules but again I'd be surprised.