Skip to content

Instantly share code, notes, and snippets.

@jpzhu
Created December 28, 2017 02:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jpzhu/94479a1dfff479b99382efa4ef1807f6 to your computer and use it in GitHub Desktop.
Save jpzhu/94479a1dfff479b99382efa4ef1807f6 to your computer and use it in GitHub Desktop.
shadowsocks
/usr/bin/sslocal -s 服务器域名或IP -p 服务器端口 -m aes-256-cfb -k hello,world -b 0.0.0.0 -l 1234
以上命令开放的是socks5端口,但部分应用只支持http代理,需要使用privoxy工具将其他http端口请求转到1234
service privoxy restart
### /etc/privoxy/config 内容
listen-address 0.0.0.0:8118
forward-socks5 / 127.0.0.1:1234 .
forward 192.168.*.*/ .
forward 10.*.*.*/ .
forward 127.*.*.*/ .
此时可以用8118端口进行代理了
https_proxy=http://127.0.0.1:8118 curl https://www.facebook.com -vv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment