如您在此处看到的,我已启用 ufw:
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), allow (routed)
New profiles: skip
To Action From
-- ------ ----
22/tcp LIMIT IN Anywhere
22/tcp (v6) LIMIT IN Anywhere (v6)
出于某种原因,当我在端口 80 上启动 HTTP 服务器时,我能够查看网页,即使我没有设置允许端口 80 的规则。
当我试图拒绝端口 80 时:
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), allow (routed)
New profiles: skip
To Action From
-- ------ ----
22/tcp LIMIT IN Anywhere
80/tcp DENY IN Anywhere
22/tcp (v6) LIMIT IN Anywhere (v6)
80/tcp (v6) DENY IN Anywhere (v6)
我仍然能够查看网页。
有人可以告诉我我做错了什么吗?