A transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 – The semaphore timeout period has expired.)

SQL – last time this error occurred in my Azure Environment when I am using SoftEther VPN installed on the SQL server. When I moved it to the Linux Server it disappears.

So this is confirmation that it is strictly connected with network connectivity, but I was not indicated what exactly the problem was. So fast and working solution.

 

Linux install step by step:

sudo su –
wget https://www.softether-download.com/files/softether/v4.38-9760-rtm-2021.08.17-tree/Linux/SoftEther_VPN_Server/64bit_-_Intel_x64_or_AMD64/softether-vpnserver-v4.38-9760-rtm-2021.08.17-linux-x64-64bit.tar.gz
tar xvfz softether-vpnserver-v4.38-9760-rtm-2021.08.17-linux-x64-64bit.tar.gz
cd vpnserver/
apt-get update && apt-get upgrade
apt-get install build-essential -y
make
cd ..
mv vpnserver /usr/local
cd /usr/local/vpnserver/
chmod 600 *
chmod 700 vpnserver
chmod 700 vpncmd
vi /etc/init.d/vpnserver

#!/bin/sh
# chkconfig: 2345 99 01
# description: SoftEther VPN Server
### BEGIN INIT INFO
# Provides: vpnserver
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: SoftEther VPN Server
### END INIT INFO

 

DAEMON=/usr/local/vpnserver/vpnserver
LOCK=/var/lock/subsys/vpnserver
test -x $DAEMON || exit 0
case “$1” in
start)
$DAEMON start
touch $LOCK
;;
stop)
$DAEMON stop
rm $LOCK
;;
restart)
$DAEMON stop
sleep 3
$DAEMON start
;;
*)
echo “Usage: $0 {start|stop|restart}”
exit 1
esac
exit 0

exit vi: ESC/w/q

mkdir /var/lock/subsys
chmod 755 /etc/init.d/vpnserver && /etc/init.d/vpnserver start
update-rc.d vpnserver defaults
cd /usr/local/vpnserver
./vpncmd
1
enter
enter
ServerPasswordSet
exit

reboot

sudo su –
/etc/init.d/vpnserver stop
/etc/init.d/vpnserver start
systemctl enable vpnserver
systemctl status vpnserver

 

PORTS: 443,500,4500,1701

 

 

SSTP:

1. Using https://www.digicert.com/support/tools/certificate-utility-for-windows export certificate in Apache compatible format
2. Copy files to Linux (you can do it via text editor)
3. Connect via SoftEther VPN Server Manager to VPN Softether Linux Server
4. Manage VirtualHub
5. Trusted CA Certificates
6. Add Certificvate from PFX
7. Log to Linux VPN
8. sudo su –
9. /usr/local/vpnserver/vpncmd
1
enter
enter (not provide HUB)
provide password
10. ServerCertSet /LOADCERT:/tmp/plac /LOADKEY:/tmp/key (it can be not a full chain)
11. Make sure that you have MS-SSTP enabled in config menu in SoftEther VPN Server Manager
13. Set VPN address in DNS
14. Connect using Window SSTP VPN Client

 

 

Here is how to use it with Lets Encrypt: https://github.com/yousseb/softether-server

PS: On script verify ” signs or go to here:

https://gist.github.com/banghasan/99fee1dcd8c907b404bcadb30b398aba