Hi I'm using some VPN software that isn't the default OSx VPN support.

When it connects it clobbers my routing table, putting all traffic through the VPN.

What I want to do is have something like this route defined (I see this auto defined when I'm not on the VPN) ...

Destination  Gateway            Flags        Refs      Use   Netif Expire  a0:21:b7:c1:91:64  UHLWI           0        3     en3 

Where that Gateway Address is the Mac address of the machine.

When I connect the VPN and new Netif is added "utune0"

So I've tried

sudo route add -host -link a0:21:b7:c1:91:64

... And end up with

Destination  Gateway            Flags        Refs      Use   Netif Expire  a0:21.b7.c1.91.64  UGHS            0        0   utun0

... So wrong netif

The I try and add the -interface option

sudo route add -host -interface en3  -link a0:21:b7:c1:91:64

... I End up with

Destination  Gateway            Flags        Refs      Use   Netif Expire  10:dd:b1:a0:af:43  UHLS            0        0   en3

... where that gateway address is wrong, it is the mac address of my machines en3 adaptor....

Any ideas how to get the initial route I wanted?

  • Have you checked your VPN client for routing options? Most offer at least some option on what traffic to route through the VPN connection. – douggro Oct 22 '14 at 16:11
  • Thanks for the comment, Nah there are no options for setting that. looked at that before looking at anything else. – sMoZely Oct 22 '14 at 18:01

You must log in to answer this question.

Browse other questions tagged .