Created
June 7, 2018 15:06
-
-
Save chenxinlong/cd6c0e2c33a9ec2cfc29b803aa9fe7c0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 安装客户端 | |
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