Skip to content

Instantly share code, notes, and snippets.

@prianichnikov
Last active September 14, 2023 06:31
Show Gist options
  • Save prianichnikov/98bccaa21aa0c4a99540cd1c06d1ae3c to your computer and use it in GitHub Desktop.
Save prianichnikov/98bccaa21aa0c4a99540cd1c06d1ae3c to your computer and use it in GitHub Desktop.
# Обновление системы и пакетов
yum update -y
# Установка пакетов для сборки softether
yum install gcc make -y
# Скачивание последней rtm версии
curl http://www.softether-download.com/files/softether/v4.27-9666-beta-2018.04.21-tree/Linux/SoftEther_VPN_Server/64bit_-_Intel_x64_or_AMD64/softether-vpnserver-v4.27-9666-beta-2018.04.21-linux-x64-64bit.tar.gz \
-o softether-vpnserver-v4.27-9666-beta-2018.04.21-linux-x64-64bit.tar.gz
# Распаковка архива
tar zxvf softether-vpnserver-v4.27-9666-beta-2018.04.21-linux-x64-64bit.tar.gz
# Компилирование файлов
cd vpnserver
make i_read_and_agree_the_license_agreement
# Копирование файлов
mkdir /opt/vpnserver
cp vpnserver /opt/vpnserver/
cp vpncmd /opt/vpnserver/
cp hamcore.se2 /opt/vpnserver/
# Выставление прав доступа на файлы
chmod 755 -R /opt/vpnserver/
# Установка сервера как службы
curl https://raw.githubusercontent.com/SoftEtherVPN/SoftEtherVPN_Stable/master/systemd/softether-vpnserver.service -o /etc/systemd/system/softether-vpnserver.service
systemctl daemon-reload
systemctl enable softether-vpnserver.service
systemctl start softether-vpnserver.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment