https://blog.csdn.net/xufangfang99/article/details/77916749
yum -y install gcc zlib-devel openssl-devel readline-devel ncurses-devel
./vpnserver start 停止服務命令為:./vpnserver stop)
sed -ie "/^exit/i /usr/local/vpnserver start" /etc/rc.d/rc.local (設置配置開機啟動)
vi /etc/systemd/system/vpnserver.service
[Unit]
Description=SoftEther VPN Server
After=network.target
[Service]
Type=forking
ExecStart=/root/vpnserver/vpnserver start
ExecStop=/root/vpnserver/vpnserver stop
[Install]
WantedBy=multi-user.target
然后就可以通過systemctl start vpnserver啟動了,並通過systemctl enable vpnserver設置開機自啟
啟動成功后我們需要設置遠程登錄密碼以便本地管理服務。運行下面的命令進入VPN的命令行:
./vpncmd
選擇1. Management of VPN Server or VPN Bridge
這里需要選擇地址和端口。默認443端口,如果需要修改,可以輸入localhost:5555(實際端口),然后出現:
If connecting to the server by Virtual Hub Admin Mode, please input the Virtual Hub name.
If connecting by server admin mode, please press Enter without inputting anything.
Specify Virtual Hub Name:
用默認的直接回車就行
yum -y install gcc -y 下載鏈接 https://www.softether-download.com/cn.aspx?product=softether tar -zxvf softether-vpnserver-*.tar.gz cd vpnserver/ make make i_read_and_agree_the_license_agreement ./vpnserver start ./vpncmd ServerPasswordSet q!1234 HubCreate MOB 123456 exit iptables -F