OpenVPN - disconnect after a min when using Local+TOTP

Started by cookie_lu, August 29, 2024, 09:45:34 AM

Previous topic - Next topic
I am having problem with OpenVPN when login using local+TOTP from remote Android OpenVPN client (3.4.2). Opnsense version 24.7.2.

For a start, I was able to connect successfully (cert and login were OK). I was able to browse external websites and internal server. But after about a minute, i got disconnected with the following error from client:


Quote
[Aug 29, 2024, 12:41:51] Sending PUSH_REQUEST to server...

[Aug 29, 2024, 12:41:51] AUTH_FAILED

[Aug 29, 2024, 12:41:51] EVENT: AUTH_FAILED

[Aug 29, 2024, 12:41:51] EVENT: DISCONNECTED

When i changed the authentication to just Local Database, i was able to maintain the connection as long as i want. But when I reverted back to Local+TOTP, i got disconnected again after about a min.
I did set the Renegotiate Time to 0.

I think it something to do with the re-authenticate/renegotiate not able to do TOTP bit since it expires.
I tried adding TLS static key and/or setting Auth Token Lifetime to 0, it won't even connect at all.

Your help is much appreciated.