Created
December 28, 2017 02:59
-
-
Save jpzhu/94479a1dfff479b99382efa4ef1807f6 to your computer and use it in GitHub Desktop.
shadowsocks
This file contains hidden or 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
/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