验证防火墙实际效果
关闭 Mac 上的小火箭、VPN 或其他可能影响端口测试的代理软件。
在 Mac 本地终端中执行,注意不是 VPS 的 SSH 终端:
for port in 22 80 443 8000 6001 6002 8080; do
nc -vz -G 3 VPS_IP "$port"
done本次 IPv4 TCP 测试结果与下表一致。
| 端口 | 连接结果 |
|---|---|
| 22 | succeeded |
| 80 | succeeded |
| 443 | succeeded |
| 8000 | Operation timed out |
| 6001 | Operation timed out |
| 6002 | Operation timed out |
| 8080 | Operation timed out |
再进行三项功能测试:
- 通过
https://coolify.example.com正常访问面板 - Coolify 网页 Terminal 执行
whoami返回root - Mac 终端通过 SSH 正常连接 VPS
目前实际 IPv4 TCP 端口测试已经通过。