1.安装pip
# curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
# python get-pip.py
2.安装科学客户端
# pip2.7 install shadowsocks
# >/etc/shadowsocks.json
# vim /etc/shadowsocks.json
{
"server":"***.***.***.***",
"server_port":***,
"local_address": "127.0.0.1",
"local_port":1080,
"password":"********",
"timeout":300,
"method":"********",
"fast_open": false,
"workers": 1
}
3.运行sslocal
# nohup sslocal -c /etc/shadowsocks.json &>/dev/null &
# ps aux |grep sslocal
4.安装epel yum源
# wget http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm
# rpm -Uvh epel-release-7-11.noarch.rpm
5.安装privoxy
# yum install privoxy -y
# useradd privoxy
# vim /etc/privoxy/config
listen-address 127.0.0.1:8118
forward-socks5t / 127.0.0.1:1080 .
# vim /etc/profile
export http_proxy=http://127.0.0.1:8118
export https_proxy=http://127.0.0.1:8118
# source /etc/profile
6.运行privoxy
# privoxy --user privoxy /etc/privoxy/config
7.测试
# curl -I https://GOOGLE.COM
最新微语
最新文章
链接
最新评论
- EdwardSoype 说:
十字路口,我们分着走。你走我的泪,... - 热搜 说:
文章还不错支持一下 - 头条 说:
文章非常好超喜欢 - 新闻头条 说:
文章非常好超喜欢 - 今日头条新闻 说:
文章还不错支持一下
2017-12-11 12:17