From adc8b15f06e716d368bb63633973f5224c5d45ed Mon Sep 17 00:00:00 2001 From: ChristophorusReyhan <39609246+ChristophorusReyhan@users.noreply.github.com> Date: Sat, 19 Oct 2024 21:05:35 +0700 Subject: [PATCH 1/2] Update cloudflared.md Add a step if cloudflared runs on different machine Signed-off-by: ChristophorusReyhan <39609246+ChristophorusReyhan@users.noreply.github.com> --- docs/guides/dns/cloudflared.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/guides/dns/cloudflared.md b/docs/guides/dns/cloudflared.md index 67f90d2..c9e167d 100644 --- a/docs/guides/dns/cloudflared.md +++ b/docs/guides/dns/cloudflared.md @@ -84,6 +84,13 @@ Edit configuration file by copying the following in to `/etc/default/cloudflared CLOUDFLARED_OPTS=--port 5053 --upstream https://1.1.1.1/dns-query --upstream https://1.0.0.1/dns-query ``` +If you're running cloudflared on different host than pi-hole, you can add listening address to all IPs: + +```bash +# Commandline args for cloudflared, using Cloudflare DNS +CLOUDFLARED_OPTS=--port 5053 --upstream https://1.1.1.1/dns-query --upstream https://1.0.0.1/dns-query --address 0.0.0.0 +``` + Update the permissions for the configuration file and `cloudflared` binary to allow access for the cloudflared user: ```bash From cfe105e84f176a8b007f17f8b564a122335ce468 Mon Sep 17 00:00:00 2001 From: ChristophorusReyhan <39609246+ChristophorusReyhan@users.noreply.github.com> Date: Sat, 19 Oct 2024 22:42:37 +0700 Subject: [PATCH 2/2] Update cloudflared.md Add waning Signed-off-by: ChristophorusReyhan <39609246+ChristophorusReyhan@users.noreply.github.com> --- docs/guides/dns/cloudflared.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/dns/cloudflared.md b/docs/guides/dns/cloudflared.md index c9e167d..8fdc07d 100644 --- a/docs/guides/dns/cloudflared.md +++ b/docs/guides/dns/cloudflared.md @@ -84,7 +84,7 @@ Edit configuration file by copying the following in to `/etc/default/cloudflared CLOUDFLARED_OPTS=--port 5053 --upstream https://1.1.1.1/dns-query --upstream https://1.0.0.1/dns-query ``` -If you're running cloudflared on different host than pi-hole, you can add listening address to all IPs: +If you're running cloudflared on different host than pi-hole, you can add listening address to all IPs (for security, change 0.0.0.0 to your machine's IP, e.g. 192.168.1.1): ```bash # Commandline args for cloudflared, using Cloudflare DNS