softethervpn 安裝-zslvp


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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM