-
-
Notifications
You must be signed in to change notification settings - Fork 504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DietPi-Software | Pi-hole: Block access to blocking page from web by default #3024
Comments
Hey @MichaIng Happy to take a look at this one if you'd like - do I just need to slap the suggested config into
And just to note, I don't actually have a setup with which to test this, I'm just happy to make the changes for someone to check/approve. |
@AtkLordOverAll
something like this and of course to all three webservers.
Jep they all support regex, in case with some additional syntax, e.g.
No, with above outer location match this affects
Usually local networks are 8 bit only, so yeah should be safe to assume. A 16 bit local network should be only present in cases where one will be able to configure the webserver oneself correctly 😉. |
Okay most of this makes sense, seems I opened a bigger can of worms than I anticipated.
I'm not familiar with lighttpd, I'm just happy to drop in config files with certain contents and I know my way around a regex. What would be the 3 webservers I need to add these changes to and how do I do that? For applying the "mod" I'd be making, presumably this'd be something to do on install in
Gotcha.
Awesome.
You're too kind, this was the bit I was trying to do 😆 I'll start work and open the PR probably before I consider things ready to merge so you can double check I'm going in the right direction and fill in the bits I don't get, as I have no intimate experience with lighttpd except having Pi-hole installed myself. Hope that's alright 😄 |
@AtkLordOverAll Aj I recognise that this currently applies only when accessing via symlink, but it should apply as well when accessing via /html/admin... however I can take care of this.
Apache, Nginx and Lighttpd are the three we support currently, so generally it makes sense to add software specific configs for all of them. But it is okay as well to do a start with one webserver and we can add those for the others at a later time. |
Huh, this makes my life simple
Gotcha, makes the sense. Shall get to work soon, doesn't actually look like there's too much to do, all in all. |
General blocking page implementation fix + apply access permissions for all webservers: #3072 |
Did a fresh install with lighttpd as webserver and everything worked as intended. Nextcloud was running great, the Pi-Hole admin panel was only accessible from the internal network and subdomain.domain.tld gave a 403 access forbidden. Unfortunately my password manager wouldn't establish a webdav connection with lighttpd, so I was forced to switch to nginx. |
@anubis-genix
|
@MichaIng |
So
The webroot index page is removed when you choose to enable the blocking page, otherwise it remains: |
The dietpi-pihole-block_public_admin.off still existed even though I've chosen to enable the admin panel block from outside my LAN via the prompt. Due to the bug you mentioned it should have been set? That's really weird!
That's right. It appeared but my preferred setting didn't get set. |
+ DietPi-Software | Pi-hole: Fix enabling/disabling public admin panel access on Nginx: #3024 (comment)
@anubis-genix
The following can be used to enable admin panel block on Nginx:
To disable:
And of course to reload config:
|
+ CHANGELOG | Pi-hole: Resolved an issue where choosing to block public admin panel access on Nginx failed: #3024 (comment)
Ref: https://dietpi.com/phpbb/viewtopic.php?p=18964#p18964
The text was updated successfully, but these errors were encountered: