You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

UFW未按预期屏蔽端口的问题排查求助

UFW未按预期屏蔽端口的问题排查求助

各位好,我在VPS上安装了ufw并执行了以下配置命令:

ufw default allow outgoing
ufw default deny incoming
ufw allow ssh
ufw allow 443/tcp comment 'accept HTTPS connections'
ufw enable
service ufw restart

执行后查看ufw status的输出如下:

Status: active

To Action From


22/tcp ALLOW Anywhere
443/tcp ALLOW Anywhere # accept HTTPS connections
22/tcp (v6) ALLOW Anywhere (v6)
443/tcp (v6) ALLOW Anywhere (v6) # accept HTTPS connections

但是现在我在家里用浏览器访问<ip_address_of_vps>:82时,仍然能看到运行在Docker容器里的某个服务的网页——我本来是想把这个端口从互联网屏蔽掉的。有没有大佬能帮我分析下为什么端口82还是对外开放的?

备注:内容来源于stack exchange,提问作者Thomas

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.21 10:18:00