On Thu, Jun 21, 2018 at 9:10 PM, Jeroen Balduyck
<[email protected]> wrote:
> Hi
>
> Can anyone tell me how to run multiple concurrent openconnect
> instances? I want a establish a client connection to 3 different VPN's
> at the same time and use policy based routing to a specifc VPN
> instance.
>
> Regards,
> Jeroen

Apologies for self-promotion, but I wrote vpn-slice for this exact
purpose (https://github.com/dlenski/vpn-slice). It's a replacement for
the usual vpnc-script used by openconnect, making it easy to set up
split-tunnel routing (e.g. routing only specific IP addresses and/or
subnets to a VPN connection):

    sudo openconnect gateway.bigcorp.com -u user1234 \
        -s 'vpn-slice 192.168.1.0/24 hostname1
alias2=alias2.bigcorp.com=192.168.1.43'

I use it all the time to connect to 2-6 VPNs simultaneously. If you
don't have IP address/subnet clashes in the multiple VPNs that you
want to connect to, it would be a lot easier than setting up
policy-based routing.

Dan

_______________________________________________
openconnect-devel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/openconnect-devel

Reply via email to