Jump to content
Not connected, Your IP: 18.188.188.152
JamesDean

nm-applet - Linux - "Invalid VPN Secrets"

Recommended Posts

Switched from Windows to Linux Mint. Have everything installed properly, as I can connect when first booting up the computer. My problem seems to come into play when I want to switch the VPN server from one to another. In Windows, I would right click on the OpenVPN tray icon and click disconnect...wait for it to turn red...and then connect to another server. In Mint, the only ways I can see to stop the VPN are either by individual on/off buttons for each server in Network Settings, or one master button for VPN in the nm-applet tray icon. When I try either of these and then try to connect to another server, I get a message that says "VPN Connection Failed, Invalid VPN Secrets". It seems as if I immediately try to connect to the server I was just on, it re-connects, but a new server fails. If I wait a few minutes, It seems to connect to a new server. Is this due to Air thinking I'm still connected to another server because no disconnect signal is sent? If so, how to cleanly disconnect on Linux? (I remember on Windows a "SigTerm" command being sent by OpenVPN on disconnect). What's the cause of, and how to get rid of "Invalid VPN Secrets" on Mint? Thank you.

Share this post


Link to post

Try to connect using TCP instead.

 

In Mint, the only ways I can see to stop the VPN are either by individual on/off buttons for each server in Network Settings, or one master button for VPN in the nm-applet tray icon. When I try either of these and then try to connect to another server, I get a message that says "VPN Connection Failed, Invalid VPN Secrets".

 

It seems your client doesn't send a packet to close connection which is something arising out of the fact that UDP is a connectionless protocol. More info here.


NOT AN AIRVPN TEAM MEMBER. USE TICKETS FOR PROFESSIONAL SUPPORT.

LZ1's New User Guide to AirVPN « Plenty of stuff for advanced users, too!

Want to contact me directly? All relevant methods are on my About me page.

Share this post


Link to post

Hello,

 

we confirm that, it's an old problem with network-manager. It does not pass explicit-exit-notify directive to OpenVPN. Therefore when OpenVPN client in UDP mode ends, the server has absolutely no way to know that the client disconnected until the timeout.

 

When you run OpenVPN in UDP mode via the network-manager, please allow 2 minutes for a server switch (i.e. wait for 2 minutes after you disconnect from the first server before trying to connect to the a different one). Alternatively please run OpenVPN directly to solve the issue completely.

 

Kind regards

Share this post


Link to post

For whatever reason, this is also fixed by using a different server.

 

I was never able to connect to some servers for whatever reason: it would always give me "Invalid VPN secrets." However other servers would connect just fine.

 

I never bothered to investigate because my servers of preference worked.

Share this post


Link to post

Hello,

 

we confirm that, it's an old problem with network-manager. It does not pass explicit-exit-notify directive to OpenVPN. Therefore when OpenVPN client in UDP mode ends, the server has absolutely no way to know that the client disconnected until the timeout.

 

When you run OpenVPN in UDP mode via the network-manager, please allow 2 minutes for a server switch (i.e. wait for 2 minutes after you disconnect from the first server before trying to connect to the a different one). Alternatively please run OpenVPN directly to solve the issue completely.

 

Kind regards

 

 

Ok, thanks for the answer. By "run openvpn directly", do you mean from the terminal? If so, are there any instructions on how to do that with AirVPN posted somewhere?

 

Thanks

Share this post


Link to post

Generate your ovpn file with config generator

Enter the directory where you placed the file

Launch the following command from terminal :

sudo openvpn --config filename.ovpn

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image

×
×
  • Create New...