想用就老老实实花钱买贵的基于KVM的套餐吧。

购买。装最新Debian系统,我不喜欢别的。

玩玩BBR

装BBR。

https://teddysun.com/489.html

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

似乎没用,高版本的内核自带了。

复制公钥

1
ssh-copy-id -i .ssh/id_rsa.pub [email protected] -p 11111

SS

装最新的Shadowsocks-libev

Nginx

装主线版本

1
2
3
4
5
6
(cat <<-SRC
# nginx mainline repository
deb http://nginx.org/packages/mainline/debian/ stretch nginx
deb-src http://nginx.org/packages/mainline/debian/ stretch nginx
SRC
) > /etc/apt/sources.list.d/nginx-mainline.list

启用HTTPS支持

DnsPod逼我必须实名认证

只能不用了。换Cloudflare了,还能免费上HTTPS。

Fail2Ban

https://www.fail2ban.org/wiki/index.php/MANUAL_0_8

装Go以及Go编写的软件

1
2
3
4
5
6
7
8
9
10
(cat <<-SRC
# nginx mainline repository
deb http://deb.debian.org/debian/ unstable main contrib non-free
deb-src http://deb.debian.org/debian/ unstable main contrib non-free
SRC
) > /etc/apt/sources.list.d/unstable.list
apt-get update
apt-get install golang-1.11-go
export PATH=${PATH}:/usr/lib/go-1.11/bin
go get github.com/iawia002/annie

效果

国内Ping