I have the following problem:
I have configured the OpenVPN server with 2FA via Google Authenticator. The problem is that the connexion after some time it drops and because of the 2FA never reconnects back.
On the openvpn site got over an article that says to increase some values of the server:
vpn.server.inactive_expire 99999
vpn.server.session_expire 86400
vpn.server.session_ip_lock false
I am not sure if the variable are correct for Opnsense. I have added the values to advanced configuration but after adding the info is not working anymore. Any suggestions on a config that it will work?
Thanks
On opnsense:
VPN -> OpenVPN -> Servers -> <your server> -> increase "Renegotiate time"
On client, .ovpn file, add or increase line
reneg-sec 36000
Indeed, there was a similar thread some weeks ago.
Maybe for further information:
https://forum.opnsense.org/index.php?topic=17422.0
Or just set it to 0