shadowsocks Cheatsheet
我的ss搭建过程(不完全版)
vi /etc/shadowsocks.json
{
"server":"62.234.1.xx",
"server_port":8088,
"local_address":"127.0.0.1",
"local_port":"1080",
"password":"xx",
"timout":300,
"method":"aes-256-cfb"
}
nohup /opt/python3.7b5/bin/sslocal -c /etc/shadowsocks.json -vv> nohup.out 2>&1 &
curl --socks5 127.0.0.1:1080 http://119.75.217.26/
relay
./client_linux_amd64 -r xxxx:3999 -l :8088 -mode fast2
yum使用代理
vi /etc/yum.conf
proxy=socks5://localhost:1080
reverse ssh
nohup ssh -tt -R 8022:localhost:22 root@bbtts > sshr.out 2>&1 &
socks转http代理
yum install privoxy
echo 'forward-socks5 / 127.0.0.1:1080 .' >>/etc/privoxy/config
systemctl start privoxy
# 查看 privoxy 的日志
tail -f /var/log/privoxy/logfile
curl -4sSkL https://www.baidu.com
npm 使用代理
npm只支持http/https代理,注意用privoxy把Socks转成http
npm config edit
npm config set proxy http://server:port
npm config set https-proxy http://server:port