NASA666

不以物喜,不以己悲.
Posted on , viewed 668 times

Linux终端翻墙配置

1.pip install shadowsocks
2.sudo vi /etc/ssclient.json
{
    "server":"35.236.176.82",
    "server_port":80,
    "local_address": "127.0.0.1",
    "local_port":1080,
    "password":"xxx",
    "timeout":300,
    "method":"aes-256-cfb",
    "fast_open": false,
    "workers": 1
}
3.sudo sslocal -c /etc/ssclient.json -d start
---------------------ssclient配置完毕
4.sudo apt-get install privoxy
5.sudo vi /etc/privoxy/config
forward-socks5t   /               127.0.0.1:1080 .
listen-address  127.0.0.1:8118  # 该行已经可能存在,请删除之前的行
6.sudo service privoxy restart
7.vi ~/.bashrc
export http_proxy=http://127.0.0.1:8118
export https_proxy=http://127.0.0.1:8118
8.source ~/.bashrc
9.curl www.google.com