-
-
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 |
Bhai, my connection is not stable sometime. Connection to BDIX from my server is stable, and connection to my server from my ISP is stable too. But I am not getting the max BDIX speed all the time. Speed keeps dropping from time to time. Its happening for almost all the users on my server. Is it an issue from Softether's side?
When you connect your Server through BDIX Tunnel it set the internet speed of Server. Example, I got my Server BDIX Speed 100Mbps and IG 50Mbps, my ISP allowed me 100Mbps BDIX and 2Mbps Internet. Now once I connect to VPN Server I might get around 40Mbps to 49Mbps. Hope you got it.
Thanks bhai, now I got it. My server might have 20mbps IIG. Can you kindly tell me, which provider's VPS you are using? and, monthly/yearly cost?
Right now I'm using XeonBD, since I'm an old customer my VPS price is around 5$. Where speed is around 20 to 50Mps. Right now there are not many VPS providers in BD, so the best you can do is to setup Raspberry PI VPN Server by renting a Good connection from an ISP in Dhaka.
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.
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 ?
Right now I'm using XeonBD, since I'm an old customer my VPS price is around 5$. Where speed is around 20 to 50Mps. Right now there are not many VPS providers in BD, so the best you can do is to setup Raspberry PI VPN Server by renting a Good connection from an ISP in Dhaka.