Skip to content

Instantly share code, notes, and snippets.

@sirkirby
Last active January 11, 2023 15:58
Show Gist options
  • Save sirkirby/9c5b589104f30b980a113c4f62c54de2 to your computer and use it in GitHub Desktop.
Save sirkirby/9c5b589104f30b980a113c4f62c54de2 to your computer and use it in GitHub Desktop.
sudo nano /etc/systemd/system/cloudflared-proxy-dns.service
[Unit]
Description=DNS over HTTPS (DoH) proxy client
Wants=network-online.target nss-lookup.target
Before=nss-lookup.target
[Service]
AmbientCapabilities=CAP_NET_BIND_SERVICE
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
DynamicUser=yes
ExecStart=/usr/local/bin/cloudflared proxy-dns --port 5053
[Install]
WantedBy=multi-user.target
sudo systemctl enable --now cloudflared-proxy-dns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment