Created
May 9, 2025 20:40
-
-
Save Ast3risk-ops/16b0667e6a8d30e7f2afcb0218d5c04f to your computer and use it in GitHub Desktop.
Script to install/update cloudflared for use on a pihole
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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