pi-hole | A black hole for Internet advertisements | Privacy library

 by   pi-hole Shell Version: v5.17.1 License: Non-SPDX

kandi X-RAY | pi-hole Summary

kandi X-RAY | pi-hole Summary

pi-hole is a Shell library typically used in Security, Privacy applications. pi-hole has no bugs, it has no vulnerabilities and it has medium support. However pi-hole has a Non-SPDX License. You can download it from GitHub.

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

            kandi-support Support

              pi-hole has a medium active ecosystem.
              It has 42628 star(s) with 2507 fork(s). There are 699 watchers for this library.
              There were 2 major release(s) in the last 12 months.
              There are 27 open issues and 2682 have been closed. On average issues are closed in 32 days. There are 13 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of pi-hole is v5.17.1

            kandi-Quality Quality

              pi-hole has 0 bugs and 0 code smells.

            kandi-Security Security

              pi-hole has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              pi-hole code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              pi-hole has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              pi-hole releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.
              It has 1840 lines of code, 59 functions and 12 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of pi-hole
            Get all kandi verified functions for this library.

            pi-hole Key Features

            No Key Features are available at this moment for pi-hole.

            pi-hole Examples and Code Snippets

            No Code Snippets are available at this moment for pi-hole.

            Community Discussions

            QUESTION

            nginx listen on private ip instead of 0.0.0.0 with multiple sites
            Asked 2022-Jan-28 at 04:11

            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:10

            Figured 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:

            Source https://stackoverflow.com/questions/70886968

            QUESTION

            How to fix Android "Connected but no internet" with static IP?
            Asked 2022-Jan-23 at 17:22

            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:22

            Your 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?

            Source https://stackoverflow.com/questions/70823633

            QUESTION

            How can I do a 301 redirect towards an URL ending in a slash with Nginx?
            Asked 2022-Jan-22 at 15:59

            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:59

            Big thanks to Richard's Smith comment. It let me fix the configuration file. Now the proxy_pass action in the file looks like:

            Source https://stackoverflow.com/questions/70804998

            QUESTION

            SwiftUI crashing <<(menuItems:)>>
            Asked 2022-Jan-07 at 20:50

            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:50

            Found out that removing all occurrences of .modify fixed the crashes. No idea what was actually going wrong, but it seems to fix it.

            Source https://stackoverflow.com/questions/70460512

            QUESTION

            Lighttpd Reverse Proxy with Pi-hole
            Asked 2022-Jan-06 at 09:56

            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:56

            pi-hole.local is the URI authority, not the url-path.

            Source https://stackoverflow.com/questions/70592509

            QUESTION

            Port mapping in docker container with multiple networks
            Asked 2021-Dec-29 at 09:04

            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:04

            Eventually 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:

            Source https://stackoverflow.com/questions/69267953

            QUESTION

            yaml for pihole container on QNAP
            Asked 2021-Sep-18 at 18:11

            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:11

            One of your service names is not correctly indented.

            Additionally, you have provided an invalid configuration for ipam for the version 3 file. You can only provide options in version 2 according to the docs.

            I will truncate the file for brevity.

            Source https://stackoverflow.com/questions/69213958

            QUESTION

            Make a division of a stat/number from another stat/number in bash
            Asked 2021-Feb-11 at 11:46

            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:46

            I 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:

            Source https://stackoverflow.com/questions/66150642

            QUESTION

            WLAN bandwidth throttling
            Asked 2020-Dec-17 at 18:54

            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:54

            You 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.

            Source https://stackoverflow.com/questions/65332570

            QUESTION

            How do I edit live css using tampermonkey without using Amino: Live CSS Editor
            Asked 2020-Dec-17 at 03:52

            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:50

            That'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:

            Source https://stackoverflow.com/questions/65273242

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install pi-hole

            Those who want to get started quickly and conveniently may install Pi-hole using the following command:.
            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

            There are many reoccurring costs involved with maintaining free, open source, and privacy-respecting software; expenses which our volunteer developers pitch in to cover out-of-pocket. This is just one example of how strongly we feel about our software and the importance of keeping it maintained.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/pi-hole/pi-hole.git

          • CLI

            gh repo clone pi-hole/pi-hole

          • sshUrl

            git@github.com:pi-hole/pi-hole.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Reuse Pre-built Kits with pi-hole

            Consider Popular Privacy Libraries

            Try Top Libraries by pi-hole

            docker-pi-hole

            by pi-holeShell

            AdminLTE

            by pi-holePHP

            PADD

            by pi-holeShell

            FTL

            by pi-holeC

            web

            by pi-holeTypeScript