The OpenVPN Server Auto Setup Script project does not have official IPv6 support, but it can be achieved in a makeshift way through the process below:
Edit the OpenVPN configuration:
sudo nano /etc/openvpn/server/server.confAdd after the push "dhcp-option DNS" lines: (In this case, I used Google’s IPv6 DNS):
push "dhcp-option DNS6 2001:4860:4860::8888"
push "dhcp-option DNS6 2001:4860:4860::8844"Restart the service:
sudo systemctl restart openvpn-server@server.serviceTo test, access:
- test-ipv6.com - To run probes
- ipv6.tlund.se - IPv6 only
- ipv6c.tlund.se - IPv6 only, via a CNAME
- ipv6-only.tlund.se - IPv6 only, also requires resolver to be IPv6 enabled
- ipv6-onlyc.tlund.se - IPv6 only, via a CNAME, also requires resolver to be IPv6 enabled
- [2001:67c:1898:11::46] - IPv6 literal
Source: