Add OpenVPN redirect-gateway option for IPv6
When the OpenVPN Redirect Gateway (Force all client generated traffic through the tunnel) option is checked for an OpenVPN server and a client connects from a network with both IPv4 and IPv6 support, the IPv6 traffic not destined for the LAN network bypasses the OpenVPN tunnel.
#1 Updated by Steve Matos almost 4 years ago
If I add something like push "route-ipv6 2000::/3"; to my custom options it will get IPv6 to work though the tunnel, but that's kind of a hack. I'm guessing the default IPv6 gateway doesn't get pushed out upon connection.
(Note: Can someone with access please correct my spelling errors in the title?)
#2 Updated by Chris Buechler almost 4 years ago
- Tracker changed from Bug to Feature
- Subject changed from OpenVPN Redirect Gateway Doen't work for IPv6 Traffice to Add OpenVPN redirect-gateway option for IPv6
- Category set to OpenVPN
the existing option only adds the redirect-gateway def1, for IPv6 OpenVPN needs redirect-gateway-ipv6. That ought to be a separate checkbox as people might want one and not the other, and that way the behavior isn't changed for existing systems.
You can just add a 'push "redirect-gateway-ipv6 def1"' to the server's advanced options to accomplish that.