|

给SS添加chacha20加密算法

1.通过ssh登陆vps,逐行运行一下代码:

yum install m2crypto gcc -y
wget -N --no-check-certificate https://download.libsodium.org/libsodium/releases/libsodium-1.0.12.tar.gz
tar zfvx libsodium-1.0.12.tar.gz
cd libsodium-1.0.12
./configure
make && make install
echo "include ld.so.conf.d/*.conf" > /etc/ld.so.conf
echo "/lib" >> /etc/ld.so.conf
echo "/usr/lib64" >> /etc/ld.so.conf
echo "/usr/local/lib" >> /etc/ld.so.conf
ldconfig

2.更改VPS的 /etc/shadowsocks.json文件。把原有的aes-256-cfb修改为chacha20即可。

3.reboot VPS。

结束

Similar Posts

Leave a Reply

Your email address will not be published.