Session terminating after 45 seconds

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
dmx1920
Posts: 1
Joined: Thu Apr 04, 2019 5:47 pm

Session terminating after 45 seconds

Post by dmx1920 » Thu Apr 04, 2019 7:38 pm

I have a SoftEther Server installed on Centos 7 and two SoftEther clients. One client on Windows 10 works well.
Problem with the second client installed on Raspberry Pi 3 (OS Raspbian 9 (stretch)). The connection to the server is established, but then terminated after approximately 45 seconds. If I try to connect again, the connection is not established. If I delete and recreate the virtual network adapter on the client, the connection is re-established, but after 45 seconds, the connection is lost again.

Server log:
---------------------------
2019-04-04 22:02:40.458 The connection "CID-16" (IP address: 91.246.86.224, Host name: 91.246.86.224, Port number: 1299, Client name: "SoftEther VPN Client", Version: 4.29, Build: 9680) is attempting to connect to the Virtual Hub. The auth type provided is "Password authentication" and the user name is "oneuser".
2019-04-04 22:02:40.458 Connection "CID-16": Successfully authenticated as user "oneuser".
2019-04-04 22:02:40.458 Connection "CID-16": The new session "SID-ONEUSER-5" has been created. (IP address: 91.246.86.224, Port number: 1299, Physical underlying protocol: "Standard TCP/IP (IPv4)")
2019-04-04 22:02:40.458 Session "SID-ONEUSER-5": The parameter has been set. Max number of TCP connections: 2, Use of encryption: No, Use of compression: No, Use of Half duplex communication: No, Timeout: 20 seconds.
2019-04-04 22:02:40.458 Session "SID-ONEUSER-5": VPN Client details: (Client product name: "SoftEther VPN Client", Client version: 429, Client build number: 9680, Server product name: "SoftEther VPN Server (64 bit)", Server version: 429, Server build number: 9680, Client OS name: "Linux", Client OS version: "Unknown Linux Version", Client product ID: "--", Client host name: "raspberrypi", Client IP address: "192.168.1.129", Client port number: 33240, Server host name: "185.244.149.236", Server IP address: "185.244.149.236", Server port number: 443, Proxy host name: "", Proxy IP address: "0.0.0.0", Proxy port number: 0, Virtual Hub name: "VPN", Client unique ID: "6AA64516B0514F0419C0462D2CD6CFC2")
2019-04-04 22:02:40.942 SecureNAT: The DHCP entry 6 has been created. MAC address: 5E-F1-3D-CD-A7-CC, IP address: 192.168.30.11, host name: raspberrypi, expiration span: 7200 seconds
2019-04-04 22:02:40.942 Session "SID-SECURENAT-2": The DHCP server of host "5E-23-C6-4A-24-0C" (192.168.30.1) on this session allocated, for host "SID-ONEUSER-5" on another session "5E-F1-3D-CD-A7-CC", the new IP address 192.168.30.11.
2019-04-04 22:03:19.997 Session "SID-ONEUSER-5": The session has been terminated. The statistical information is as follows: Total outgoing data size: 3627 bytes, Total incoming data size: 4136 bytes.

---------------------------

Client log:
---------------------------
2019-04-04 22:02:39.868 Connection processing for VPN Connection Setting "sailor" has started.
2019-04-04 22:02:39.868 VPN Connection Setting "sailor": Connection operation starting (this is now 1 times).
2019-04-04 22:02:40.515 VPN Connection Setting "sailor": Now connected. Session name: "SID-ONEUSER-5"
2019-04-04 22:03:24.347 VPN Connection Setting "sailor": The connection has been either disconnected or it failed. Cause: Time-out occurred during VPN session communication. It is possible the connection from the client to the VPN Server has been disconnected. (code 13)
2019-04-04 22:03:39.356 VPN Connection Setting "sailor": Connection operation starting (this is now 2 times).
2019-04-04 22:03:49.411 VPN Connection Setting "sailor": The connection has been either disconnected or it failed. Cause: Connection to the server failed. Check network connection and make sure that address and port number of destination server are correct. (code 1)
2019-04-04 22:04:04.412 VPN Connection Setting "sailor": Connection operation starting (this is now 3 times).
2019-04-04 22:04:14.465 VPN Connection Setting "sailor": The connection has been either disconnected or it failed. Cause: Connection to the server failed. Check network connection and make sure that address and port number of destination server are correct. (code 1)
2019-04-04 22:04:29.468 VPN Connection Setting "sailor": Connection operation starting (this is now 4 times).
2019-04-04 22:04:39.526 VPN Connection Setting "sailor": The connection has been either disconnected or it failed. Cause: Connection to the server failed. Check network connection and make sure that address and port number of destination server are correct. (code 1)
2019-04-04 22:04:54.523 VPN Connection Setting "sailor": Connection operation starting (this is now 5 times).

---------------------------
Tried to fix the problem with "Disable UDP acceleration". All Iptables rules are disabled.
Please help me!

cedar
Site Admin
Posts: 1157
Joined: Sat Mar 09, 2013 5:37 am

Re: Session terminating after 45 seconds

Post by cedar » Tue Jun 04, 2019 9:30 am

The Linux version client does not have an automatic route adjustment function.
When a default gateway is set on the virtual LAN card, VPN will be used as a route to the VPN server, and communication will be broken.
Please add the route to the VPN server statically in advance.

Post Reply