Git Product home page Git Product logo

pihole-cloudflared-docker's Introduction

Pi-Hole, Cloudflared, NextDNS, Unifi, and Docker

Patrick Wagstrom <[email protected]>

March 2020

Overview

This repository contains my docker compose configuration for running DNS on my local network. In particular it does the following:

  1. Creates a private network inside of docker compose called pihole_net.
  2. Spins up a container with cloudflared running on port 5054 and IP address 172.20.0.2
  3. Spins up a container running NextDNS with IP address 172.20.0.3
  4. Spins up a container running dnsmasq for Unifi Dream Machine Pro on 172.20.0.4
  5. Spins up a container with Pi-Hole and IP address 172.20.0.10

Once this is spun up for the first time, you'll need to go into the PiHole settings and set DNS to be 172.20.0.2#5054 and remove any other IP addresses. At this point you should now have Pi-Hole set up so it is blocking ads and also ensuring you have security by transparently sending standard DNS record requests via DNS over HTTPS to Cloudflare's server at 1.1.1.1. This brings you not only faster browsing, but also protects you from snooping on your behavior by your ISP and Google. You'll need to decide for yourself if sending all your queries to Cloudflare is worth the security risk.

Configuration

You'll want to create a file called .env that contains environment variables for your containers. The following are keys that are accepted:

  • WEBPASSWORD - The administrative password for your Pi-Hole instance.
  • DNS1 - Primary DNS host for Cloudflared. Defaults to 1.1.1.1
  • DNS2 - Secondary DNS host for Cloudflared. Defaults to 1.0.0.1

pihole-cloudflared-docker's People

Contributors

pridkett avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.