Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

migrated from stackoverflow.com Jan 18 '11 at 13:19

This question came from our site for professional and enthusiast programmers.

add comment

7 Answers

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.

share|improve this answer
add comment

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.

share|improve this answer
    
I guess I should of specified. I really need a client side solution. I do not control the vpn server –  Tyler Jan 17 '11 at 17:45
add comment

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.

share|improve this answer
add comment

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"

share|improve this answer
add comment

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

share|improve this answer
add comment

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.

share|improve this answer
add comment

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.

share|improve this answer
1  
Forgive me, but at the moment I can't see how that answers the question. In addition, is there any chance you could do without the txt-speak? –  MadHatter Nov 27 '13 at 13:47
    
@MadHatter, this is why we have an 'edit' function on stackexchange. –  tristan Nov 27 '13 at 14:06
1  
Oddly, I was aware of that (and have approved your edit). However, life would be easier if authors didn't use it, as the help documents recommend they don't. My first point still stands. –  MadHatter Nov 27 '13 at 14:09
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.