openconnect
openconnect copied to clipboard
Microsoft Azure MFA
Hello, I am not sure if it's possible to use this with Microsoft Azure MFA. I added a sign-in method for the account and using pass to generate the one time passwords.
My env file:
#!/bin/sh
CONTAINER_NAME='vpn'
URL='https://vpn.example.com'
USER='[email protected]'
AUTH_GROUP=''
PASS='******'
# Set the below if you need to specify OTP
# you can use a tool like pass-otp for this
# e.g. :
OTP="$(pass otp code my/secret/key)"
SEARCH_DOMAINS='example.com example.local'
# Subnets you want to route via the VPN (CIDR format)
# Set to 0.0.0.0/0 to route all traffic
# If adding multiple routes, add a space between them
ROUTES='0.0.0.0/0'
# Set extra openconnect arguments if needed
# EXTRA_ARGS=''
There are no errors from run.sh and docker container logs show this:
$ docker container logs e96c8d3f3314
___ ___ ___ __ ___ ___ __ __ ___ ___ __ ___
// ) ) // ) ) //___) ) // ) ) // ) ) // ) ) // ) ) // ) ) //___) ) // ) ) / /
// / / //___/ / // // / / // // / / // / / // / / // // / /
((___/ / // ((____ // / / ((____ ((___/ / // / / // / / ((____ ((____ / /
URL: https://vpn.example.com
Username: [email protected]
Password: [REDACTED]
Setting mandatory arguments...
Checking for authentication group parameter...
Checking for additional arguments...
Setting URL...
Starting OpenConnect VPN...
Arguments: --background [email protected] -i tun127 --passwd-on-stdin --non-inter https://vpn.example.com
POST https://vpn.example.com
Any idea what I might do wrong? Thank you in advance!