Skip to content

Instantly share code, notes, and snippets.

@masuidrive
Last active October 2, 2019 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masuidrive/1e34507fa464f03940dfaec7ee2b1ed1 to your computer and use it in GitHub Desktop.
Save masuidrive/1e34507fa464f03940dfaec7ee2b1ed1 to your computer and use it in GitHub Desktop.
Install SoftEther server to Ubuntu
#!/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