小皇网

配置SS,shadow socks

(1)安装shadowsocks:

   apt-get install python-pip
  pip install shadowsocks

(2)配置/etc/shadowsocks/config.json:

{
"server":"my_server_ip",
"server_port":8388,
"local_address": "127.0.0.1",
"local_port":1080,
"password":"mypassword",
"timeout":300,
"method":"aes-256-cfb",
"fast_open": false,
"workers": 1
}

(3)启动server:

sudo ssserver -c /etc/shadowsocks/config.json  &

(4)启动client:

sslocal -s 127.0.0.1 -p 8388 -l 1080 -k mypassword -m aes-256-cfb

(5)配置git使用代理

git config --global http.proxy 'socks5://127.0.0.1:1080' 
git config --global https.proxy 'socks5://127.0.0.1:1080'


发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

分享欢乐才能获得更多欢乐,知识也一样