在一个http代理成为主流的时代,博主却十分迫切需要一款二层的隧道来满足博主多线接入、策略路由、负载均衡等更专业的需求,SoftEther作为一款网卡级的VPN软件,正好满足了这些需求
SoftEther VPN是一个由日本程序员登大游(日语:登 大遊)因就读筑波大学时的硕士论文研究主题而开发的开源、跨平台、多重协议之虚拟专用网方案,此方案让一些虚拟专用网协议像是SSL VPN、L2TP、IPsec、OpenVPN以及微软SSTP都由同一个VPN服务器提供。在2014年1月4日以GNU通用公共授权条款的方式转变为开源软件。2019年1月21日转变为Apache License 2.0授权。
下载 SoftEther VPN Server
首先,打开http://www.softether-download.com/cn.aspx,按照你的机器配置,选择合适的SoftEther VPN Server,右键选择复制下载地址。
通过SSH连接到服务器,使用wget下载SoftEther VPN Server安装包。
下载完成后,使用tar命令进行解压
安装 SoftEther VPN Server
在安装SoftEther VPN Server之前,你可能需要安装一些必要的工具(以Ubuntu为例):
apt install make
apt install gcc-multilib
apt install build-essential
接下来,就可以开始安装SoftEther VPN Server:
cd vpnserver
make
安装过程中会有三次让你输入数字选择选项,输入3次1就行(输入2会直接退出的)。
稍等片刻,就安装完成了。

配置Systemd管理SoftEther VPN Server
新建SoftEther VPN Server管理文件:
sudo vim /etc/systemd/system/vpnserver.service
按i进入插入模式,复制粘贴以下内容:
[Unit]
Description=SoftEther VPN Server
After=network.target
[Service]
Type=forking
ExecStart=/root/vpnserver/vpnserver start
ExecStop=/root/vpnserver/vpnserver stop
Restart=on-abort
[Install]
WantedBy=multi-user.target
按Esc,输入:wq保存并退出。
启动SoftEther VPN Server:
sudo systemctl start vpnserver
设置开机启动SoftEther VPN Server:
sudo systemctl enable vpnserver
至此,SoftEther VPN Server的安装已经全部完成!
7. Installing SoftEther VPN Server – SoftEther VPN Project
7.2 Install on Windows and Initial Configurations – SoftEther VPN Project
