kylemanna / docker-openvpn

🔒 OpenVPN server in a Docker container complete with an EasyRSA PKI CA
https://hub.docker.com/r/kylemanna/openvpn/
MIT License
8.62k stars 2.37k forks source link

Session still active when two factor was enabled, but server goes away #724

Open KES777 opened 1 year ago

KES777 commented 1 year ago

image

How to reproduce:

  1. Enable 2fa
  2. Connect to VPN
  3. reboot VPN server
  4. openvpn3 sessions-list
  5. We still see session is active, but Authentication failed

When 2fa is enabled, client should not try to reauth, because password is wrong. Probably, if Authentication failed without running manually openvpn3 session-manage -D -c ~/path/vpn.ovpn.