端口虽然被 ufw 封锁,但仍可访问

端口虽然被 ufw 封锁,但仍可访问

我正在运行一个监听端口 31731 的软件。我的客户端软件可以连接到我服务器上的端口 31731。在线端口扫描工具也确认该端口已打开。

但是我检查了 ufw 状态,默认规则是拒绝所有传入,并且没有允许 31731 的规则。

~$ sudo ufw status verbose
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), deny (routed)
New profiles: skip

To                         Action      From
--                         ------      ----
Anywhere                   DENY IN     83.237.17.0/24
Anywhere                   DENY IN     45.77.149.0/24
Anywhere                   DENY IN     178.159.37.0/24
Anywhere                   DENY IN     37.115.223.0/24
Anywhere                   DENY IN     207.180.255.0/24
Anywhere                   DENY IN     42.117.48.0/24
Anywhere                   DENY IN     213.152.162.0/24
Anywhere                   DENY IN     5.227.15.0/24
22/tcp                     ALLOW IN    Anywhere
22                         ALLOW IN    Anywhere
80/tcp                     ALLOW IN    Anywhere
443/tcp                    ALLOW IN    Anywhere
123/udp                    ALLOW IN    Anywhere
22/tcp (v6)                ALLOW IN    Anywhere (v6)
22 (v6)                    ALLOW IN    Anywhere (v6)
80/tcp (v6)                ALLOW IN    Anywhere (v6)
443/tcp (v6)               ALLOW IN    Anywhere (v6)
123/udp (v6)               ALLOW IN    Anywhere (v6)

~$

为什么端口可以访问?服务器端软件会覆盖 ufw 吗,还是 ufw 配置不正确?

相关内容