• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

OpenVPN tunnel drops / reconnects and traffic gets routed through a different network interface

OpenVPN
openvpn routage openvpn problem openvpn config
2
3
648
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T
    tunnel_12345
    last edited by Aug 10, 2022, 9:10 AM

    I have pfSense on proxmox.
    I have two network cards - one is for the OpenVPN tunnel traffic.
    While the OpenVPN tunnel is active, all traffic is routed via network card two.

    However, if the tunnel drops/reconnects, traffic gets momentarily routed through network card one. I do not want this, this is a problem.

    Is there a setting to ensure that when the tunnel drops, that the traffic does not get routed through the other network card and instead just drops?

    V 1 Reply Last reply Aug 10, 2022, 11:15 AM Reply Quote 0
    • V
      viragomann @tunnel_12345
      last edited by Aug 10, 2022, 11:15 AM

      @tunnel_12345
      I guess, the traffic is policy routed to the VPN gateway.

      If you want to avoid gateway switching in this case, go to System > Advanced > Miscellaneous and check "Do not create rules when gateway is down" (Skip rules when gateway is down).

      T 1 Reply Last reply Aug 10, 2022, 11:42 AM Reply Quote 0
      • T
        tunnel_12345 @viragomann
        last edited by Aug 10, 2022, 11:42 AM

        @viragomann Thanks for the reply! I have checked this box, however when I do reload the tunnel (momentarily dropping it) traffic does route to the other network card, so it must not be blocking it

        1 Reply Last reply Reply Quote 0
        3 out of 3
        • First post
          3/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.