VPS IP 线路检测

在你的 VPS 上跑一条命令,自动检测 IP 属性、三网回程线路(CN2 / 9929 / CMIN2 等)和延迟丢包,生成可分享的网页报告。

1. 安装依赖(Debian/Ubuntu)

apt-get update && apt-get install -y python3 traceroute iputils-ping curl

2. 运行检测

curl -fsSL https://ip.abaibl.com/agent.py -o /tmp/vps-ip-check.py && python3 /tmp/vps-ip-check.py --server https://ip.abaibl.com

跑完会输出报告链接。加 --full 测 6 个三网目标;加 --mask-ip 打码 IP 末段再分享;商家宣称某条线路时加 --claimed "CN2 GIA" 自动对照实测。报告链接为随机地址,请勿公开传播不想公开的 IP。

3. 晚高峰定时复测(可选)

crontab -e
# 每天 21:00 自动复测,报告页会自动对比同 IP 的历史结果
0 21 * * * python3 /tmp/vps-ip-check.py --server https://ip.abaibl.com >> /var/log/vps-ip-check.log 2>&1

说明:线路判定基于回程逐跳 ASN,网段仅作兜底线索;单次结果不代表晚高峰表现,建议 20:00–23:00 复测对比。