亲爱的
我正在Docker Swarm上运行PiHole,但我只看到2个客户端:10.0.0.3和localhost。如果我从网上的各种讨论中正确理解,如果我以主机方式公开DNS端口(pihole被迫在单个群集节点上运行),我应该能够在PiHole中看到所有客户端:
ports:
- published: 53
target: 53
protocol: tcp
mode: host
- published: 53
target: 53
protocol: udp
mode: host
- published: 67
target: 67
protocol: udp
mode: ingress
- published: 8053
target: 80
protocol: tcp
mode: ingress
不幸的是,如果我以这种方式公开端口,则dns服务不再起作用:我可以看到容器上公开的端口:
pi@raspy3:~ $ docker port 3be0321961a6
53/tcp -> 0.0.0.0:53
53/udp -> 0.0.0.0:53
但是我无法通过NETSTAT看到它们:
pi@raspy3:~ $ netstat -atu | grep LISTEN
tcp 0 0 0.0.0.0:ssh 0.0.0.0:* LISTEN
tcp6 0 0 [::]:8053 [::]:* LISTEN
tcp6 0 0 [::]:domain [::]:* LISTEN
tcp6 0 0 [::]:ssh [::]:* LISTEN
tcp6 0 0 [::]:https [::]:* LISTEN
tcp6 0 0 [::]:8000 [::]:* LISTEN
tcp6 0 0 [::]:9000 [::]:* LISTEN
tcp6 0 0 [::]:2377 [::]:* LISTEN
tcp6 0 0 [::]:7946 [::]:* LISTEN
tcp6 0 0 [::]:http [::]:* LISTEN
并且nslookup不起作用:
pi@raspy4:~ $ nslookup google.com 192.168.32.2
;; connection timed out; no servers could be reached
您能帮我了解我正在失去的东西吗?
谢谢:)
解决了将接口收听行为更改为在所有接口上监听,允许所有起源。
显然,请确保遵循PiHole团队的所有安全保护措施;)