1)、使用proxychains
https://blog.csdn.net/YaRouJuan/article/details/76852041
2)、使用privoxy
https://blog.csdn.net/xwydq/article/details/51274185
1、安装ss
直接用pip安装
pip install shadowsocks
pip freeze 查看已安装的软件列表,看看成了没?
2、服务端启动ss服务器
root@iZuf6a01zic0bgnaiub3uoZ:~# cat /etc/shadowsocks/config.json
{
"server":"0.0.0.0",
"server_port":8381,
"local_address":"127.0.0.1",
"local_port":1080,
"password":"leigod",
"timeout":300,
"method":"aes-256-cfb",
"fast_open":false
}
root@iZuf6a01zic0bgnaiub3uoZ:~# ssserver -c /etc/shadowsocks/config.json
3、ubuntu启动ss客户端
yp@yp-pc:/home/privoxy/privoxy-3.0.26-stable$ more /etc/shadowsocks/config.json
{
"server":"47.256.171.251",
"server_port":8381,
"local_address":"127.0.0.1",
"local_port":1080,
"password":"leigod",
"timeout":300,
"method":"aes-256-cfb",
"fast_open":false
}
yp@yp-pc:/home/privoxy/privoxy-3.0.26-stable$ sudo sslocal -c /etc/shadowsocks/config.json
4、ubuntu安装privoxy
sudo apt install privoxy
5、修改privoxy配置
vi /etc/privoxy/config
listen-address 127.0.0.1:8118 // 783行,去掉前面的注释符号,端口可以随便改
forward-socks5t / 127.0.0.1:1080 //1336行,去掉前面的注释符号,后面的1080端口要对应ss服务里面的配置,要一致
6、设置环境后启动privoxy
export https_proxy=http://127.0.0.1:8118
export http_proxy=http://127.0.0.1:8118
sudo systemctl restart privoxy
7、测试
yp@yp-pc:~$ wget www.baidu.com
--2018-07-21 17:07:56-- http://www.baidu.com/
正在连接 127.0.0.1:8118... 已连接。
已发出 Proxy 请求,正在等待回应... 200 OK
长度: 2381 (2.3K) [text/html]
正在保存至: “index.html”
index.html 100%[===================>] 2.33K --.-KB/s in 0s
2018-07-21 17:07:56 (318 MB/s) - 已保存 “index.html” [2381/2381])
yp@yp-pc:~$