Clients unable to connect via VPN connection. Connection reset, restarting [-1]

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
ascentio
OpenVpn Newbie
Posts: 6
Joined: Fri Oct 28, 2022 2:13 pm

Clients unable to connect via VPN connection. Connection reset, restarting [-1]

Post by ascentio » Fri Oct 28, 2022 2:24 pm

After I updated certificates of VPN connection (CA and Server certificates expired) following this guide:
https://www.linux.com/training-tutorial ... ver-linux/

I added a new client in order to check connection, but it doen't work. I'm unable to connect to the server from clients.

Server Version:
openvpn --version
OpenVPN 2.4.6 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Apr 24 2018
library versions: OpenSSL 1.0.1f 6 Jan 2014, LZO 2.06

Error Logs from client:
TCP/UDP: Preserving recently used remote address: [AF_INET]
Attempting to establish TCP connection with [AF_INET] [nonblock]
../clutter/clutter/clutter-actor.c:10558: The clutter_actor_set_allocation() function can only be called from within the implementation of the ClutterActor::allocate() virtual function.
TCP connection established with [AF_INET]
TCP_CLIENT link local: (not bound)
TCP_CLIENT link remote: [AF_INET]
Connection reset, restarting [-1]
SIGUSR1[soft,connection-reset] received, process restarting


What could be the problem?
I don't know what might be missing.

ascentio
OpenVpn Newbie
Posts: 6
Joined: Fri Oct 28, 2022 2:13 pm

Re: Clients unable to connect via VPN connection. Connection reset, restarting [-1]

Post by ascentio » Fri Oct 28, 2022 2:34 pm

Clarification:
In the logs, after each [AF_INET] the public IP:port is shown (nothing more than I do not show it in the post).
Thanks

User avatar
openvpn_inc
OpenVPN Inc.
Posts: 1332
Joined: Tue Feb 16, 2021 10:41 am

Re: Clients unable to connect via VPN connection. Connection reset, restarting [-1]

Post by openvpn_inc » Fri Oct 28, 2022 3:52 pm

Hi ascentio,

This does not look like the type of error where you're configuring OpenVPN wrong, this is the type of error where the program was not compiled correctly or has some program error in the code itself.

Since you're dealing with a very old version of OpenVPN (2.4.6 was originally released in April of 2018, so is now four and a half years old) I would first like to suggest you update that to the latest version. We have a software repository that offers latest versions of OpenVPN2 for various operating systems;
https://community.openvpn.net/openvpn/w ... twareRepos

Please try to upgrade to that version and then try again.

Kind regards,
Johan
Image OpenVPN Inc.
Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support

ascentio
OpenVpn Newbie
Posts: 6
Joined: Fri Oct 28, 2022 2:13 pm

Re: Clients unable to connect via VPN connection. Connection reset, restarting [-1]

Post by ascentio » Fri Oct 28, 2022 5:41 pm

Hello Johan
Thanks for your response.
Do you know if it's possible for us to install the last openvpn version directly? or how can it be done?
Regards,
Martin

User avatar
openvpn_inc
OpenVPN Inc.
Posts: 1332
Joined: Tue Feb 16, 2021 10:41 am

Re: Clients unable to connect via VPN connection. Connection reset, restarting [-1]

Post by openvpn_inc » Fri Oct 28, 2022 5:52 pm

Hello ascentio,

Probably yes, our software repositories contain the latest version for the most common Linux operating systems. Please follow the link and read the information there.

Kind regards,
Johan
Image OpenVPN Inc.
Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support

ascentio
OpenVpn Newbie
Posts: 6
Joined: Fri Oct 28, 2022 2:13 pm

Re: Clients unable to connect via VPN connection. Connection reset, restarting [-1]

Post by ascentio » Mon Oct 31, 2022 5:55 pm

Hello Johan,
I upgraded to Ubuntu 18.04 LTS and later upgraded to OpenVPN 2.5.7 using the mentioned by you Repositories (openvpn is already the newest version (2.5.7-bionic0).)

openvpn --version
OpenVPN 2.5.7 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on May 24 2022
library versions: OpenSSL 1.1.1 11 Sep 2018, LZO 2.08

I'm still unable to connect to the server from clients.

Error Logs from client:
journalctl -f
TCP/UDP: Preserving recently used remote address: [AF_INET]IP:port
Attempting to establish TCP connection with [AF_INET]IP:port [nonblock]
wlp3s0: WPA: Group rekeying completed with 08:55:31:02:67:0d [GTK=CCMP]
TCP connection established with [AF_INET]IP:port
TCP_CLIENT link local: (not bound)
TCP_CLIENT link remote: [AF_INET]IP:port
Connection reset, restarting [-1]
SIGUSR1[soft,connection-reset] received, process restarting

Is there any command that show more details of VPN connection and specific issue?
In order to further troubleshoot..

For other hand, Is there a guide for a fresh Openvpn install for giving access to multiple users, lets say 50 users?
Because we used to use more than two simultaneous connections to VPN server. Please provide URL.
Best Regards,
Martin

User avatar
openvpn_inc
OpenVPN Inc.
Posts: 1332
Joined: Tue Feb 16, 2021 10:41 am

Re: Clients unable to connect via VPN connection. Connection reset, restarting [-1]

Post by openvpn_inc » Mon Oct 31, 2022 8:51 pm

Hello ascentio,

At least now there's no error like before now. You can run the client on the command line like openvpn --config client.ovpn and you'll see all the output on your screen. Might be helpful to see the problem.

Kind regards,
Johan
Image OpenVPN Inc.
Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support

ascentio
OpenVpn Newbie
Posts: 6
Joined: Fri Oct 28, 2022 2:13 pm

Re: Clients unable to connect via VPN connection. Connection reset, restarting [-1]

Post by ascentio » Mon Oct 31, 2022 9:08 pm

I think I need to create such client.ovpn file, because I have separated files user.crt user.key ca.crt and ta.key ...
Need to check that..

For other hand,
Is there a guide for a fresh Openvpn install for giving access to multiple users, lets say 50 users?
Because we used to use more than two simultaneous connections to VPN server. Please provide URL.
I'm thinking in installing a new server, any recommendation?

Post Reply