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

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

    Scheduled Pinned Locked Moved OpenVPN
    openvpn routageopenvpn problemopenvpn config
    3 Posts 2 Posters 702 Views
    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

      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 Reply Quote 0
      • V
        viragomann @tunnel_12345
        last edited by

        @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 Reply Quote 0
        • T
          tunnel_12345 @viragomann
          last edited by

          @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
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.