Skip to content

Instantly share code, notes, and snippets.

@Ast3risk-ops
Created May 9, 2025 20:40
Show Gist options
  • Select an option

  • Save Ast3risk-ops/16b0667e6a8d30e7f2afcb0218d5c04f to your computer and use it in GitHub Desktop.

Select an option

Save Ast3risk-ops/16b0667e6a8d30e7f2afcb0218d5c04f to your computer and use it in GitHub Desktop.
Script to install/update cloudflared for use on a pihole
[Unit]
Description=cloudflared DNS over HTTPS proxy
After=syslog.target network-online.target
[Service]
Type=simple
User=cloudflared
EnvironmentFile=/etc/default/cloudflared
ExecStart=/usr/local/bin/cloudflared proxy-dns $CLOUDFLARED_OPTS
Restart=on-failure
RestartSec=10
KillMode=process
[Install]
WantedBy=multi-user.target
#!/bin/bash
wget https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-arm64
sudo systemctl stop cloudflared
sudo mv -f ./cloudflared-linux-arm64 /usr/local/bin/cloudflared
sudo chmod +x /usr/local/bin/cloudflared
sudo systemctl start cloudflared
sudo systemctl status cloudflared
printf "\n"
cloudflared -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment