Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
20.1 Legacy Series
»
OpenVPN disconnects 2FA
« previous
next »
Print
Pages: [
1
]
Author
Topic: OpenVPN disconnects 2FA (Read 2575 times)
hypemedia
Newbie
Posts: 15
Karma: 0
OpenVPN disconnects 2FA
«
on:
June 18, 2020, 10:02:50 am »
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
«
Last Edit: June 18, 2020, 12:25:40 pm by hypemedia
»
Logged
4r7ur
Newbie
Posts: 19
Karma: 5
Re: OpenVPN disconnects 2FA
«
Reply #1 on:
June 19, 2020, 05:26:07 pm »
On opnsense:
VPN -> OpenVPN -> Servers -> <your server> -> increase "Renegotiate time"
On client, .ovpn file, add or increase line
reneg-sec 36000
Logged
tiermutter
Hero Member
Posts: 1099
Karma: 61
Re: OpenVPN disconnects 2FA
«
Reply #2 on:
June 19, 2020, 06:36:42 pm »
Indeed, there was a similar thread some weeks ago.
Maybe for further information:
https://forum.opnsense.org/index.php?topic=17422.0
Logged
i am not an expert... just trying to help...
mimugmail
Hero Member
Posts: 6766
Karma: 494
Re: OpenVPN disconnects 2FA
«
Reply #3 on:
June 20, 2020, 07:51:59 am »
Or just set it to 0
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
20.1 Legacy Series
»
OpenVPN disconnects 2FA