文中所有的shadows替换为shadows连接ocks
*在可上网的机器****Test-Internet (192.168.2.53)**** 上配置*
## 下载shadows安装包:
**git clone -b master https://github.com/shadows/shadows.git**
## 安装:
**python3 setup.py install**
## 服务器端配置:
~~ssserver -p 4431 -k password -m aes-256-cfb -d start~~
[root@localhost shadows]#**cat /etc/shadows.json **
{
"server":"0.0.0.0",
"server_port":10000,
"local_address": "0.0.0.0",
"local_port":10001,
"password":"Bw566jbzyG22",
"timeout":300,
"method":"aes-256-cfb",
"fast_open": false
}
[root@localhost shadows]#**nohup /usr/local/bin/ssserver -c /etc/shadows.json -d start &**
***在不上网的机器Test-Apps (192.168.13.53)上配置***
## 客户端配置:
创建一个 /etc/shadows.json 文件,格式如下
**cat /etc/shadows.json **
{
"server":"192.168.2.53",
"server_port":10000,
"local_address": "127.0.0.1",
"local_port":1080,
"password":"Bw566jbzyG22",
"timeout":300,
"method":"aes-256-cfb",
"fast_open": false
}
后台运行代理连接server端并监听本地1080端口
**nohup /usr/local/bin/sslocal -c /etc/shadows.json -d start &**
测试代理访问百度
**curl --socks5 127.0.0.1:1080 **[**http://www.baidu.com**](http://www.baidu.com)
***在不上网的机器另一台机器(网络只通*****192.168.12.53*****)上配置***
## 安裝 proxychains
**git clone **[**http://github.com/haad/proxychains.git**](http://github.com/haad/proxychains.git)
chmod +x *
./configure
make
make install
make install-config
编辑**vi /root/proxychains/src/proxychains.conf**
修改最后一行
**socks5 192.168.13.53 1080**
接着我们就可以直接 用 proxychains + 命令的方式使用代理,例如
** ****proxychains4 -f /root/proxychains/src/proxychains.conf ping **[**www.baidu.com**](http://www.baidu.com)