OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Virtual private networks »
  • OpenVPN not forcing the IPv6 traffic through the tunnel
« previous next »
  • Print
Pages: [1]

Author Topic: OpenVPN not forcing the IPv6 traffic through the tunnel  (Read 1142 times)

Fyroeo

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
OpenVPN not forcing the IPv6 traffic through the tunnel
« 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 !
Logged

bartjsmit

  • Hero Member
  • *****
  • Posts: 1420
  • Karma: 156
    • View Profile
Re: OpenVPN not forcing the IPv6 traffic through the tunnel
« Reply #1 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...
Logged

Fyroeo

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: OpenVPN not forcing the IPv6 traffic through the tunnel
« Reply #2 on: November 29, 2020, 07:36:07 pm »
It works ! I'm sure your answer will help other people !

Thank you  :)
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Virtual private networks »
  • OpenVPN not forcing the IPv6 traffic through the tunnel
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2022 All rights reserved
  • SMF 2.0.18 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2