Skip to content

Instantly share code, notes, and snippets.

@williamzujkowski
Created November 3, 2025 22:49
Show Gist options
  • Select an option

  • Save williamzujkowski/9ca841f8bdea7bced7c797ee2cfa5597 to your computer and use it in GitHub Desktop.

Select an option

Save williamzujkowski/9ca841f8bdea7bced7c797ee2cfa5597 to your computer and use it in GitHub Desktop.
DoH Router Setup - Configurations for Linux (cloudflared), Dream Machine Pro (dnscrypt-proxy), and OpenWrt
#!/bin/bash
# DoH Router Setup - Multiple platform configurations
# Linux (cloudflared) setup
# Install cloudflared
wget https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb
sudo dpkg -i cloudflared-linux-amd64.deb
# Configure as DNS proxy
# ... (additional implementation details)
sudo systemctl restart systemd-resolved
# Dream Machine Professional (dnscrypt-proxy) setup
# Install required packages in Dream Machine Professional
pkg install dnscrypt-proxy2
# Configure dnscrypt-proxy for DoH
cat > /usr/local/etc/dnscrypt-proxy/dnscrypt-proxy.toml << 'EOF'
# ... (additional implementation details)
# DNS Servers: 127.0.0.1:5353
# Uncheck "Allow DNS server list to be overridden"
EOF
# OpenWrt setup
# Install packages
opkg update
opkg install https-dns-proxy luci-app-https-dns-proxy
# Configure DoH providers
# ... (additional implementation details)
uci commit dhcp
/etc/init.d/dnsmasq restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment