I want to use openconnect instead of pulsesecure/pulseUI to connect to my company's vpn.this was ok in the old server but in the new they have added 2FA.
I saw this https://stackoverflow.com/a/63232539/959179 which looks promising.
so I try a very basic test:
echo -e "${myPasswd}\n${freshOTPcode} | sudo openconnect --protocol=pulse --passwd-on-stdin -u me@company.com <vpn server>
Connected to <ip_address>:443 SSL negotiation with <company vpn> Connected to HTTPS on <company vpn> Got HTTP response: HTTP/1.1 101 Switching Protocols **Unhandled Pulse authentication packet, or authentication failure** E [...] **Failed to obtain WebVPN cookie**
I cannot make anything out of it . The PulseSecure v9.1R13 connects fine to the server.
the error is the same if I use the following arguments
echo "myPasswd" | sudo openconnect --protocol=pulse -u me@company.com --passwd-on-stdin --token-mode=totp --token-secret=813940 slovpn.aviatnet.com/external