Network services#10
Filtering DNS & reverse proxy behind Cloudflare
A single entry point for all my sites: domains go through the Cloudflare proxy, then Nginx Proxy Manager at home; AdGuard Home resolves and filters the network’s DNS.
Year2025
RoleDeployment & operations
- Cloudflare proxy
- HTTPS everywhere
- Filtering DNS
Problem
Every service had its own IP and port, self-signed certificates, publishing a site meant exposing the home address directly, and name resolution depended on the ISP.
Solution
Domains are managed at Cloudflare in proxy mode: a visitor reaches Cloudflare, which relays the request home, where Nginx Proxy Manager routes each hostname to the right service. Wildcard Let’s Encrypt certificates via DNS-01 challenge through the Cloudflare API. Internally, AdGuard Home is the network resolver: filtering, a local zone for service names, DNS-over-HTTPS upstream.
Architecture
Internet
Cloudflare
Home
Services
Tap an element to see its role, or follow a path.
Outcome
Every site answers on its domain name over valid HTTPS, the home address stays hidden behind Cloudflare, and ads and malicious domains are blocked for the whole network.
141414
services behind the proxy
100%100%100%
traffic over HTTPS
Key steps
- 01
AdGuard Home as the network resolver, handed out via DHCP
- 02
Local DNS zone for service names
- 03
Domains managed at Cloudflare, proxied to home
- 04
Nginx Proxy Manager: one host per domain name
- 05
Wildcard certificates via DNS-01 (Cloudflare API)
- 06
No more direct access by IP and port
In the notebook
Stack
CloudflareNginx Proxy ManagerAdGuard HomeLet’s EncryptDNS-01