Linux_use_shadwosocks_and_privoxy_to_proxy

sslocal

1
2
yum install python-pip
pip install shadowsocks
1
vim /etc/shadowsocks.json
1
2
3
4
5
6
7
8
9
10
11
{
"server": "your ip",
"server_port": 443,
"local_address": "127.0.0.1",
"local_port":1080,
"password":"you pass",
"timeout":300,
"method":"aes-256-cfb",
"fast_open": false,
"workers": 10
}
1
sslocal -c /etc/shadowsocks.json -d start

or you can remove -d parameter to run it forntend to see if socks5 can work properly.

Privoxy

1
2
yum install privoxy
vim /etc/privoxy/config

search and uncomment forward-socks5t / 127.0.0.1:9050 . change it into forward-socks5t / 127.0.0.1:1080 .

DO NOT forget . after socks5 address

http & https privoxy

you can use this command to privoxy once in terminal:

1
2
export http_proxy=http://127.0.0.1:8118
export https_proxy=http://127.0.0.1:8118

Or you can add it into your /etc/profile, but I don’t think it’s a good idea.