I got it, must use select-group in the config file and have per group config files with different routes. Also "ocpasswd -g" for auth. Lucian ----- Original Message ----- > From: "Nux!" <nux at li.nux.ro> > To: "openconnect-devel" <openconnect-devel at lists.infradead.org> > Sent: Tuesday, 15 March, 2016 18:41:44 > Subject: Multiple groups and routes > Hello, > > When connecting using Openconnect to our Cisco Anyconnect I am offered 3 groups, > choosing a certain groups pushes certain routes to me, e.g.: > openconnect --disable-ipv6 -v -b -l vpn.blah > GROUP: [G1|G2|G3] > Username: > Password: > > How can I recreate this multiple groups/routes functionality with ocserv and > plain or pam auth? > > Regards, > Lucian