总共分成三部
1.配置shadowsocks服务端
2.配置ssr客户端
3.配置proxychians代理
1.配置ssr服务器
安装pip
apt install -y pip
pip 安装 shadowsocks
pip install shadowsocks
编辑配置文件
mkdir -p /etc/shadowsocks/
/etc/shadowsocks/shadowsocks.json
{
"server":"::",
"local_address":"127.0.0.1",
"local_port":1080,
"port_password":{
"8888":"88888888",
"9999":"99999999"
},
"timeout":300,
"method":"aes-256-cfb",
"fast_open":false
}
给多个用户使用的时候可以配置多个端口,设置不同的密码。
启动 shadowsocks
nohup /usr/local/bin/ssserver -c /etc/shadowsocks/shadowsocks.json &> log.log &
相关错误
AttributeError: /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1: undefined symbol
修改openssl.py脚本
find /-name openssl.py
正常是这个路径
/usr/local/lib/python2.7/dist-packages/shadowsocks/crypto/openssl.py
将脚本
libcrypto.EVP_CIPHER_CTX_cleanup.argtypes = (c_void_p,)
替换为
libcrypto.EVP_CIPHER_CTX_reset
2.配置ssr客户端
1.下载ssr客户端程序
wget https://raw.githubusercontent.com/the0demiurge/CharlesScripts/master/charles/bin/ssr
2.授权ssr
chmod -R 777 ssr && cp ssr /usr/bin/
3.安装ssr客户端
ssr install
4.配置ssr
ssr config
{
"server": "test.test.com",
"server_ipv6": "::",
"server_port": 8888,
"local_address": "127.0.0.1",
"local_port": 1080,
"password": "88888888",
"method": "aes-256-cfb",
"timeout": 120,
"udp_timeout": 60,
"dns_ipv6": false,
"connect_verbose_info": 0,
"redirect": "",
"fast_open": false
}
5.启动ssr
ssr start
3.配置proxychains
1.安装proxychains
apt install -y proxychains
2.配置proxychains
mkdir ~/.proxychains/ && touch ~/.proxychains/proxychains.conf
3.添加配置信息
vim ~/.proxychains/proxychains.conf
strict_chain
proxy_dns
remote_dns_subnet 224
tcp_read_time_out 15000
tcp_connect_time_out 8000
localnet 127.0.0.0/255.0.0.0
quiet_mode
[ProxyList]
socks5 127.0.0.1 1080
4.测试代理效果
proxychains curl ifconfig.me
网友评论