Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
21.1 Legacy Series
»
[Solved] Route to Pihole from Guest Vlan
« previous
next »
Print
Pages: [
1
]
Author
Topic: [Solved] Route to Pihole from Guest Vlan (Read 3880 times)
s4rs
Full Member
Posts: 144
Karma: 5
[Solved] Route to Pihole from Guest Vlan
«
on:
April 01, 2021, 05:38:03 pm »
I am trying to get hosts on my Guest vlan to use my Pihole server on my Home vlan. I have setup a rule on Guest
Protocol - IPV4 TCP/UDP
Source - Any
Port - Any
Destination - <PiHole Server>
Port - 53(DNS)
Gateway - Any
and it doesn't work
I turned on Rule logging and can see what I think packets going to Pihole but its not working. Any suggestions? Images of rule an log below
«
Last Edit: April 03, 2021, 10:23:10 pm by s4rs
»
Logged
iamperson347
Newbie
Posts: 24
Karma: 1
Re: Route to Pihole from Guest Vlan
«
Reply #1 on:
April 02, 2021, 03:49:31 am »
That rule looks right. What do you mean by "use my Pihole server on my Home vlan"? Are you trying to force the clients to use the pihole server? Or just set the DNS servers for your guest machines to point to the pihole? You could probably set source to Guest Network.
Mine looks pretty similar. (attached screenshot)
Logged
s4rs
Full Member
Posts: 144
Karma: 5
Re: Route to Pihole from Guest Vlan
«
Reply #2 on:
April 02, 2021, 04:43:59 am »
I have 2 vlans, home and guest. The pihole server is on my home vlan. I would like guest dns requests to go through the home vlan pihole server.
Logged
Greelan
Hero Member
Posts: 1028
Karma: 72
Re: Route to Pihole from Guest Vlan
«
Reply #3 on:
April 02, 2021, 04:51:29 am »
So at a minimum you should configure DHCP to hand out the IP of the Pi-hole as DNS. If you want to go the next step and
force
guest hosts to use the Pi-hole even if they have different DNS settings, then that requires more configuration (there are tutorials on that). I suggest getting the minimum working first
Is your Pi-hole seeing the requests from the guest hosts? What do the Pi-hole logs show?
Logged
s4rs
Full Member
Posts: 144
Karma: 5
Re: Route to Pihole from Guest Vlan
«
Reply #4 on:
April 02, 2021, 05:04:36 am »
The DHCP server on the guest network points to the pihole server. I see entries in the pihole logs, but not sure what they mean.. I do a tcpdump tomorrow and see if there are requests from the guest vlan.
Logged
Greelan
Hero Member
Posts: 1028
Karma: 72
Re: Route to Pihole from Guest Vlan
«
Reply #5 on:
April 02, 2021, 05:06:14 am »
You should be able to see DNS requests from the guest host IPs if they are getting through to the Pi-hole (the OPNsense fw logs suggest they are)
Logged
s4rs
Full Member
Posts: 144
Karma: 5
Re: Route to Pihole from Guest Vlan
«
Reply #6 on:
April 03, 2021, 10:22:41 pm »
Turns out my issue was with a pihole setting. I needed to enable - Listen on all interfaces, permit all origins.. Once I did this it worked as expected.
See image.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
21.1 Legacy Series
»
[Solved] Route to Pihole from Guest Vlan