Stopping all non-vpn connections

Discussion in 'privacy problems' started by n8chavez, Jun 14, 2016.

  1. n8chavez

    n8chavez Registered Member

    Jul 19, 2003
    Location Unknown
    I've been reading of various ways I can prevent connection that are not going through my VPN; 1. changing the DNS servers of all adapters to a VPN connection, 2. using windows firewall blocking all apps that are not part of my standard network type (private vs public), and 3. deleting a default gateway route to/from your router so my communication can exist. Methods 1 and 3 are in the .bat file below; 1 in blue text and 3 in red.

    I have this .bat file run at startup. According to AirVPN, method 3 should block all non-VPN connections (where is the router). The problem I've been having is that no connections at all can be made, even the VPN. I don't get why; a route has been added to my vpn server IP using mask from the default gateway using viscosity. That should be enough if the VPN IP is contained in the ovpn file, right? The funny thing is, if the address is changed to my interface adapter address,, this works just fine. But multiple people have told me that the default gateway address is needed instead. What am I doing wrong here?

    Can anyone help me accomplish method 3?

    (The orange text grants me admin rights)