Guide 04

VPS 最小安全检查清单

不追求复杂,先把最容易出事的几件事检查掉。

开放端口

ss -tulpn
iptables -S
nft list ruleset

系统更新

apt update
apt list --upgradable
apt upgrade

备份重要配置

mkdir -p /root/backup-$(date +%Y%m%d)
cp -a /etc/hysteria /root/backup-$(date +%Y%m%d)/
cp -a /etc/nginx /root/backup-$(date +%Y%m%d)/ 2>/dev/null || true

看日志

journalctl -p warning -n 80 --no-pager
journalctl -u ssh -n 60 --no-pager
journalctl -u nginx -n 60 --no-pager

公开教程里不要贴真实 IP、密码、节点链接和证书私钥。