PDA

View Full Version : Routing Specific Network Traffic over a VPN




zak89
Oct 13, 2009, 05:41 PM
I am trying to connect to a Windows box (via Microsoft's Remote Desktop Client for OS X) over a VPN. I have it working pretty well, but with one wrinkle: in order to get my RDP connection to go through, I need to specify "Send All Traffic Over VPN Connection" in the Advanced Settings dialog when configuring the VPN connection.

I can understand why I need to do that, but the end result is that my internet access is all through the slow (and far away!) remote VPN, which is not ideal. Is there some way to specify which traffic (perhaps by IP addresses) I want sent over the VPN connection?

Just fyi, I'm running OS X 10.6 on a mid-09 MBP 13

Thanks!



belvdr
Oct 14, 2009, 11:20 AM
Try just adding a route for it.

zak89
Oct 14, 2009, 02:49 PM
Well, I think that is probably what I am asking about. I don't know how to add a route. Could someone elaborate and/or point me to some relevant documentation?

belvdr
Oct 15, 2009, 06:32 AM
Connect to the VPN, open Terminal, and do:


netstat -rn


Look for the routes that head to the VPN. If needed, check your IP in the VPN app.

Then in Terminal, do:

route add <Windows IP> mask 255.255.255.255 <your VPN IP>