openconnect pulse and 2fa
2
votes
0
answers
1600
views
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
Connected to :443
SSL negotiation with
Connected to HTTPS on
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
Asked by nass
(1508 rep)
Feb 21, 2022, 04:01 PM
Last activity: Mar 23, 2022, 11:53 PM
Last activity: Mar 23, 2022, 11:53 PM