相比于普通的ssserver, ss-server命令支持更多的加密方式,也更加安全。安装它,需要首先在终端执行下列命令
apt update
apt install shadowsocks-libev
接着在用户目录新建配置文件config.json
——
{
"server":"0.0.0.0",
"server_port":8388,
"local_address": "127.0.0.1",
"local_port":1880,
"password":"<password>",
"timeout":300,
"method":"aes-256-gcm",
"fast_open": false
}
表示ss-server将监听0.0.0.0
的8388端口,链接密码为<password>
,加密方式为aes-256-gcm
(现在已知比较安全的一种加密方式)。最后使用
ss-server -c config.json
运行服务端,即可实现ss-server的shadowsocks翻墙。
对于客户端,需要下载支持aes-256-gcm
的客户端,如github的shadowsocksX-NG