0

What I am looking for is proper steps to replace the RaspAP ad-blocking with PiHole. There is very little information on this out on the net.

Specifically I would like to serve an independent access point (bridge mode is not good enough) with its own DNS providing clients with IPs. When connecting to this access point I want all data to go through pihole before out to the other DNS servers and internet on the eth0 side.

client(s) -> Access Point served from wlan0 of Pi -> DNS route for RaspAP to pihole on the same pi -> eth0 interface of pi to rest of internet

There is inadequate documentation about this on RaspAP:

https://docs.raspap.com/faq/#pihole

I can easily set up RaspAP with all features needed, but don't know how to plug in pihole into the chain as DNS provider for RaspAP (without breaking raspap dnsmasq or making it a bridge) before out to eth0. Also, I am aware that both RaspAP and PiHole use dnsmasq and have no idea how to solve that (which one should have control and how to set up).

Docker:

Using docker was also an option as pihole supports docker, and raspap also has a docker fork. This was even more difficult as RaspAP had no internet access when set up in docker and the networking in docker is beyond my understanding (the separate containers in that case make it just more difficult) on top of all that dnsmasq was still conflicting for some reason (it was impossible to run both containers at the same time), therefore I abandoned that route.

Gerge
  • 21

1 Answers1

1

There is a workaround/alternative solution. AdGuard is better described in RaspAP documentation and clear enough to set it up. In the end PiHole was too much of a problem to set up while AdGuard just works.

Both RaspAP and AdGuard are on the same machine. RaspAP uses AdGuard as upstream DNS. There are no conflicts with dnsmasq either.

  1. install AdGuard using the command on github

  2. set adguard listening port to 127.0.0.1:5300

  3. set RaspAP to use AdGuard at 127.0.0.1#5300 in DHCP/Advanced

source:https://docs.raspap.com/faq/#adguard

Gerge
  • 21