Hi,
I did search before asking this question, but couldn't find a conclusive answer.
I have 3 VLANs in FriendlyWRT (OpenWrt 22.03) and I have Pi-Hole running on a Raspberry Pi with DietPi.
VLAN1 (LAN) is subnet 192.168.26.0/24
VLAN3 (GUEST) is subnet 192.168.27.0/24
VLAN4 (IoT) is subnet 192.168.28.0/24
The Pi-Hole is serving DNS on 192.168.26.2
FriendlyWRT is serving DHCP requests.
LAN is Accept, Accept, Accept with forwardings to WAN and IoT.
GUEST is Reject, Accept, Reject with a forwarding to WAN.
IoT is Accept, Accept, Reject with no forwardings.
I have firewall rules to allow GUEST and IoT access to DHCP and DNS on FriendlyWRT and also rules to allow DNS to 192.168.26.2
I am assigning DNS servers using DHCP options on each VLAN as 6,192.168.26.2,192.168.26.1 (192.168.26.1 is FriendlyWRT).
I did have FriendlyWRT set up to forward DNS requests to the Pi-Hole, but this results in all requests being shown as originating from FriendlyWRT in the Pi-Hole Query Log.
How can I allow all VLANs to use Pi-Hole for DNS requests directly?
At the moment, with the configuration as outlined above, the IoT and GUEST VLANs are not using the Pi-Hole. I suspect that, despite firewall rules being present, it's something to do with forwarding between zones, but I can't quite put my finger on it.
Other suggestions I have seen, are to give the Pi-Hole IP addresses in each subnet, or to lower the security of the Pi-Hole by allowing requests in a less restrictive manner which I would rather avoid.
What am I missing here?
Thanks