AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 1034535
Accepted
Koen Vuurens
Koen Vuurens
Asked: 2020-09-20 05:04:23 +0800 CST2020-09-20 05:04:23 +0800 CST 2020-09-20 05:04:23 +0800 CST

Pfsense DNS 端口转发

  • 772

我在使用 PFSense 对 DNS 服务器进行端口转发时遇到了问题。我在同一个防火墙上安装了许多服务,只是我无法端口转发 DNS 服务器。

使用本地地址的 DIG dns:

root@hfr-nl-dns01:~# dig A a-domain.test @10.10.30.28

; <<>> DiG 9.11.3-1ubuntu1.13-Ubuntu <<>> A a-domain.test @10.10.30.28
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 62603
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;a-domain.test.                        IN      A

;; ANSWER SECTION:
a-domain.test.         60      IN      A       <public ip>

;; Query time: 4 msec
;; SERVER: 10.10.30.28#53(10.10.30.28)
;; WHEN: Sat Sep 19 12:53:10 UTC 2020
;; MSG SIZE  rcvd: 59

但是当我尝试在端口转发的 IP 上问同样的问题时:

root@hfr-nl-dns01:~# dig A a-domain.test @<another public ip>

; <<>> DiG 9.11.3-1ubuntu1.13-Ubuntu <<>> A a-domain.test @<another public ip>
;; global options: +cmd
;; connection timed out; no servers could be reached

我已经尝试在网络中的另一台机器上使用 dig,它确实像我习惯的那样响应,所以据我所知与绑定到 IP 无关。

我的 Pfsense NAT PF:

interface: corrosponds to the interface the virtual IP is on
protocol: TCP/UDP (Because PowerDNS requires TCP aswell)
Destination: The virtual IP that I want this to be hosted on
Destination port range: From DNS to DNS

Redirect target IP: 10.10.30.28 (The dns machine)
redirect target port: DNS

我尝试将 NAT 反射设置为“启用(NAT + 代理)”,但没有帮助。

有谁知道我可以检查什么以查看为什么 DNS 没有被端口转发?

domain-name-system nat port-forwarding pfsense
  • 1 1 个回答
  • 1060 Views

1 个回答

  • Voted
  1. Best Answer
    Koen Vuurens
    2020-09-20T10:47:53+08:002020-09-20T10:47:53+08:00

    经过一些故障排除后,它被确定为 NAT 反射,它被设置为系统默认选项。将其更改为“启用(纯 NAT)”后,它按预期工作。

    • 1

相关问题

  • Solaris DNS

  • resolv.conf 在经过一段时间后被更改

  • 为什么有些网站的网址中没有“www”就无法显示?[关闭]

  • 为本地网络中的名称解析添加自定义 dns 条目

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve