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