1、下载ssr
pypi搜索下载
bash
1 | # wget https://files.pythonhosted.org/packages/02/1e/e3a5135255d06813aca6631da31768d44f63692480af3a1621818008eb4a/shadowsocks-2.8.2.tar.gz |
2、安装ss
bash
1 | tar xf shadowsocks-2.8.2.tar.gz |
3、生成配置文件
bash
1 | sudo vim /etc/shadowsocks.json |
4、修改sslocal报错
bash
1 | sudo vim /usr/local/lib/python2.7/dist-packages/shadowsocks-2.8.2-py2.7.egg/shadowsocks/crypto/openssl.py |
5、启动ss
bash
1 | sudo sslocal -c /etc/shadowsocks.json |
6、查找可用地址
Code
1 | https://github.com/Alvin9999/new-pac/wiki/ss%E5%85%8D%E8%B4%B9%E8%B4%A6%E5%8F%B7 |
7、配置proxychains
bash
1 | sudo vim /etc/proxychains |
8、复制或软连接proxyresolv
bash
1 | cp /usr/lib/proxychains3/proxyresolv /usr/bin/ |
9、验证本地双层代理地址解析
bash
1 | proxyresolv www.google.com |
10、安装w3m、elinks、lynx等CLI浏览器
bash
1 | sudo apt install w3m |
11、测试
bash
1 | sudo proxychains w3m www.google.com |
12、查找/usr/lib/x86_64-linux-gnu/libproxychains.so.3
bash
1 | sudo find / -name libproxychains.so.3 -print |
13、修改proxychains脚本
bash
1 | vim /usr/bin/proxychains |
14、测试普通用户的proxychains
bash
1 | proxychains w3m www.google.com |