-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Client disconnected after a few minutes #21
Comments
Hi, the
|
You've saved my day! |
Seems like that the user does not finish the auth flow on the browser. OpenVPN waits only 1 Minute, then AUTH_FAILED |
Just saw that |
hm. so maybe we have an bug here. On my local system, we works for multiple hours. (reauth each 60 seconds). Any logs from the service? Please mention the project is new and I have to add more logging. |
When I start the OpenVPN server, it said:
then I run
When I start openvpn client connection. The client said:
then it opens my browser which I already logged in my azure AD account. This moment, the
at this point, client can connect to the openvpn server. after 50s, the
the client said:
1 min later the
and the client said:
at this time, my client disconnected to my Openvpn server.
|
What I notice: This is one line:
but on client logs, the URL has a newline.
then, I see
in the logs. It seems like OpenVPN opens a wrong URL on REAUTH. OpenVPN is cutting he URL which results into a invalid state. I tested the whole workflow with OpenVPN 2 on Windows. Not sure, if OpenVPN 3 has a different behavior here. |
The newline is here because I use MS Teams as a temporary storage for logs; it added new lines. Please remove that newline then everything is the same in the client log, OpenVPN server log, and your plugin log |
I mention this, because the plugin log is
report the invalid state exactly on the same part, the newline was introduced. Somehow, the OpenVPN client opens the URL wrongly. The plugin return the URL
but somehow, the client opens this
|
I just read about how OpenVPN Management interface works. The above session (#21 (comment)) shows that my client made the first login successfully. When |
I can confirm for OpenVPN2 together with MacOS Client Tunnelblick, that the client opens the Browser on REAUTH. I'll add some notes to the Readme and let me know if there is an issue to link. |
Instead this, try |
@DatCanCode I could verify this behavior with the OpenVPN Connect v3 Client for Mac, too. |
Thank you for your library. I can successfully use Azure AD to login.
But after just a few minutes, client was disconnected with OpenVPN server. Can you help me figure out why this is happening.
OpenVPN server log:
server.conf:
client.ovpn:
The text was updated successfully, but these errors were encountered: