OpenWrt supports native IPv6 masquerading on the firewall zone.
Enable IPv6 Masquerading on WAN:
uci set firewall.@zone[1].masq6="1" uci commit firewall service firewall restart(Note: Ensure
@zone[1]corresponds to your WAN zone, or check your firewall zone index viauci show firewall).Announce the ULA Default Route:
For internal devices (using Unique Local Addresses, or ULA, starting withfd...) to know where to send traffic, announce the default route via Router Advertisements (RA):uci set dhcp.lan.ra_default="1" uci commit dhcp service odhcpd restartUse code with caution.
Disable IPv6 Source Filtering:
Allow upstream interfaces to process translated source addresses:uci set network.wan6.sourcefilter="0" uci commit network service network restartUse code with caution.