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 /r/selfhosted

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • 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.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • 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