vpn on/off switch

Posted on 2011-04-28
Medium Priority
Last Modified: 2012-08-13
Is there any software/script that blocks all internet traffic if it's not going through openvpn or pptp? I'm looking for something simple that I could switch on and off whenever I need it.
Question by:11friend
  • 2
  • 2

Expert Comment

ID: 35489389
Take a look at -
VPNCheck: http://www.guavi.com/vpncheck_free.html
VPN LifeGuard: http://en.kioskea.net/download/download-11960-vpn-lifeguard

One of those should be what you're looking for.


Author Comment

ID: 35497934
Thanks. Do you know other solutions? The second software isn't in English and the first one doesn't work properly on my computer despite great effort from the author to help.
LVL 71

Expert Comment

ID: 35702488
I might think too simplistic, but if you do not use a default gateway while not connected, you cannot have Internet traffic ... While on PPTP/OpenVPN, just have the default gateway added.

Author Comment

ID: 35704308
That would be probably the best solution but I don't know how to do this exactly. I found something here http://www.experts-exchange.com/Networking/Wireless/WLAN/Q_22619759.html but I get a message that my route can't be changed.
LVL 71

Accepted Solution

Qlemo earned 2000 total points
ID: 35704409
That message only appears if you do not have a default gateway. But the issue is - you can't get to the VPN server, if it is not on LAN, and you haven't any specific routes for the VPN server IP set!

OpenVPN can set the routes on connection. See the redirect-gateway directive.

If you want to do it manually, you should add and change the default route:
   2>nul route add mask Ip.Addr.of.Gateway
   2>nul route change mask IP.Addr.of.Gateway
The 2>nul will prevent errors from being shown.

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

WARNING:   If you follow the instructions here, you will wipe out your VTP and VLAN configurations.  Make sure you have backed up your switch!!! I recently had some issues with a few low-end Cisco routers (RV325) and I opened a case with Cisco TA…
LinkedIn blogging is great for networking, building up an audience, and expanding your influence as well. However, if you want to achieve these results, you need to work really hard to make your post worth liking and sharing. Here are 4 tips that ca…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

755 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question