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

    Need traffic to drop if VPN is not up

    Scheduled Pinned Locked Moved OpenVPN
    5 Posts 3 Posters 582 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.
    • Z
      zeeohsix
      last edited by

      All,

      What I'm looking for is a configuration that will cause all outbound traffic to be dropped when my OpenVPN gateway is not up. Currently, if the VPN drops traffic just gets routed out the WAN interface even though I do not have a default gateway configured. This doesn't make sense to me because every other routing platform I have worked with will drop traffic without a default or other specific route in place.

      0ba25b5e-4c8e-4f27-be47-c18902aacdc9-image.png

      I've only got two rules on the interface that needs to route out the VPN. One rule for local private traffic, and then a rule for everything else to take the VPN gateway.

      M Bob.DigB 2 Replies Last reply Reply Quote 0
      • M
        marvosa @zeeohsix
        last edited by marvosa

        @zeeohsix
        Assuming you have an entire interface routed down the tunnel, I would define a source and explicitly block access to your WAN/default gateway. So, something like this:

        Allow - VPN_ROUTED_INTERFACE net/local_networks (default gateway)
        Allow - VPN_ROUTED_INTERFACE net/any (NORDVPN_VPNV4)
        Block - VPN_ROUTED_INTERFACE net/any (default gateway)

        1 Reply Last reply Reply Quote 1
        • Bob.DigB
          Bob.Dig LAYER 8 @zeeohsix
          last edited by

          @zeeohsix Under SystemAdvancedMiscellaneous activate that option and everything is good like it is.

          Capture.PNG

          Z 1 Reply Last reply Reply Quote 1
          • Z
            zeeohsix @Bob.Dig
            last edited by

            @bob-dig

            I was literally in the middle of typing a reply to @marvosa about finding that exact setting and it solving the problem when your reply came in.

            Thanks!

            Bob.DigB 1 Reply Last reply Reply Quote 0
            • Bob.DigB
              Bob.Dig LAYER 8 @zeeohsix
              last edited by

              @zeeohsix And, if you got more rules underneath, make this rule @marvosa suggested.

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