SS一键安装脚本
yum -y install wget wget -O /root/shadowsocks.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks.sh sh /root/shadowsocks.sh install
交互可以一直回车,后面配置文件可以修改安装完成会提示如下信息,有提示加密的请选择 7,也就是aes-256-cfb ,客户端不支持前面的几种,成功会有类似提示
Congratulations, shadowsocks server installcompleted! Your Server IP: Your Server Port: 8989 Your Password: 123456 Your Local IP: 127.0.0.1 Your Local Port: 1080 Your Encryption Method: aes-256-cfb Welcome tovisit:https://teddysun.com/342.html Enjoy it!
失败的话可以测试卸载重试加密方式7换成 14 chacha20-ietf
卸载方法
/root/shadowsocks.sh uninstall
配置文件 配置文件路径为:/etc/shadowsocks.json
单用户配置:
{
"server":"0.0.0.0",
"server_port":8989,
"local_address":"127.0.0.1",
"local_port":1080,
"password":"123456",
"timeout":300,
"method":"aes-256-cfb",
"fast_open":false
}
多用户配置:
{
"local_address":"127.0.0.1",
"local_port":1080,
"server":"0.0.0.0",
"port_password":{
"8989":"password0",
"8990":"password1",
},
"timeout":300,
"method":"aes-256-cfb",
"fast_open":false
}
service shadowsocks start #启动
windows客户端使用下载, 更新为最新版本,可能需要安装最新的.net framework
直接运行小飞机,会弹出一下窗口,填写配置的信息,点击确定后
linux 客户端 (kali,fedora)
pip install shadowsocks
创建/etc/shadowsocks.json文件,格式与服务器端的一样
报错:AttributeError: /usr/lib/libcrypto.so.1.1: undefined symbol: EVP_CIPHER_CTX_cleanup
sed -i "s/cleanup/reset/g" /usr/local/lib/python2.7/dist-packages/shadowsocks/crypto/openssl.py
连接
sslocal -c config.json -d start
还没完,需要打开右上角代理设置-->网络代理
socks 改成json配置的127.0.0.1的端口
后面可以直接使用service启动脚本,shell脚本如下,
#!/bin/bash
# chkconfig: 234 60 30
function start() {
sslocal -c /etc/ss.json -d start
sudo -i /usr/bin/gsettings set org.gnome.system.proxy mode "manual"
}
function stop() {
pkill sslocal
sudo -i /usr/bin/gsettings set org.gnome.system.proxy mode "none"
}
case "$1" in
"start")
start
;;
"stop")
stop
;;
"*")
echo "use start | stop"
;;
esac
建议使用chkconfig 命令启动off
安卓客户端下载
mac OS
iphone可以直接在app搜索ssr
本文TAG:shadowsocks
- 上一篇: vim快捷键/vim常用命令大全
- 下一篇: python推送钉钉群消息
猜你喜欢
- 2024-10-06Centos7安装wireguard
- 2024-09-25ubuntu18安装WireGuard
- 2024-09-24centos9安装openvpn
- 2024-01-06shadowsocks一键安装脚本
- 2024-01-05vim快捷键/vim常用命令大全
- 2024-01-04Debian安装Squid代理服务器
- 搜索