Problem with route-add-cmd

chestnut mini.chenli at
Thu Nov 26 19:52:11 PST 2015

Dear openconnect administrator,

I wanted to add some routes when I connect to the VPN. I work on Mac OS X 
Yosemite. The example is from linux system and there isn't iproute command 
on mac. I found some iproute alternative on mac but it did not work. And 
then I change the command to mac style such as ‘route add 
-interface en0’or some other commands, but it's still not working.
All I want to reach is as follows. When I work in a internal network, 
sometimes I need to connect to the VPN to cross the GFW :( . I don't want 
the internal traffic going with the VPN because it is unreachable. 
Therefore I need to tell my route table to pass all internal traffic 
(,, through the old gateway when I 
connect to the VPN. I tried no-route but there was something wrong. Now I 
need some help to handle the situation above.
Sorry for my poor English. Hope you can understand. Thank you!

Best regards!

More information about the openconnect-devel mailing list