Hello,
I have set up Pi-Hole with Unbound DNS. I have also configured my FRITZ!Box to work with Pi-Hole.
The FRITZ!Box acts as the DCHP server. The FRITZ!Box DHCP server distributes the static ipv4 & ipv6 DNS addresses to the clients connected to my home network:
(Clients) -> Pi-hole -> Upstream DNS Server
I have configured Conditional Forwarding in Pi-Hole to retrieve the client names from the FRITZ!Box.
For the guest network, I use the Pi-Hole as an upstream server for my FRITZ!Box. All devices connected to the guest network will display the name of the FRITZ!Box, because Pi-Hole is the upstream server of the FRITZ!BOX:
(Clients) -> Fritz!Box -> Pi-hole -> Upstream DNS Server
So far so good, everything is working as intended.
Here’s my problem:
I have multiple devices connected to my local home network through a FRITZ!Box Wireguard VPN tunnel, to connect phones to my network when I am away from home.
Pi-Hole consistently shows all connections via Wireguard VPN as a single client named “fritz-nas.fritz.box”.
I have configured my WireGuard settings files as follows:
[Interface]
PrivateKey = ****
Address = 192.168.60.201/24,****:****:****:6060::201/64
DNS = 192.168.60.254,****:****:****:6060:****:**:**
DNS = fritz.box
[Peer]
PublicKey = ****
PresharedKey = ****
AllowedIPs = 192.168.60.0/24,0.0.0.0/0,****:****:****:6060::/64,::/0
Endpoint = ****.myfritz.net:56436
PersistentKeepalive = 25
I have set each device’s IP address in the same range as the devices on the local network, e.g. 192.168.60.* (IPv4) and ****:****:****:6060 (IPv6)
I can ping devices connected through the Wireguard VPN tunnel from my home network devices.
I can reach my pihole install from my devices connected with Wireguard via its IP address or via its web address “pi.hole”.
When I look at “Pi-hole web interface > Tools > Tail log files > pihole.log”, the IP clearly shows as being in the same subnet (query to pi-hole.net):
2026-01-12 16:21:59.871 query[AAAA] pi-hole.net from 192.168.60.201
2026-01-12 16:21:59.872 cached pi-hole.net is NODATA-IPv6
2026-01-12 16:22:02.493 query[A] js.stripe.com from 192.168.60.201
Filtering traffic on the VPN tunnels works, except all VPN tunnel traffic is grouped in Pi-Hole under “fritz-nas.fritz.box”.
Is there a way for me assign each VPN client a unique client name in Pi-Hole for customized filtering?
I know that it must be possible, because today, one of my devices passed its own client name through the VPN tunnel consistently. I could not find any divergent lines in the config compared to the others, and tried refreshing (deleting and installing) new tunnels to replicate this effect(since it was newer than the others). Unfortunately, it did not work, and all devices are back to being grouped together.