最近还是需要softether

1.安装系统常用软件包,编译安装使用

apt update && apt install lrzsz vim wget bash-completion net-tools make gcc cmake -y

2.下载源码包

wget https://www.softether-download.com/files/softether/v4.42-9798-rtm-2023.06.30-tree/Linux/SoftEther_VPN_Server/64bit_-_Intel_x64_or_AMD64/softether-vpnserver-v4.42-9798-rtm-2023.06.30-linux-x64-64bit.tar.gz

3.解压源码包,并解压到/usr/local/下

tar -xf softether-vpnserver-v4.42-9798-rtm-2023.06.30-linux-x64-64bit.tar.gz -C /usr/local/

4.进入到源码目录里

cd /usr/local/vpnserver/

5.编译源码

make

6.手动启动服务

/usr/local/vpnserver/vpnserver start

7.把vpnserver添加到系统服务

cat > /lib/systemd/system/vpnserver.service <<EOF

[Unit]

Description=vpnserver service
After=network.target

[Service]
Type=forking
ExecStart=/usr/local/vpnserver/vpnserver start

ExecReload=/usr/local/vpnserver/vpnserver

ExecStop=/usr/local/vpnserver/vpnserver stop
PrivateTmp=true

[Install]
WantedBy=multi-user.target
EOF

8.添加vpnserver到系统服务

systemctl daemon-reload
systemctl enable vpnserver.service --now



访问:1575次

添加新评论