OPNsense Forum

English Forums => Virtual private networks => Topic started by: Fyroeo on November 29, 2020, 02:18:30 pm

Title: OpenVPN not forcing the IPv6 traffic through the tunnel
Post by: Fyroeo on November 29, 2020, 02:18:30 pm
Hello everyone !
I made a OpenVPN server on my OPNSense 20.7.5 with the "Redirect Gateway" option activated.
But, as I can see, only the IPv4 traffic is being redirected. (when using traceroute6, it is going through my ISP)
It looks like that OpenVPN Connect is only told to redirect the IPv4 traffic according to the logs. (see the attached screenshot).

Do you know any way to enforce the IPv6 traffic to being redirected ?

Thanks !
Title: Re: OpenVPN not forcing the IPv6 traffic through the tunnel
Post by: bartjsmit on November 29, 2020, 05:23:31 pm
Add this line to the advanced configuration section of your OpenVPN server:

push "route-ipv6 2000::/3"

Bart...
Title: Re: OpenVPN not forcing the IPv6 traffic through the tunnel
Post by: Fyroeo on November 29, 2020, 07:36:07 pm
It works ! I'm sure your answer will help other people !

Thank you  :)