Disconnect From P2P if VPN Drops
If you’re using Windows 7 as a host OS, there’s a chance you may need to occasionally use VPN to cover your ass. VPN services are excellent, but it’s an open-ended technology with a wide variety of possibilities. One of those unfortunate possibilities is that internet transfers can be resumed if your VPN connection is dropped for whatever reason. Well, kids, I’ve got a solution for you- a Windows 7 native solution at that. I’ll use uTorrent as my example.
Open the Network and Sharing center while connected to your VPN provider. Ensure that your home wired/wireless connection is set as “Home/Private” and the VPN is set as “Public”.
Open “Windows Firewall with Advanced Security”.
Add a new rule for Inbound Connections.
Select “Program” for rule type. Choose the path of the program you’d like to restrict to VPN only. For action, select “Block the connection”. In Profile application, check “Domain” and “Private”. Leave “Public” unchecked.
Name your rule, then repeat the steps for Outbound Connections.
Now you’re safe against the evils of the MAFIAA. Congratulations. I’m lazy as hell and didn’t feel like screencapping every freaking step, so use your imagination, play around, learn something new. If you have problems, it’s not my problem, it’s your problem.
Today’s “Cover Your Ass” tip is brought to you by this guy. Don’t get Sabu’d, do this RIGHT NOW.
NOTE: Just want to mention that the rules added by this guide are on a “per program” basis, which means if you set up these rules selecting ‘utorrent.exe’, firefox and other executables will be wholly unaffected if your VPN connection drops. It’s probably possible to sever all connections if VPN drops, though. Poke around and let me know what you find.
LastMod 2012-05-12 11:35 AM
License CC BY-NC-ND 4.0