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

    Drop All Traffic If OpenVPN Disconnects?

    Scheduled Pinned Locked Moved NAT
    2 Posts 2 Posters 1.7k 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.
    • S
      sIn
      last edited by

      So I've successfully setup OpenVPN with pfSense. I've also been able configure firewall rules to force specific machines to bypass the vpn altogether. I have two machines that I want to allow to use the VPN and only the VPN. So basically if the VPN connection drops, internet activity ceases (only for two machines). Can someone help me with this? Thanks.

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        If the gateway on the firewall rules matching traffic from those workstations is set to only the VPN gateway and not to the WAN gateway, default, or a failover group, then it would do what you want.

        If you don't have a gateway entry for the VPN, assign the VPN interface and enable it with an IP type of 'none'.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

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