What's new

Merlin + Guest Network + 2xPiHoles

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

RighteousPy

Occasional Visitor
Hoping there may be some gurus that could assist. First and foremost wanted to thank Merlin and the associated members of this great community for their scripts (Diversion, Yazfi, Unbound etc)!

I have the basics down but looking to do something a little more 'complex' and have been running into a brick wall for the last few days. What I'm trying to achieve is the following:

1. VPN Client running on 192.168.1.0/24 for select devices (no DNS Leaks) - working
2. Guest Network Wifi setup for my IoT devices (192.168.5.x) - this is easily solved with Yazfi (not running through the VPN) - working
3. A PiHole running for those IoT (Static IP 192.168.1.3, excluded from VPN tunnel and this is set to Force DNS on the Guest Wifi) - working
4. A PiHole for just the VPN clients, so they can block Ads (so as to avoid DNS Leaks) - not working

Some background - at the moment my RPi is setup using Docker, and one Container for PiHole. It's using the IP of the Host (Eth0 - 192.168.1.5). This works wonderfully for non-VPN clients setup by:
  • Excluded from the VPN Tunnel
  • Static IP - 192.168.1.5
  • Set to LAN DNS1
  • DNSFilter is set to Router
  • DNSFilter is excluding the RPi
  • On PiHole, the Upstream server is set to 192.168.1.1#53 (my Router)
However, if I put my VPN clients through it as well, I obviously get DNS leaks as the PiHole is using my ISP's DNS/IP (not interested in using Cloudflare etc - will eventually look at Unbound). So my thinking is to create another Docker Container for a 2nd PiHole and place it on the Guest Network's 192.168.5.x IP range.

Issue is I'm unsure how to get a Docker Container to have the 192.168.5.x address range as the RPi only has Eth0. I've looked into macvlan and ipvlan through Docker but won't it still have issues as the host is using Eth0 (and as such the 192.168.1.x range?). I can't do VLANs because I believe ASUS/Merlin don't support it. Obviously without buying another physical RPi :p

Is there something I'm missing in using one PiHole for both sets of devices - I haven't found anything online to allow me to split certain devices to certain Upstream servers or punch it to the Router to handle. Has anyone had any luck on how to best make the above work?

Thanks!
-RPy
 

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top