小编die*_*per的帖子

UFW 正在阻止 DNS

我正在我的服务器中配置安全性。为了更轻松地管理防火墙,我安装了 UFW。我在 UFW 中做了一些设置,并允许了一些端口。因此,当我启用它时,DNS 服务没有响应。

我尝试运行命令DIG www.domain.com.br来测试 DNS,但没有成功。当 UFW 被禁用时,此命令运行没有问题。我已经允许 53 端口(TCP 和 UDP),但 DNS 不起作用。

我的 UFW 设置:

Status: active
Logging: on (low)
Default: deny (incoming), deny (outgoing), disabled (routed)
New profiles: skip

To                         Action      From
--                         ------      ----
21/tcp                     ALLOW IN    Anywhere
16/tcp                     ALLOW IN    Anywhere
443/tcp                    ALLOW IN    Anywhere
80                         ALLOW IN    Anywhere
53                         ALLOW IN    Anywhere
465                        ALLOW IN    Anywhere
25/tcp                     ALLOW IN    Anywhere
22                         ALLOW IN    Anywhere
21/tcp (v6)                ALLOW IN    Anywhere (v6) …
Run Code Online (Sandbox Code Playgroud)

linux ubuntu dns ufw

11
推荐指数
3
解决办法
3万
查看次数

标签 统计

dns ×1

linux ×1

ubuntu ×1

ufw ×1