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

    Strange VPN Kill Switch Problem

    OpenVPN
    3
    6
    636
    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.
    • R
      Ryu945
      last edited by

      At the bottom of my LAN firewall wall rules i have IP4 block of all protocols, ports and interfaces. This is what I use as a VPN kill switch. Above it is a rule that allow VPN "A" to grant internet. If the VPNs ever go down then the box should lose internet. This works at stopping internet on the WAN interface. The problem is that under some conditions, I notice some VPNs granting Pfsense box internet even though there is no rule to allow them to get through. I am not sure what causes this.

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

        @ryu945 If the rule is the last rule, it doesn't do anything, because everything which is not allowed is blocked anyways by default. A killswitch has to be designed differently.

        R 1 Reply Last reply Reply Quote 0
        • R
          Ryu945 @Bob.Dig
          last edited by

          @bob-dig What approach would you take?

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

            @ryu945 Make sure the following under System - Advanced - Miscellaneous is checked like shown:
            22.JPG

            Then place a block rule right below the rule with the vpn gateway.

            And turn off automatic gateway under System - Routing - Gateways.

            johnpozJ 1 Reply Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator @Bob.Dig
              last edited by

              https://forum.netgate.com/topic/67692/openvpn-kill-switch/6

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.7.2, 24.11

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

                @johnpoz said in Strange VPN Kill Switch Problem:

                https://forum.netgate.com/topic/67692/openvpn-kill-switch/6

                That would be the other solution but is more prone to user error and I had to much open states with it if I recall correctly.

                You can also combine both to be really secure. 😉

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