ss搭建

177 阅读1分钟

#shado#wsocks# ###是一个基于python的轻量级socks代理软件,可以在任何系统简单的实现访问被屏蔽的网站。网友也常称为科学上网,简称ss,在此分享与记录CentOS一键安装###脚本。

一、使用root用户登录,运行以下命令:

wget --no-check-certificate https://raw.githubusercontent.com/teddysun/###_install/master/###.sh
chmod +x ###.sh
./###.sh 2>&1 | tee ###.log

二、安装完成后,脚本提示如下:

Congratulations, ### install completed!
Your Server IP:your_server_ip
Your Server Port:8989
Your Password:your_password
Your Local IP:127.0.0.1
Your Local Port:1080
Your Encryption Method:aes-256-cfb

Welcome to visit:http://teddysun.com/342.html
Enjoy it!

三、卸载方法

./###.sh uninstall

四、配置文件

配置文件路径为:/etc/###.json

单用户配置:

{
    "server":"your_server_ip",
    "server_port":8989,
    "local_address":"127.0.0.1",
    "local_port":1080,
    "password":"yourpassword",
    "timeout":300,
    "method":"aes-256-cfb",
    "fast_open": false
}

多用户配置:

{
    "server":"your_server_ip",
    "local_address": "127.0.0.1",
    "local_port":1080,
    "port_password":{
         "8989":"password0",
         "9001":"password1",
         "9002":"password2",
         "9003":"password3",
         "9004":"password4"
    },
    "timeout":300,
    "method":"aes-256-cfb",
    "fast_open": false
}

五、相关使用命令

#启动
/etc/init.d/### start
#停止
/etc/init.d/### stop
#重启
/etc/init.d/### restart
#状态
/etc/init.d/### status

####BBR介绍 Google BBR (Bottleneck Bandwidth and RTT) 是一种新的TCP拥塞控制算法,它可以高效增加吞吐和降低网络延迟,并且Linux Kernel4.9+已经集成该算法。开启BBR也非常简单,因为它只需要在发送端开启,网络其他节点和接收端不需要任何改变。

######开启Google BBR 修改sysctl配置

 echo 'net.core.default_qdisc=fq' | tee -a /etc/sysctl.conf
 echo 'net.ipv4.tcp_congestion_control=bbr' |  tee -a /etc/sysctl.conf
 sysctl -p

检查是否加载BBR

lsmod | grep bbr

如果输出结果包含tcp_bbr,则表示开启成功

tcp_bbr 20480 0

参考文章

阿里云内核升级参考文档 bbr 参考: