Skip to content

Instantly share code, notes, and snippets.

@soheilsec
Last active October 15, 2023 05:17
Show Gist options
  • Save soheilsec/09fb66ce8d9d237ec1d422c04d771e26 to your computer and use it in GitHub Desktop.
Save soheilsec/09fb66ce8d9d237ec1d422c04d771e26 to your computer and use it in GitHub Desktop.
softether
https://www.softether-download.com/en.aspx
اگر زمان اتصال مشکل داشتید
اررور
"The time on the server and the client does not match"
sudo timedatectl set-timezone Asia/Tehran
بزنید تایم با ایران سینک بشه
softether / L2tp / SSTP / OPENVPN
yum -y update
yum -y install epel-release
yum -y groupinstall "Development Tools"
yum install iptables-persistent wget certbot -y
-----------------------------------------
for ubuntu
apt update -y && apt upgrade -y
apt install build-essential gnupg2 gcc make –y
apt install gcc binutils gzip libreadline-dev libssl-dev libncurses5-dev libncursesw5-dev libpthread-stubs0-dev certbot -y
-----------------------------------
cd /usr/local/
wget https://github.com/SoftEtherVPN/SoftEtherVPN_Stable/releases/download/v4.38-9760-rtm/softether-vpnserver-v4.38-9760-rtm-2021.08.17-linux-x64-64bit.tar.gz
tar xvf softether-vpnserver-*
cd vpnserver && make
cat > /etc/init.d/vpnserver <<EOF
[Unit]
Description=SoftEther VPN server
After=network-online.target
After=dbus.service
[Service]
Type=forking
ExecStart=/usr/local/vpnserver/vpnserver start
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target
EOF
chmod 755 /etc/init.d/vpnserver
/etc/init.d/vpnserver start
chkconfig --add vpnserver
./vpncmd
SstpEnable yes
certbot certonly --standalone -n -m [email protected] -d sstp.soheilsec.com --agree-tos --rsa-key-size=2048
/etc/letsencrypt/live/sstp.soheilsec.com/cert.pem
/etc/letsencrypt/live/sstp.soheilsec.com/privkey.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment