pi-hole | A black hole for Internet advertisements | Privacy library
kandi X-RAY | pi-hole Summary
kandi X-RAY | pi-hole Summary
The Pi-hole is a DNS sinkhole that protects your devices from unwanted content without installing any client-side software.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of pi-hole
pi-hole Key Features
pi-hole Examples and Code Snippets
Community Discussions
Trending Discussions on pi-hole
QUESTION
I've recently setup a pihole on a pi I had lying around and it's great. When a domain is blocked it's returning ip address 0.0.0.0 as per its default config of BLOCKINGMODE=NULL.
The problem I'm facing is that when I'm browsing the web from my server, that hosts multiple subdomains via nginx, it's constantly trying to connect to my nginx sites and it filling up its logs with 404s.
I believe the solution is to update my nginx configs to point to my private ip instead of 0.0.0.0. I thought it would be as easy as updating listen 443 ssl;
to listen 192.168.1.10:443 ssl;
Unfortunately, after I made that change all my subdomains are all pointing to one of them at random. Ex. a.mysite.com, b.mysite.com, c.mysite.com are all directing to a.mysite.com
Most of my sites are forwarding a docker instance to 443 and a few that simply serve up local files.
I originally asked on the pihole forums and they pointed me in the right direction, but I'm not sure how to get nginx working using my private ip instead of 0.0.0.0. https://discourse.pi-hole.net/t/blockingmode-null-vs-nodata/53016/7
The easy solution would be to leave my nginx configs alone and update pihole from BLOCKINGMODE=NULL to BLOCKINGMODE=NXDOMAIN or BLOCKINGMODE=NODATA, but as per their help docs, "Similar to NULL blocking, but experiments suggest that clients may try to resolve blocked domains more often compared to NULL blocking." https://docs.pi-hole.net/ftldns/blockingmode/
Thanks for reading!
...ANSWER
Answered 2022-Jan-28 at 04:10Figured it out.
I was correct with including the private ip in the listen directives. But, I also needed to update all my server_name directives to include the private ip address.
After I updated all my nginx configurations it is no longer listening on 0.0.0.0 and when I curl a blocked site it now gives the proper curl: (7) Failed to connect to ads.facebook.com port 80: Connection refused
response.
Working example:
QUESTION
I have set up a Pi-Hole, but my router doesn't allow setting it as global preferred DNS, so I have to set it for all my devices manually.
So I go to Android WiFi settings (Android 11), and set Static IP
- My default assigned IP was 192.168.0.115, so I leave that as is
- Default gateway was 192.168.1.1, also left as is
- DNS 1 I changed to my PiHole IP (which works from my desktop)
- DNS 2 left blank
I get "Connected but no internet" status, even if I change DNS 1 to Google (8.8.8.8) or Cloudfare (1.0.0.1). Turning on/off cellular data doesn't help either.
What could be causing this? How can I set custom DNS server when connected to this network?
...ANSWER
Answered 2022-Jan-23 at 17:22Your network settings seem strange. The default gateway must be on the same subnet as the IP address - in typical home setups, the subnet mask is /24
and so the third octets of the IP addresses should be identical. You don't mention what you have the subnet set to, and you have 0
for the third octet of the IP address and 1
for that of the gateway. Are you sure that's correct?
QUESTION
I've an nginx web server that proxy pass traffic to different services on my LAN. After a recent update of one of those services the redirect stop working as expected. The service behind the redirect is Pi-Hole so I can't/wan't modify how the web service works. I just want to fix the redirect.
My actual nginx configuration looks like this:
...ANSWER
Answered 2022-Jan-22 at 15:59Big thanks to Richard's Smith comment. It let me fix the configuration file. Now the proxy_pass
action in the file looks like:
QUESTION
I'm noticing some crashes but I really can't seem to find any specific cause of the crash, nor is Xcode helping me identify it. Both the QueryLogView.body.getter
and ActiveInstance.swift:43
are empty lines in the code, and I'm not sure what closure in closure in closure
can tell me.
Perhaps it has something to do with the 3rd line in the report partial apply...
. Does someone know where to look?
ANSWER
Answered 2022-Jan-07 at 20:50Found out that removing all occurrences of .modify
fixed the crashes. No idea what was actually going wrong, but it seems to fix it.
QUESTION
Aware this question has being asked a few times and I've read a lot of the solutions but I still cannot get my reverse proxy to work.
I have a Raspberry Pi with Pi-hole.
...ANSWER
Answered 2022-Jan-06 at 09:56pi-hole.local is the URI authority, not the url-path.
QUESTION
Having used docker on multiple occasions, I am familiar with the concepts of docker networks and port mapping. However, I haven't found any case online where you'd want to mix those two. Hopefully there are ppl who can help me out.
I use Traefik in many situations. I also have pi-hole software as private DNS. I would like to standardize all services behind Traefik to use TLS and custom (internal) domains. The pi-hole admin interface works perfectly together with Traefik.
The biggest issue with pi-hole behind an edge router, is docker uses NAT for the internal network. So pi-hole is not able to see where the DNS requests are made from. The only thing to overcome this is to map the DNS ports (53 & 853) directly to the host, I guess (so bypassing the internal Traefik network, bypassing any NAT).
I can attach the pi-hole container to multiple networks, but how I'm able to attach :80
to the Traefik network and :53
to the host network?
ANSWER
Answered 2021-Dec-29 at 09:04Eventually this was quite simple, although I didn't think this would work: simply publish the ports while the pi-hole container is connected to the Traefik network.
This is the Ansible config I used:
QUESTION
I am trying to make the following docker-compose.yaml
to run on my QNAP
container station.
The following part is working, but after the "restart: unless-stopped" the mess begins.
...ANSWER
Answered 2021-Sep-18 at 18:11QUESTION
I have a simply question but I'm not this able with bash, I'm using a command line to get the number of queries and cached queries my Pi-Hole makes to Unbound (recursive DNS) and I want to display the cached queries as % of total queries, here're the lines to get the total queries:
...ANSWER
Answered 2021-Feb-11 at 11:46I assume when you say without variables, you mean without variables in the shell.
With this in mind, you can use awk variables to store the intermediate result:
QUESTION
I want to throttle the internet speed of one PC in my network and not sure if that task could be easily accomplished, without buying something expensive, like a professional equipment (for example a managed switch) .
Concrete, I have an ISP 100Mbit download- and 40Mbit upload-speed and the dedicated PC should only get modem speed via WLAN (symmetrical 56K). Does anybody have an idea how I can throttle this connection, perhaps a setup based on a Raspberry Pi / Pi-hole or a similar platform like an ESP...?
...ANSWER
Answered 2020-Dec-17 at 18:54You could probably configure this on said computer; how would depend on its OS.
Your router (or separate WiFi Access Point) may be able to limit the bandwidth for specific connected computers by IP address. I know my Draytek router can do this, but you will have to consult the manual of your router to see if this will work for you.
You could, if you really want to, build something yourself that does this, but it will be complex; I wouldn't go there, at least not until I was sure my router, or even a replacement router, could not do this out-of-the-box.
If you don't mind using the sort of hardware that can run Linux, maybe you can find software that does what you want, and you certainly can find router software that will run on it, and that router software may well have the bandwidth-limiting option you want, or maybe you could add it yourself.
You would be adding an extra router to your network, but there is nothing wrong with that. Developing the whole software needed from scratch without router software to start with will still be complex, though.
QUESTION
I wondering if it's possible to create a Tampermonkey script with javascript that will find and replace an existing html or css element that already exists.
In my case I want to add this to the css element at the domain google.com to change display to none:
...ANSWER
Answered 2020-Dec-15 at 06:50That's really a nice idea.
You can't directly change the CSS in the way you are doing.
You need to find the element using the ID with getElementById and change the style property of the HTML element
In your case, simplest code will be:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pi-hole
Piping to bash is controversial, as it prevents you from reading code that is about to run on your system. Therefore, we provide these alternative installation methods which allow code review before installation:.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page