Use VPN connection only for selected applications
Problem
I have access to a VPN and want to use it only for some applications, not all. For example: If I connect to a VPN I want only the applications Opera and Newsbin to use that VPN connection. All other applications, like f.e. Outlook, should use the normal internet connection (while the VPN is connected/open). Afaik this isn't possible, but I'm not totally sure. So therefore my question: is it doable?
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Fix for: Use VPN connection only for selected applications
It is possible to accomplish this, at least on Linux (and I'm thinking on BSD and OS X as well). You can do so by: Create an exra user for all VPN traffic. Create an extra routing table with 1 default route via the VPN. Configure Netfilter through Iptables to use the other routing table for all traffic originating from a specific User ID. Run the applications that should use the VPN under their own user. For example with 'sudo'. There are scripts for accomplishing the above steps here or there …
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix