I tested it and your vpn-slice tool is exactly what I was looking for! Many thanks. Cumprimentos, Nuno Pereira On 26/04/2017 22:53, Daniel Lenski wrote: > On Wed, Apr 26, 2017 at 4:49 PM, Daniel Lenski <dlenski at gmail.com> wrote: >> On Apr 26, 2017 2:36 PM, "David Woodhouse" <dwmw2 at infradead.org> wrote: >> >> On Wed, 2017-04-26 at 18:48 +0000, Nuno Pereira wrote: >>> I intend on using OpenConnect on Linux without using a script so that I >>> can set the routing and DNS manually. I have checked the documentation >>> but the only option I found is --script=SCRIPT which forces me to >>> specify a file. >>> Is there a way to configure OpenConnect to NOT use any script and don't >>> set any routes? >>> Thanks in advance. >> -s /bin/true > You may also want to check out my vpn-slice tool which makes custom > routing and hostname addition very easy. It's currently Linux-only, > but I'll probably write a Windows/JS version at some point. > > openconnect --script 'vpn-slice 192.168.2.0/24 foobar=192.168.2.47' > > http://github.com/dlenski/vpn-slice > > </shameless-plug>, > Dan