Documenting settings to get IPv6 setup within the configuration for OpenVPN, plus forwarding all IPv6 traffic through the VPN. This has no explanation of how you obtain IPv6 address prefixes frrom your ISP or how it works differently from IPv4, just simply how to get it working within OpenVPN. Will update if needed.

IPv6 Forwarding setup on Linux server within /etc/sysctl.conf, add the following lines, replace eth0 with your LAN interface:


OpenVPN Settings with the configuration file, in addition to the settings that are already there: |,routed%20through%20the%20OpenVPN%20Tunnel

proto udp6
push tun-ipv6
server-ipv6 2800:XXXX:XXX:XXXX:X::/110
ifconfig-ipv6 2800:XXXX:XXX:XXXX:X::1 2800:XXXX:XXX:XXXX:X::2
push "route-ipv6 ::/0"
push "route-metric 2000"
push "redirect-gateway ipv6"

To allow IPv6 to forward properly across the VPN, these IPv6 firewall rules must be added, I performed this within Webmin:

ip6tables -I FORWARD -i tun0 -o eth0 -s 2800:XXXX:XXX:XXXX:X::/110 -m conntrack --ctstate NEW -j ACCEPT 

ip6tables -I FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT 

ip6tables -t nat -I POSTROUTING -o eth0 -s 2800:XXXX:XXX:XXXX:X::/110 -j MASQUERADE