Skip to content

Instantly share code, notes, and snippets.

@prianichnikov
Last active May 8, 2024 02:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save prianichnikov/b1020cf1fe20c6677839cf7f7214de1f to your computer and use it in GitHub Desktop.
Save prianichnikov/b1020cf1fe20c6677839cf7f7214de1f to your computer and use it in GitHub Desktop.
# Обновление системы и пакетов
apt-get update
apt-get upgrade -y
# Установка пакетов для сборки softether
apt-get install build-essential libreadline-dev libssl-dev libncurses-dev zlib1g-dev git
# Скачивание репозитория Stable версии
git clone https://github.com/SoftEtherVPN/SoftEtherVPN_Stable.git
# Компилирование исполняемых файлов
cd SoftEtherVPN_Stable
./configure
make
# Копирование файлов
cp -r bin/vpnserver /opt/
cp bin/vpncmd/vpncmd /opt/vpnserver/
# Выставление прав доступа на файлы
chmod 755 -R /opt/vpnserver/
# Установка сервера как службы
cp systemd/softether-vpnserver.service /etc/systemd/system/
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