FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
1,182 views 2 comments
by
I have set up an OpenVPN Server on my RUT955 and could connect to with OpenVPN Client on a Windows 7 machine.
After a reboot of the i can no longer connect via VPN.
I have set up a DNS on the RUT955 and set it in the client. I can see the right public IP of the Router.
Here are the log file when i trying to connect to the Router.

Tue Jul 23 15:06:36 2019 OpenVPN 2.4.6 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Apr 26 2018
Tue Jul 23 15:06:36 2019 Windows version 6.1 (Windows 7) 64bit
Tue Jul 23 15:06:36 2019 library versions: OpenSSL 1.1.0h  27 Mar 2018, LZO 2.10
Enter Management Password:
Tue Jul 23 15:06:36 2019 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25343
Tue Jul 23 15:06:36 2019 Need hold release from management interface, waiting...
Tue Jul 23 15:06:37 2019 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25343
Tue Jul 23 15:06:37 2019 MANAGEMENT: CMD 'state on'
Tue Jul 23 15:06:37 2019 MANAGEMENT: CMD 'log all on'
Tue Jul 23 15:06:37 2019 MANAGEMENT: CMD 'echo all on'
Tue Jul 23 15:06:37 2019 MANAGEMENT: CMD 'bytecount 5'
Tue Jul 23 15:06:37 2019 MANAGEMENT: CMD 'hold off'
Tue Jul 23 15:06:37 2019 MANAGEMENT: CMD 'hold release'
Tue Jul 23 15:06:37 2019 MANAGEMENT: >STATE:1563887197,RESOLVE,,,,,,
Tue Jul 23 15:06:37 2019 TCP/UDP: Preserving recently used remote address: [AF_INET]PublicIP:1194
Tue Jul 23 15:06:37 2019 Socket Buffers: R=[8192->8192] S=[8192->8192]
Tue Jul 23 15:06:37 2019 UDP link local: (not bound)
Tue Jul 23 15:06:37 2019 UDP link remote: [AF_INET]PublicIP:1194
Tue Jul 23 15:06:37 2019 MANAGEMENT: >STATE:1563887197,WAIT,,,,,,
Tue Jul 23 15:07:37 2019 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Tue Jul 23 15:07:37 2019 TLS Error: TLS handshake failed
Tue Jul 23 15:07:37 2019 SIGUSR1[soft,tls-error] received, process restarting
Tue Jul 23 15:07:37 2019 MANAGEMENT: >STATE:1563887257,RECONNECTING,tls-error,,,,,
Tue Jul 23 15:07:37 2019 Restart pause, 5 second(s)

by
After another restart I was able to connect to the server on the RUT955 again.
What is your problem?
Could it be that some IP addresses assigned by the provider are blocked?
I also waited some time after restarting until I connected. So that the openvpn-server can build up and the DNS can get its IP.
by
Is there a solution to the problem?
What can I check/set so that the connection can always be established?

1 Answer

0 votes
by anonymous

Hello,

Do you have the latest FW version installed ? 

You can find latest Firmware here: https://wiki.teltonika.lt/view/RUT9xx_Firmware 

Also try to lower Keep alive settings from default 10 120 to 5 60 (Ping every 5s and if no response after a 60s connection will be restarting).

This option can be used on both client and server side, but it is enough to add this on the server side as it will push appropriate value options to the client.

If used on both server and client, the values pushed from server will override the client local values.

Regards