我正在寻求帮助来解决在我的网络上配置 Pi-Hole 和 DNS 设置后出现的连接问题。以下是我的设置和问题的详细概述:
网络设置:
- 路由器:FRITZ!Box 6591 电缆
- Raspberry Pi Zero W 通过 LAN 连接,运行Pi-Hole
- 在最近发生变化之前,Pi-Hole 和网络一直运行良好。
最初的问题和采取的措施:
- 发现某些设备(例如许多 Google 设备)使用硬编码的 DNS 服务器
- 为了覆盖这个,我按照本教程在 FRITZ!Box 上阻止 Google DNS
- 配置 IPv4 路由以将 Google DNS(8.8.8.8 和 8.8.4.4)重定向到 Pi-Hole 的内部 IP 192.168.178.61,子网掩码为 255.255.255.255。
- 最初,这似乎很成功;ping Google DNS 如预期超时。
当前的问题:
- 与 FRITZ!Box 的 Wireguard VPN 连接突然失败并且尚未重新建立。
- 尝试了多个设备,但没有成功。
VPN配置:
[Interface]
PrivateKey = [REDACTED FOR PRIVACY]
Address = 192.168.178.202/24
DNS = 192.168.178.1, fritz.box
[Peer]
PublicKey = [REDACTED FOR PRIVACY]
PresharedKey = [REDACTED FOR PRIVACY]
AllowedIPs = 192.168.178.0/24, 0.0.0.0/0
Endpoint = REDACTEDFORPRIVACY.myfritz.net:50974
PersistentKeepalive = 25
VPN 客户端日志:
...
12:45:53 - peer(2MQH…8IT4) - UAPI: Updating endpoint
12:45:53 - Routine: receive incoming v4 - stopped
12:45:53 - Routine: receive incoming v6 - stopped
12:45:53 - UDP bind has been updated
12:45:53 - Routine: receive incoming v6 - started
12:45:53 - Routine: receive incoming v4 - started
12:45:58 - peer(2MQH…8IT4) - Handshake did not complete after 5 seconds, retrying (try 2)
12:45:58 - peer(2MQH…8IT4) - Sending handshake initiation
12:46:04 - peer(2MQH…8IT4) - Handshake did not complete after 5 seconds, retrying (try 2)
12:46:04 - peer(2MQH…8IT4) - Sending handshake initiation
12:46:09 - peer(2MQH…8IT4) - Handshake did not complete after 5 seconds, retrying (try 2)
12:46:09 - peer(2MQH…8IT4) - Sending handshake initiation
...
附加背景
- 由于可以进行远程智能家居控制,因此家庭互联网似乎可以正常工作。