Raspberry Pi 4 4 GB connected to fritzbox (eth0)
Openmediavault installed on debian
Sorry guys i am new to this. The question might be answered before already but i think i am missing something and can't get it running for 3 days now. So after installing pihole on omv in docker i later installed nginx proxy manager and i could access from my own (sub-)domains the services installed in docker container. I had of course to change the port as nginx uses 443 and 80. I noticed after a while that some ads are not blocked as i didnt use 443 and 80 for pihole anymore. So i read, this could be solved using macvlan. I installed (using portainer UI and later CLI) a macvlan driver (IP= 192.168.178.2, parent interface=eth0) and made the pihole container use this network driver. I expect now to access pihole over the macvlan IP only and when i use the default local static IP of my RASPBERRY Pi, i expect to get the congratulation page of nginx.
Actual Behaviour:
When i access the local ip adress, i still get pihole interface: "Did you mean to go to the admin panel?"
Also when i try to start nginx proxy manager container, it tells me "Can't bind adress: Port 443 already in use" (Turns out pihole is using it.)
Landing on an nginx page when accessing a URL using Pi-hole's IP would require that the container running Pi-hole also contains nginx or that Pi-hole's lighttpd has been configured to redirect HTTP requests to nginx's IP.
Neither of those conditions is fulfilled by using a standard Docker Pi-hole, so unless you manipulated your installation, your current observation seems to match what is expected: Accessing Pi-hole's IP takes you to Pi-hole's UI.
No, there is no way to do that with SSL/TLS. And really, you should be using the default NULL blocking or NXDOMAIN blocking. The blockpage will be going away because it doesn't work with HTTPS.
It works !!!! Thank you all for the insights and your valuabe time! For others searching for a solution: I was following DB Tech's Video on how to install this on RP and he used Port 443 but as stated here, Pihole doesn't need Port 443 to operate.