ubuntu 代理配置
1、安装Python
2、安装shadowsocks客户端
sudo pip install shadowsocks
3、配置shadowsocks客户端配置
vim /etc/shadowsocks/config.json
{
"server":"x,x,x,x",
"server_port":24000,
"local_address":"127.0.0.1",
"local_port":1080,
"password":"xxxxxx",
"timeout":300,
"method":"AES-256-CFB"
}
4、启动shadowsocks客户端服务
sudo sslocal -c config.json -d start
5、安装privoxy
apt-get install privoxy
6、配置privoxy
找到并修改为以下两项
vi /etc/privoxy/config
forward-socks5 / 127.0.0.1:1080 .
listen-address 127.0.0.1:8118
listen-address [::1]:8118
7、启动privoxy
sudo service privoxy start
8、配置Ubuntu网络
HTTP、HTTPS、FTP、Socks都改为:
127.0.0.1 8118