OS X routing changed by Cisco AnyConnect

If you connect via VPN Cisco client, the routing table is changed.
You can see the actual routes with following command:

netstat -nr | grep "192.168"

# this is my result:
192.168.0/16       10.0.255.208       UGSc            1        0   utun1
192.168.191        link#17            UCS             2        0   utun1
192.168.191.255    link#17            UHWIi           2        2   utun1
192.168.203        link#17            UCS             2        0   utun1
192.168.203.16/32  link#4             UCS             1        0     en0
192.168.203.254/32 link#17            UCS             2        0   utun1
192.168.203.254    link#17            UHWIi           2       14   utun1
192.168.203.255    link#17            UHWIi           1        2   utun1

Due to the conflict with my networks from virtualization my networks stopped working properly.
I tried to change the routing however it was in vain, the route has been recreated each time.
I could observed what was happening with:

route -n monitor &
route -n delete -net 192.168.0/16 -interface utun1

# change does work neither
# route -n change -net 192.168.0/16 192.168.191.1

got message of size 132 on Tue Nov 15 12:02:03 2016
RTM_DELETE: Delete Route: len 132, pid: 1203, seq 1, errno 0, flags:
locks:  inits: 
sockaddrs: 
 192.168.0.0 10.0.255.208 (255) ffff ffff

got message of size 140 on Tue Nov 15 12:02:03 2016
RTM_ADD: Add Route: len 140, pid: 58, seq 125, errno 0, flags:
locks:  inits: 
sockaddrs: 
 192.168.0.0 10.0.255.208 255.255.0.0

The solution was to change

  1. No comments yet.

  1. No trackbacks yet.