Code Blog

Displaying 1-1 of 1 result.
2015/01/15 MacOSX,Network

I had some troubles connection to a server as the local subnet and the vpn office subnet used the same address range. The default route would therefore be to find the computer in the local subnet (via local gateway). In order to connect to the computer at the other end of the VPN I needed to add a specific rule to the routing table so that it must use the VPN network interface. See commands for Mac OS X (v 10.10) below.

View routing table

netstat -rn    (where "n" stands for numeric addresses)

List network interfaces


Add route

sudo route -v add -interface ppp0

(where ppp0 is the interface for my VPN connection)