Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I use an OpenVPN client to connect to my office network to run a remote control client (VNC, LogMeIn) from home. I think that the server is the Untangle OpenVPN server. My understanding is that while connected, all my internet traffic is routed through the office's internet connection (am I right?). Can I split the traffic such that only specific browser windows or specific websites will be tunneled to the office, while the rest of the traffic will get directly to the 'net?

For example, I want to be able to remotely control my office machine while at the same time not to bother the office network with browsing Stack Exchange sites?

share|improve this question

2 Answers 2

My understanding is that while connected, all my internet traffic is routed through the office's internet connection

It depends...

route print 0* tells more

Can I split the traffic such that only specific browser windows or specific websites will be tunneled to the office

Yes, you can, partially. Not "specific browser windows" or websites, but specific IP/subnets. Change local route table with route add and route change

share|improve this answer
    
Thanks. I will try that when I'm back home. –  ysap Oct 20 '11 at 14:30
    
Additional question - is the default the VPN and I have to explicitly reroute any other IP address, or can I make the VPN the exception to the rule? If so, how? –  ysap Oct 20 '11 at 14:32
    
AFAIK, all client-side VPN will add virtual TAP-unterface to Nrtwork Connections. You can just enable|disable "Use default gateway" in Advanced TCP-IP settings (General Tab) (tested on by my XP-host) –  Lazy Badger Oct 20 '11 at 14:44
    
OK, I am now connected from my XP machine via VPN to my office win 7 machine. Typing route print 0* shows a table with a few MAC (?) addresses, one Network Destination (which seems to be my local home network IP addresses) and one Default Gateway address (again, my home router address). I also see in the OpenVPN window the IP address and port of the remote network (I think). What do I learn from that? I want to redirect one LogMeIn session through the VPN and the rest of the traffic to go directly out to the 'net. How do I do that? –  ysap Oct 22 '11 at 19:16
    
Alternatively, I want to route the creativeLIVE video stream I am watching now directly out while having all the rest go through the VPN - this is less desirable but I can live with that too for now. –  ysap Oct 22 '11 at 19:26

You could use a service like http://www.whatismyip.com and compare the results with openvpn online and offline. If it doesn't match, you're probably fine.

If it does match, verify that you do not have something like the following in your openvpn.conf:

redirect-gateway def1

If you do, comment it out. If you're still having issues, post your openvpn.conf here :)

share|improve this answer
    
Thanks. First, my conf file does not contain this line. What's interesting is that using the link you provided I get the same IP address with VPN connected or disconnected, and the first two octets of this IP are same as the remote server's address. What's more intersting is when I tracert www.google.com from cmd, I don't see that IP in the list. –  ysap Oct 22 '11 at 23:16
    
Sooo.. if you get the same IP with with both VPN connected and disconnected, you are not routing non-subnet traffic through VPN... or, in other words, traffic with the same subnet that your openvpn server is providing is currently the only traffic that's going through openvpn. If you wanted to send all internet traffic through openvpn, add that redirect-gateway def1 line to your openvpn.conf :) –  adamrmcd Oct 23 '11 at 3:12
    
Is it just a coincidence then that the IP address reported by whatismyip is the same as the address defined for the VPN server (up to the 2 octets)? This sound a little fishy to me. –  ysap Oct 23 '11 at 3:38

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.