Hello everyone, I am new to pfsense. So I have about 4 interfaces, A, B, C and D. I have a pihole connected as a vm which is connected to interface A. Of course, everything on A is able to query without issue, however, B, C and D is not able to reach the pihole, and currently there are no rule on those interface.
When i setup DHCP for B, C, and D (which all has a different subnet), i told it use the pihole address. And when i setup a VM on a D interface (for example) it will not ping google.com or anything else. System > General Setup > DNS is also setup here and iv also have the DNS resolver enabled.
There is a default “deny all” rule on all interfaces in pfsense. You need to set rules to allow traffic to your pihole (if it is on a different interface/subnet) and to the internet.
Here the relevant rules I have set on my IOT network:
HOST_pihole ist an alias for the IP address of my pihole
PORTS_DNS is an alias for the ports 53 and 853
NET_RFC1918 contains the private IP ranges and the exclamation mark means “inverse match”. So the rule says: Allow traffic to any destination except the IP ranges in the RFC1918 alias.
Yes you need to have rules as @bb77 has indicated however, you can also use pfBlocker if you want to block ads. I use to use pihole, pretty graphs but after a while I never looked at them.
Thank you both for the reply and for your insights. But shouldnt pfSense already have something working in the background when you have already selected it, or at least automatically create a rule for you so at least the people (like myself) understand that a rule is needed?
Follow up question, at some point after learning how everything works. I would like to use pihole for all of the DHCP request for all interface as well… would that also need a rule in each interface? even if i have DHCP Relay active?
I think it’s more like you have pihole on one network and your IoT on another, hence you need a rule. If you were using pfSense for DNS you don’t need that rule you it points to home by default.
I’d suggest getting use to pfSense and how it operates first, then use “pihole”, it’s a steep learning curve but you can then progress when you want to deviate from the “default”.