编译安装shadowsocks-libev
shadowsocks-libev现在的默认分支为rm,clone的时候需要指定分支为master
git clone -b master https://github.com/shadowsocks/shadowsocks-libev.git apt-get install build-essential autoconf libtool libssl-dev libpcre3 libpcre3-dev ./configure --disable-documentation && make make install
当作为客户端使用时的配置文件
{ "server":"服务器ip", "server_port":服务器端口, "local_address":"127.0.0.1", "local_port":1080, "password":"密码", "timeout":300, "method":"chacha20", "fast_open":false, "workers":1 }
在Command Line Tools中使用ss代理
安装proxychains
apt-get install proxychains
编辑文件~/.proxychains/proxychains.conf
复制粘贴下面的内容
strict_chain proxy_dns remote_dns_subnet 224 tcp_read_time_out 15000 tcp_connect_time_out 8000 localnet 127.0.0.0/255.0.0.0 quiet_mode [ProxyList] socks5 127.0.0.1 1080
使用方法
proxychains curl https://www.google.com proxychains bash