Yes im using NetworkManager and using NetworkManager-openconnect fixed the problem. thanks, you're a savior. But everytime i try to connect to vpn i have to click on "login" to connect (even though i have checked the save password option). Is it possible to disable this procedure and connect automatically (specially because i'm using nmcli to connect and i don't want any gui involved) On Tue, Aug 16, 2016 at 2:26 AM, David Woodhouse <dwmw2 at infradead.org> wrote: > On Tue, 2016-08-16 at 02:04 +0430, Amirmohsen Ahanchi wrote: >> what could be the issue here, why is it that only sometimes the route >> is created? > > My first guess is that DHCP is renewing and eating your default route > to the VPN. What is managing your local network? NetworkManager? In > that case you need to be using NetworkManager-openconnect, not running > openconnect from the command line. Otherwise, they'll be fighting over > routes. > > -- > dwmw2 > >