SS安装(可多用户)

2019年3月4日 1192点热度 0人点赞 0条评论

安装bbr

(openvz 参考 wordpress建站)

cd ~ 
wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh  
chmod +x bbr.sh && ./bbr.sh

安装$$

使用root用户登录,运行以下命令:
wget --no-check-certificate -O shadowsocks-all.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-all.sh
chmod +x shadowsocks-all.sh
./shadowsocks-all.sh 2>&1 | tee shadowsocks-all.log

安装fail2ban或者denyhosts(推荐安装前者, 后者已经多年没有更新)

centos 6 两者都无法安装, 则添加源后安装

添加EPEL源:

yum install -y epel-release

然后安装

yum install fail2ban

配置完成后,启动:

service fail2ban start

设置开机启动:

chkconfig fail2ban on
Shadowsocks-Python 版:
/etc/shadowsocks-python/config.json
ShadowsocksR 版:
/etc/shadowsocks-r/config.json
Shadowsocks-Go 版:
/etc/shadowsocks-go/config.json
Shadowsocks-libev 版:
/etc/shadowsocks-libev/config.json
vi /etc/shadowsocks-python/config.json
vim /etc/shadowsocks-python/config.json
service shadowsocks-python restart
{
    "server":"::",
     "local_address":"127.0.0.1",
     "local_port":1080,
     "port_password":{
 "18500":"123789123",
 "18501":"123789123",
 "18502":"123789123",
 "18503":"123789123",
 "18504":"123789123",
 "18505":"123789123"
     },
     "timeout":300,
     "method":"chacha20-ietf-poly1305",
     "fast_open":true
 }

要使用ifconfig命令 则

 yum install net-tools
debian下命令
启动:/etc/init.d/shadowsocks-python start
停止:/etc/init.d/shadowsocks-python stop
重启:/etc/init.d/shadowsocks-python restart
查看状态:/etc/init.d/shadowsocks-python status

Qiui

这个人很懒,什么都没留下

订阅评论
提醒
guest
0 评论
内联反馈
查看所有评论
0
希望看到您的想法,请您发表评论x