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
最新微语
最新文章
链接
最新评论
- JosephMak 说:
关注更新, 我体会到, 旅行带来灵感。无... - JosephNerry 说:
我热爱这样的想法, 参观你们描述的目... - Steveelife 说:
有趣的 旅游网站, 加油 充满灵感。谢谢... - JosephNerry 说:
研究你的文章, 我明白, 世界很美。由衷... - JosephNerry 说:
我很少遇到, 这么生动的旅行故事。点...
2017-12-11 12:17