linux安装softether客户端 - 秋兮

linux安装softether客户端

本教程适用于:Debian/Ubuntu 系统

更新:

sudo apt update && sudo apt upgrade -y

安装依赖:

sudo apt install build-essential wget nano curl net-tools -y

下载安装包:cd /opt/

wget https://github.com/SoftEtherVPN/SoftEtherVPN_Stable/releases/download/v4.44-9807-rtm/softether-vpnclient-v4.44-9807-rtm-2025.04.16-linux-x64-64bit.tar.gz

解压下载的压缩包:

tar -zxvf softether-vpnclient-v4.44-9807-rtm-2025.04.16-linux-x64-64bit.tar.gz

进入解压后的目录:

cd vpnclient

安装:

sudo ./.install.sh

停止:

sudo ./vpnclient stop

修改成中文语言,修改程序目录下的lang.config文件里的en改成 cn

再次启动:

sudo ./vpnclient start

设置连接:

sudo ./vpncmd /CLIENT localhost /CMD AccountCreate hk001 /SERVER:103.211.23.15:5555 /HUB:DEFAULT /USERNAME:test /NICNAME:vpn

说明:

CLIENT localhost #本地连接

CMD AccountCreate hk001 #本地连接名称,比如香港服务器一号 hk001

SERVER:103.211.23.15:5555  #VPN的服务器IP加端口

HUB:DEFAULT  #服务器上的HUB名称

USERNAME:test  #登陆账号

NICNAME:vpn    #本机虚拟网卡名称

设置登陆密码:

sudo ./vpncmd /CLIENT localhost /CMD AccountPasswordSet hk001 /PASSWORD:test123456 /TYPE:standard

说明:

PASSWORD:test123456 #登陆密码

运行刚才建立好的连接:

sudo ./vpncmd /CLIENT localhost /CMD AccountConnect hk001

查看连接结果:

sudo ./vpncmd /CLIENT localhost /CMD AccountStatusGet hk001

测试:

curl -v https://github.com 2>&1 | head -20

然后再ping几个在国内被墙的域名看看通不通,比如:youtube.com或者google.com,这里我就不做演示了。

断开连接:

sudo ./vpncmd /CLIENT localhost /CMD AccountDisconnect hk001

设置开机自启动:

sudo ./vpncmd /CLIENT localhost /CMD AccountStartupSet hk001

如果有多个连接,比如建立了hk002 us001等,一定要先断开连,然后停止vpn:

sudo ./vpnclient stop

再运行另外一个连接。


完毕,收工搞定。