Skip to content

Commit

Permalink
Provided manual updating steps for Cloudflared
Browse files Browse the repository at this point in the history
Changed documentation to first list manual method to
update the cloudflared binary, and then have a subsequent
paragraph on automatic updating if desired by the user.

Also, while small, added a note that cloudflared will
work with other DoH providers (was useful when there was
a cloudflare outage in my region).
  • Loading branch information
iUnknwn committed Feb 17, 2020
1 parent 0bf86a9 commit 90a7fbb
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions docs/guides/dns-over-https.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,12 @@ sudo useradd -s /usr/sbin/nologin -r -M cloudflared
Proceed to create a configuration file for `cloudflared` by copying the following in to `/etc/default/cloudflared`. This file contains the command-line options that get passed to cloudflared on startup:

```bash
# Commandline args for cloudflared
# 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
```

**Note:** The `cloudflared` binary will work with other DoH providers (for example, you could use https://8.8.8.8/dns-query for Google DNS).

Update the permissions for the configuration file and `cloudflared` binary to allow access for the cloudflared user:

```bash
Expand Down Expand Up @@ -135,16 +137,16 @@ Finally, configure Pi-hole to use the local `cloudflared` service as the upstrea
### Updating Cloudflared
The `cloudflared` tool will not receive updates through the package manager, but it can be instrcted to update itself.
To do this, create the following script, and place it in `/etc/cron.weekly/cloudflared-updater.sh`:
The `cloudflared` tool will not receive updates through the package manager, however it can be updated
manually by running these commands:
```bash
cloudflared update
systemctl restart cloudflared
```
Adjust permissions:
If you want to have the system update `cloudflared` automatically, simply place the update commands in the
file `/etc/cron.weekly/cloudflared-updater.sh`, and adjust permissions:
```bash
sudo chmod +x /etc/cron.weekly/cloudflared-updater.sh
Expand Down

0 comments on commit 90a7fbb

Please sign in to comment.