Deploying Gateway using a Raspberry Pi, DNS over HTTPS and Pi-hole
Apr 21, 2020Jason Farber

Summary
This post details the practical steps for deploying Cloudflare Gateway using DNS over HTTPS (DoH) on both individual browsers (Firefox with custom server support) and entire networks via a Raspberry Pi running Pi-hole and dnscrypt-proxy. It explains how to configure Gateway locations, generate DoH stamps, and set up static configurations in dnscrypt-proxy.toml to route traffic through Cloudflare Gateway. It also provides guidance on assigning static IP addresses to the Raspberry Pi and configuring browser settings.
More from the Website Security & Threat Management trail
- We tested our own WAF with frontier AI models. Here’s what we found
- When scanners miss the attack: how Cloudflare Client-Side Security protects storefronts
- Introducing automatic remediation policies with Cloudflare CASB
- Introducing context-aware vulnerability discovery and remediation with Cloudflare Managed Defense and OpenAI Daybreak Models
- Introducing Adaptive Intelligence: undermining the economics of every bot attack