Last active
October 2, 2019 13:43
-
-
Save masuidrive/1e34507fa464f03940dfaec7ee2b1ed1 to your computer and use it in GitHub Desktop.
Install SoftEther server to Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SE_URL=${SE_URL:-https://github.com/SoftEtherVPN/SoftEtherVPN_Stable/releases/download/v4.29-9680-rtm/softether-vpnserver-v4.29-9680-rtm-2019.02.28-linux-x64-64bit.tar.gz} | |
apt-get update | |
apt install -y bridge-utils gcc make | |
curl -L $SE_URL | tar xfz - -C /usr/local/ | |
cd /usr/local/vpnserver | |
yes 1 | make | |
cat << EOT > /etc/systemd/system/vpnserver.service | |
[Unit] | |
Description=SoftEther VPN Server | |
After=network.target network-online.target | |
[Service] | |
ExecStart=/usr/local/vpnserver/vpnserver start | |
ExecStop=/usr/local/vpnserver/vpnserver stop | |
Type=forking | |
RestartSec=3s | |
[Install] | |
WantedBy=multi-user.target | |
EOT | |
systemctl daemon-reload | |
systemctl enable vpnserver.service | |
systemctl start vpnserver.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment