DNS managing in a Wireguard tunnel configurated on a vps with piHole + cloudflared container. Need little help

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/selfhosted

Our great sponsors
  • Scout APM - Less time debugging, more time building
  • OPS - Build and Run Open Source Unikernels
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • docker-pi-hole

    Pi-hole in a docker container

    version: "3" services: cloudflared: image: crazymax/cloudflared:latest container_name: cloudflared ports: - "5053:5053/udp" #this is right? - "49312:49312/tcp" environment: - "TZ=Europe/Rome" - "TUNNEL_DNS_UPSTREAM=https://1.1.1.1/dns-query" restart: unless-stopped pihole: container_name: pihole image: pihole/pihole:latest depends_on: - cloudflared # network_mode: "host" ports: - "53:53/tcp" - "53:53/udp" #- "67:67/udp" dhcp port - "8080:80/tcp" environment: TZ: '' WEBPASSWORD: 'ops' ServerIP: 'HERE_THE_IP OF THE VPS, RIGHT?!?!?' PIHOLE_DNS_: '127.0.0.1#5053' #this is right? # Volumes store your data between container upgrades volumes: - './pihole/etc-pihole/:/etc/pihole/' - './pihole/etc-dnsmasq.d/:/etc/dnsmasq.d/' # Recommended but not required (DHCP needs NET_ADMIN) # https://github.com/pi-hole/docker-pi-hole#note-on-capabilities cap_add: # - NET_ADMIN - NET_BIND_SERVICE restart: unless-stopped

  • AdGuardHome

    Network-wide ads & trackers blocking DNS server

    Not an exact fix to your existing setup per se but replacing pihole/cloudflared with Adguard Home would give you the same functionality (better, imo) in a simpler topology.

  • Scout APM

    Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.

  • legoagh

    A simple script for automating using lego with AdGuard Home

    ok.. but wait, solution 2 cannot be applied, I mean... the cert/key are used for tls/DoH too if I do not put them, I cannot save. I think I should do something like this https://github.com/ameshkov/legoagh... in the container.

  • cloudblock

    Cloudblock deploys secure ad-blocking and VPN for all devices. Text and video guides included! 6 supported cloud providers, plus Ubuntu and Raspberry Pi. Cloudblock deploys Wireguard VPN, Pi-Hole DNS Ad-blocking, and DNS over HTTPS in a cloud provider - or locally - using Terraform and Ansible.

    This: https://github.com/chadgeary/cloudblock

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts