Join GitHub today
OpenVPN server: IPv6
This optional section walks through providing IPv6 connectivity outside and inside the tunnel.
Optional: IPv6 outside the tunnel
To connect to your server over ipv6 (ipv6 transport) use this on both sides, e.g.
Optional: IPv6 inside the tunnel
In this document, we'll assume you have the following from the OpenVPN server's viewpoint:
- The OpenVPN server has an IPv6 IP of
2001:db8:0:abc::100/64on its LAN interface
- The following block is routed to the OpenVPN server host:
Note: This section is work in progress
# Uncomment the next line to enable packet forwarding for IPv6 # Enabling this option disables Stateless Address Autoconfiguration # based on Router Advertisements for this host net.ipv6.conf.all.forwarding=1
Add the following to a functioning OpenVPN config:
Pushing routes over the tunnel works much like it does in IPv4, but you use
push "route-ipv6 NETWORK/CIDR".
To redirect all Internet-bound traffic, use the current allocated public IP space like this:
push "route-ipv6 2000::/3"