-
-
Save JessonYue/817d20d262013b1994b9f5ee1def0942 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
Red Hat 4.8.3-9 版本设置 | |
/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 | |
(Ubuntu 5.4.0-6ubuntu1~16.04.4) 版本设置 | |
1.安装privoxy | |
sudo apt-get update | |
sudo apt-get install privoxy | |
2.配置privoxy | |
sudo vi /etc/privoxy/config 完成协议装换 | |
修改 listen-address localhost:8118 | |
forward-socks5 / 127.0.0.1:1234 . | |
forward 192.168.*.*/ . | |
forward 10.*.*.*/ . | |
forward 127.*.*.*/ | |
3.设置环境变量 | |
export http_proxy="http://127.0.0.1:8118" | |
export https_proxy="http://127.0.0.1:8118" | |
4.更新 Android SDK | |
android list sdk --proxy-host 127.0.0.1 --proxy-port 8118 -s --all | |
TIPS::set number vim设置行号 | |
sslocal -s 54.249.33.109 -p 4447 -m aes-256-cfb -k hello,world -l 1234 & //& 运行在后台进程 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment