Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save chenxinlong/cd6c0e2c33a9ec2cfc29b803aa9fe7c0 to your computer and use it in GitHub Desktop.
Save chenxinlong/cd6c0e2c33a9ec2cfc29b803aa9fe7c0 to your computer and use it in GitHub Desktop.
// 安装客户端
apt install -y shadowsocks
// 代理服务器配置, 16.04 tls 上 apt 安装的 ss 客户端仅支持部分加密 method, 比如 aes-256-cfb
// 建一个配置文件,比如 shadowsocks.json ,写入:
{
"server":"代理服务器的ip",
"server_port":10763,
"local_address":"127.0.0.1",
"local_port":1080,
"password":"密码",
"timeout":300,
"method":"aes-256-cfb",
"fast_open":false
}
// 启用代理,指定配置文件
sslocal -c /etc/shadowsocks.json
// 测试
https_proxy=socks5://127.0.0.1:1080 curl https://myip.ipip.net
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment