-
-
Save amanjuman/6a40d20be7e04d9986ccca14e4a3d3b4 to your computer and use it in GitHub Desktop.
sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y | |
sudo apt -y install build-essential wget curl gcc make wget tzdata git libreadline-dev libncurses-dev libssl-dev zlib1g-dev | |
sudo wget https://www.softether-download.com/files/softether/v4.41-9787-rtm-2023.03.14-tree/Linux/SoftEther_VPN_Server/64bit_-_Intel_x64_or_AMD64/softether-vpnserver-v4.41-9787-rtm-2023.03.14-linux-x64-64bit.tar.gz | |
tar xzf softether-vpnserver-v4.41-9787-rtm-2023.03.14-linux-x64-64bit.tar.gz && rm softether-vpnserver-v4.41-9787-rtm-2023.03.14-linux-x64-64bit.tar.gz | |
cd vpnserver && sudo make | |
cd .. | |
sudo mv vpnserver /usr/local && cd /usr/local/vpnserver/ | |
sudo chmod 600 * | |
sudo chmod 700 vpnserver vpncmd | |
sudo ./vpnserver start | |
sudo ./vpncmd | |
ServerPasswordSet | |
sudo cat >> /lib/systemd/system/vpnserver.service << EOF | |
[Unit] | |
Description=SoftEther VPN Server | |
After=network.target | |
[Service] | |
Type=forking | |
ExecStart=/usr/local/vpnserver/vpnserver start | |
ExecStop=/usr/local/vpnserver/vpnserver stop | |
[Install] | |
WantedBy=multi-user.target | |
EOF | |
echo net.ipv4.ip_forward = 1 | ${SUDO} tee -a /etc/sysctl.conf | |
echo net.ipv6.ip_forward = 1 | ${SUDO} tee -a /etc/sysctl.conf | |
systemctl enable vpnserver | |
systemctl start vpnserver | |
systemctl stop vpnserver | |
systemctl restart vpnserver | |
systemctl status vpnserver | |
sudo ufw allow 500,4500/udp | |
ufw allow 443 | |
ufw allow 1701 | |
ufw allow 1194 | |
ufw allow 5555 | |
# Static Route Push | |
# Format: | |
<VPC Network>/<VPC Netmask>/<VPN Gateway IP> | |
# Example: | |
10.125.0.0/255.255.0.0/10.130.30.1 |
I just faced that error. Any ideas how to resolve it :) ?
Do you want to read the License Agreement for this software ?
- Yes
- No
Please choose one of above number:
y
Installation is aborted.
Makefile:13: recipe for target 'default' failed
make: *** [default] Error 1
root@vps:/vpnserver#
I just faced that error. Any ideas how to resolve it :) ?
Do you want to read the License Agreement for this software ?
1. Yes 2. No
Please choose one of above number:
yInstallation is aborted.
Makefile:13: recipe for target 'default' failed
make: *** [default] Error 1
root@vps:/vpnserver#
When you try again, instead of type "y" type 1.
I will try with ubuntu 20, then I leave the feedback here
Edit: Not Working
@cubankenshi Thats interesting. I just installed it by following this script on a 20.04 server and it worked like a charm.
Thanks @amanjuman for sharing it!
It takes about 4 mb from all of us who connect, making it slower, is there a configuration for this?
How resolve DNS Leak ?
i have issue after install and Run softether vpn and connect to VPS
dnsleak test show me my isp dns and my country IP :(
any help ?
Yea. I would have done that if I were in Dhaka atm! I am outside of Dhaka, that's why this server thing is a big issue! Would you mind checking your Facebook Message Requests? I knocked you there. If you are willing to share your server, I would love to pay to use.