1:安装 BBR:

KVM:
wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh
chmod +x bbr.sh
./bbr.sh
通用魔改版:
wget -N --no-check-certificate "https://github.000060000.xyz/tcpx.sh" && chmod +x tcpx.sh && ./tcpx.sh
锐速可用版:
wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh
wget -N --no-check-certificate https://github.com/91yun/serverspeeder/raw/master/serverspeeder.sh && bash serverspeeder.sh
锐速状态检查
service serverSpeeder status
锐速启动
service serverSpeeder start
适用于ubuntu18.04的魔改版:
wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh"
apt install make gcc -y
sed -i 's#/usr/bin/gcc-4.9#/usr/bin/gcc#g' '/root/tcp.sh'
chmod +x tcp.sh && ./tcp.sh
Openvz:

LKL版:

wget --no-check-certificate https://github.com/91yun/uml/raw/master/lkl/install.sh && bash install.sh
LKL-Rinetd版:
Centos:
#单网卡
wget https://github.com/tcp-nanqinlang/lkl-rinetd/releases/download/1.1.0/tcp_nanqinlang-rinetd-centos.sh
bash tcp_nanqinlang-rinetd-centos.sh

#如果提示only support OpenVZ !,则使用下面这个脚本

wget https://github.com/tcp-nanqinlang/lkl-rinetd/releases/download/1.1.0-nocheckvirt/tcp_nanqinlang-rinetd-centos-nocheckvirt.sh
bash tcp_nanqinlang-rinetd-centos-nocheckvirt.sh

#多网卡

wget https://github.com/tcp-nanqinlang/lkl-rinetd/releases/download/1.1.0/tcp_nanqinlang-rinetd-centos.sh
bash tcp_nanqinlang-rinetd-centos.sh

#如果提示only support OpenVZ !,则使用下面这个脚本

wget https://github.com/tcp-nanqinlang/lkl-rinetd/releases/download/1.1.0-nocheckvirt/tcp_nanqinlang-rinetd-debianorubuntu-nocheckvirt-multiNIC.sh
bash tcp_nanqinlang-rinetd-debianorubuntu-nocheckvirt-multiNIC.sh
Ubuntu:

#适用于单网卡(单IP)服务器:

wget https://github.com/tcp-nanqinlang/lkl-rinetd/releases/download/1.1.0/tcp_nanqinlang-rinetd-debianorubuntu.sh
bash tcp_nanqinlang-rinetd-debianorubuntu.sh

#如果提示only support OpenVZ !,则使用下面这个脚本

wget https://github.com/tcp-nanqinlang/lkl-rinetd/releases/download/1.1.0-nocheckvirt/tcp_nanqinlang-rinetd-debianorubuntu-nocheckvirt.sh
bash tcp_nanqinlang-rinetd-debianorubuntu-nocheckvirt.sh

#多网卡:

wget https://github.com/tcp-nanqinlang/lkl-rinetd/releases/download/1.1.0/tcp_nanqinlang-rinetd-debianorubuntu-multiNIC.sh
bash tcp_nanqinlang-rinetd-debianorubuntu-multiNIC.sh

#如果提示only support OpenVZ !,则使用下面这个脚本

wget https://github.com/tcp-nanqinlang/lkl-rinetd/releases/download/1.1.0-nocheckvirt/tcp_nanqinlang-rinetd-debianorubuntu-nocheckvirt-multiNIC.sh
bash tcp_nanqinlang-rinetd-debianorubuntu-nocheckvirt-multiNIC.sh

2.安装管理面板

笨猫破解版
5.x centos: yum install -y wget && wget --no-check-certificate -O install.sh https://raw.githubusercontent.com/wangzhe12588/bt59happy/master/install-5.9-c.sh && sh install.sh
5.x ubuntu:wget --no-check-certificate -O install.sh https://raw.githubusercontent.com/wangzhe12588/bt59happy/master/install-ubuntu.sh && sudo bash install.sh
5.x debian:wget --no-check-certificate -O install.sh https://raw.githubusercontent.com/wangzhe12588/bt59happy/master/install-ubuntu.sh && bash install.sh
6.x: yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && bash install.sh
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh

3.安装 科学上网

233版V2ray:

bash <(curl -s -L https://git.io/v2ray.sh)
Doubi版:
wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubiBackup/doubi/master/ssrmu.sh && chmod +x ssrmu.sh && bash ssrmu.sh

秋水逸冰版:

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

手动编译修改进程名防止被发现:

wget https://github.com/shadowsocks/shadowsocks/archive/master.zip
unzip master.zip
vim setup.py 

修改name项和entry_points下的ssserver项为其他名称,比如nodejs
然后安装

python setup.py install

然后添加开机启动

chmod +x /etc/rc.d/rc.local
vi /etc/rc.local

添加

nodejs -p 端口 -k 密码 -m 加密 --user nobody -d star  
Kcptun
wget --no-check-certificate https://raw.githubusercontent.com/kuoruan/kcptun_installer/master/kcptun.sh
chmod +x ./kcptun.sh
./kcptun.sh

4.安装 SNI代理转发google流量(非必须)

来源:https://github.com/myxuchangbin/dnsmasq_sniproxy_install

快速安装:
wget --no-check-certificate -O dnsmasq_sniproxy.sh https://raw.githubusercontent.com/myxuchangbin/dnsmasq_sniproxy_install/master/dnsmasq_sniproxy.sh && bash dnsmasq_sniproxy.sh -f
普通安装:
wget --no-check-certificate -O dnsmasq_sniproxy.sh https://raw.githubusercontent.com/myxuchangbin/dnsmasq_sniproxy_install/master/dnsmasq_sniproxy.sh && bash dnsmasq_sniproxy.sh -i
卸载方法:
wget --no-check-certificate -O dnsmasq_sniproxy.sh https://raw.githubusercontent.com/myxuchangbin/dnsmasq_sniproxy_install/master/dnsmasq_sniproxy.sh && bash dnsmasq_sniproxy.sh -u

脚本默认解锁Netflix Hulu HBO等,如需增删流媒体域名请编辑文件

vi /etc/dnsmasq.d/custom_netflix.conf
vi /etc/sniproxy.conf
查看sni状态:
systemctl status sniproxy
检查端口:
netstat -tlunp | grep 443
netstat -tlunp | grep 08
修改使用SNI的服务器dns:
vi /etc/resolv.conf
nameserver 你的sni服务器
nameserver 8.8.8.8
重启网络服务:
service network restart

/etc/init.d/network restart
测试sni代理是否成功:
yum install -y bind-utilsyum install -y bind-utils
nslookup google.com
安装nslookup:
yum install -y bind-utils
apt-get -y install dnsutils

5.安装 ServerStatus监控服务器情况

wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubiBackup/doubi/master/status.sh && chmod +x status.sh

显示客户端管理菜单:

bash status.sh c

显示服务端管理菜单

bash status.sh s

安装目录:

/usr/local/ServerStatus

网页文件:

/usr/local/ServerStatus/web

配置文件:

/usr/local/ServerStatus/server/config.json

客户端查看日志:

tail -f tmp/serverstatus_client.log

服务端查看日志:

tail -f /tmp/serverstatus_server.log
注意:

如果发生wegt错误,那这是因为你的系统过于精简了,请输入

yum install -y wget

6.安装 Fail2ban防御暴力SSH破解

wget https://raw.githubusercontent.com/FunctionClub/Fail2ban/master/fail2ban.sh && bash fail2ban.sh 2>&1 | tee fail2ban.log
卸载
wget https://raw.githubusercontent.com/FunctionClub/Fail2ban/master/uninstall.sh && bash uninstall.sh

使用参数ping来运行fail2ban-client 命令。 如果fail2ban服务正常运行,你可以看到“pong(嘭)”作为响应。

sudo fail2ban-client ping

回应:

Server replied: pong

7.解决国内服务器连不上github

chmod 777 /etc/hosts && echo "151.101.128.133 raw.githubusercontent.com" >> /etc/hosts
chmod 777 /etc/hosts && echo "13.229.188.59 github.com" >> /etc/hosts

8.端口转发脚本

wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubiBackup/doubi/master/tinymapper.sh && chmod +x tinymapper.sh && bash tinymapper.sh

待续……

樱花泉进行回复 取消回复

共有 2 条评论

  1. 阿桦

    不得不说很优秀

  2. 樱花泉

    值得萌新学习!