Routing Specific Network Traffic over a VPN

Discussion in 'Mac OS X Server, Xserve, and Networking' started by zak89, Oct 13, 2009.

  1. zak89 macrumors newbie

    Joined:
    Oct 13, 2009
    #1
    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!
     
  2. belvdr macrumors 603

    Joined:
    Aug 15, 2005
  3. zak89 thread starter macrumors newbie

    Joined:
    Oct 13, 2009
    #3
    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?
     
  4. belvdr macrumors 603

    Joined:
    Aug 15, 2005
    #4
    Connect to the VPN, open Terminal, and do:

    Code:
    netstat -rn
    
    Look for the routes that head to the VPN. If needed, check your IP in the VPN app.

    Then in Terminal, do:
    Code:
    route add <Windows IP> mask 255.255.255.255 <your VPN IP>
    
     

Share This Page