Is it possible to use VPN connection for only one program and the rest of the traffic go through the local network?
More specifically, I am using the Official Cisco Client.
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.
Sign up to join this communityIs it possible to use VPN connection for only one program and the rest of the traffic go through the local network?
More specifically, I am using the Official Cisco Client.
You could install a virtual machine and run the cisco vpn together with your program of choice on the virtual machine while keeping you normal working environment connected normally.
Usually the only thing you can do is configuring a split tunnel based on a policy (e.g. target IP range/mask, see the examples at Cisco). If your program is only communicating with that IP, that would have the same effect for your purpose. However, this must be configured on the VPN-server side by the administrator.
On Windows®, it is possible to use VPN to communicate only with one or few hosts by specifying needed route entries (see "route /?"), but this works on per remote host basis. On linux/freebsd it is possible to start program with non-default routing table, so it does the trick: all applications use default routing table and traffic goes to local network and one specific program uses other routing table and traffic goes throw VPN.
If you go to the Cisco VPN client and go to Preferences. Uncheck "Enable local LAN access (if configured". For myself, I am using a remote desktop connection to a remote location and my local browser resolves to my local IP.
I am using the "Cisco AnyConnect VPN Client"
Here's an old article about Microsoft's "Direct Connect" which I've heard of in use recently. I haven't found any documentation links yet but you might if you're motivated.
As I understand it it's what you're asking for.
If you have a free pc or a VM, configure that PC to dial the VPN connection, and install a free based proxy server (in my experience they usually limit you to 3 users). I feel that this is okay for home use, then you configure the application to use the proxy. Most network based applications usually have proxy settings.
This will allow your normal traffic go out your gateway and the application will take the way of the proxy, which happens to be connect to the vpn.
You can set the routing for only one (or a selection of) ports to go through the VPN with other network access to go normal.
Setting say one browser to use the VPN (on port 80) and all the others to use direct is trickier
For not tech-savvy users best bet would be to use a VPN application that has this feature built-in. Expressvpn surely has it on windows and I think nord on mobile apps. https://www.hlplanet.com/how-to-use-vpn-for-only-one-application/