Knowledgebase: General Questions
How to force an application to only use the VPN
Posted by on 13 April 2012 19:26

(warning: this tutorial is not official and will most likely not work or not work in the intended manner)

Courtesy of one of our forum members, here's a tutorial that was posted on the fourms showing how to force an application to only use the VPN and nothing else:

 

Want to know how to force any program to connect only via the VPN? I'll show you one way using the free firewall Comodo from http://personalfirewall.comodo.com/free-download.html.
This tut assumes you already have the Comodo firewall installed.

1) Right click the Comodo tray icon > "Open..."
2) Click "Firewall" tab 
3) Click "Network Security Policy" link
4) Click "Network Zones" tab
5) Click Add > "A New Network Zone..."
6) Name it "VPN"
7) Right click the new VPN entry and select "Add..."
8) Select "MAC address" from the dropdown
9) Hold the Windows key (the flag 2 over from the spacebar) and press R > type "cmd" without the quotes and press enter.
10) Type "ipconfig /all" without the quotes and press enter
11) Find "TAP-WIN32 Adapter V9" and copy the MAC address next to "Physical Address" into the dialog back in Comodo.
12) Click "Apply" > "OK"
13) Click "Network Security Policy" link
14) Click Add... > "Select" and browse to or select your application
15) Click "Copy From" > "Predefined Security Policies" > Blocked Application" then click "Apply"
16) Click "Block All Incoming and Outgoing Requests" under your application in the list then click "Edit..." 
17) Set the following properties
    Action: Allow
    Protocol: TCP or UDP
    Direction: In/Out
    Source Address > Type: Network Zone > Zone: VPN
    Destination Address > Type: Any Address
    Source Port > Type: Any
    Destination Port > Type: Any
18) Click Apply
19) Right click your application and select "Add Rule..."
20) Set the following properties
    Action: Block
    Protocol: IP
    Direction: In/Out
    Source Address > Type: Any Address
    Destination Address > Type: Any Address
    IP Details > IP Protocol: Any
21) Click Apply
22) Make sure your application has only the 2 rules we've made and that the "Allow" rule is first. If it is not you can select it and click "Move Up" to get the order right.
23) Click OK
24) Pat yourself on the back for following all that!

Your application is now only allowed to communicate via your VPN.
(50 vote(s))
Helpful
Not helpful