Drop All Traffic If OpenVPN Disconnects?



  • 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.


  • Rebel Alliance Developer Netgate

    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'.


Locked