# Uninstall cloudflare

**URL:** https://discourse.pi-hole.net/t/uninstall-cloudflare/21459
**Category:** Off topic
**Created:** [July 6, 2019, 2:32pm UTC](https://discourse.pi-hole.net/t/uninstall-cloudflare/21459 "2019-07-06T14:32:58Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![makocisa](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/m/7feea3/32.png) [@makocisa](https://discourse.pi-hole.net/u/makocisa)
#### Post date: [July 6, 2019, 2:32pm UTC](https://discourse.pi-hole.net/t/uninstall-cloudflare/21459/1 "2019-07-06T14:32:58Z")

</div>

i following this guide with **ARM architecture (Raspberry Pi)**  
and also **Configuring cloudflared to run on startup** :

> [@Dns over HTTPS ... kresd in future Pi-hole?](https://discourse.pi-hole.net/t/dns-over-https-kresd-in-future-pi-hole/8770/5):
>
> Actually, when we release version 4.0 (and now if you run the FTLDNS beta branch) you will be able to run cloudflared alongside pihole-FTL and use that as your upstream resolved. I've been doing this for a while now. There have been a good few guides pop up on the internet since cloudflare's 1.1.1.1 launch on getting DoH working with pi-hole. For 4.0 (or FTLDNS) you only need to follow them partially. Once you have got cloudflared (or whatever alternative resolver you prefer) installed, you jus…

Please how can i complete uninstall this?

---

<div class="post-metadata">

### Author: ![CrYpT0n1T3](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/crypt0n1t3/32/4980_2.png) [@CrYpT0n1T3](https://discourse.pi-hole.net/u/CrYpT0n1T3)
#### Post date: [July 6, 2019, 5:02pm UTC](https://discourse.pi-hole.net/t/uninstall-cloudflare/21459/3 "2019-07-06T17:02:21Z")

</div>

sudo systemctl stop cloudflared  
sudo deluser cloudflared  
sudo rm /etc/default/cloudflared  
sudo rm /usr/local/bin/cloudflared  
choose another dns in the settings eg Google 8.8.8.8 and save, reboot

---

<div class="post-metadata">

### Author: ![makocisa](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/m/7feea3/32.png) [@makocisa](https://discourse.pi-hole.net/u/makocisa)
#### Post date: [July 6, 2019, 5:17pm UTC](https://discourse.pi-hole.net/t/uninstall-cloudflare/21459/4 "2019-07-06T17:17:10Z")

</div>

with your avatar its tell me all what i need, thanks!

---

<div class="post-metadata">

### Author: ![makocisa](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/m/7feea3/32.png) [@makocisa](https://discourse.pi-hole.net/u/makocisa)
#### Post date: [July 6, 2019, 6:14pm UTC](https://discourse.pi-hole.net/t/uninstall-cloudflare/21459/5 "2019-07-06T18:14:40Z")

</div>

What to do with the cloudflared.service file?

---

<div class="post-metadata">

### Author: ![CrYpT0n1T3](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/crypt0n1t3/32/4980_2.png) [@CrYpT0n1T3](https://discourse.pi-hole.net/u/CrYpT0n1T3)
#### Post date: [July 6, 2019, 7:56pm UTC](https://discourse.pi-hole.net/t/uninstall-cloudflare/21459/6 "2019-07-06T19:56:45Z")

</div>

sudo rm /lib/systemd/system/cloudflared.service

---

<div class="post-metadata">

### Author: ![CrYpT0n1T3](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/crypt0n1t3/32/4980_2.png) [@CrYpT0n1T3](https://discourse.pi-hole.net/u/CrYpT0n1T3)
#### Post date: [July 6, 2019, 8:08pm UTC](https://discourse.pi-hole.net/t/uninstall-cloudflare/21459/7 "2019-07-06T20:08:18Z")

</div>

Why do not you want a cloudflare anymore?

---

<div class="post-metadata">

### Author: ![makocisa](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/m/7feea3/32.png) [@makocisa](https://discourse.pi-hole.net/u/makocisa)
#### Post date: [July 7, 2019, 5:43am UTC](https://discourse.pi-hole.net/t/uninstall-cloudflare/21459/8 "2019-07-07T05:43:53Z")

</div>

DoH isn't safe since the DoH-malware. We want to add a block-doh list to pihole and use unbound as alternative.

Jul 7 09:01:37 raspberrypi systemd[1]: Stopped cloudflared DNS over HTTPS proxy.

thanks

---

<div class="post-metadata">

### Author: ![CrYpT0n1T3](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/crypt0n1t3/32/4980_2.png) [@CrYpT0n1T3](https://discourse.pi-hole.net/u/CrYpT0n1T3)
#### Post date: [July 7, 2019, 9:48am UTC](https://discourse.pi-hole.net/t/uninstall-cloudflare/21459/10 "2019-07-07T09:48:21Z")

</div>

If you have ddwrt, you can block traffic to selected ip dns addresses. You will add firewall rules and traffic cut out. Blocking dns is probably not a pihole function.

iptables -I FORWARD --destination 1.1.1.1 -j REJECT  
iptables -I FORWARD --destination 8.8.8.8 -j REJECT  
iptables -I FORWARD --destination 8.8.4.4 -j REJECT

---

<div class="post-metadata">

### Author: ![system](https://discourse.pi-hole.net/uploads/default/original/3X/7/c/7c8792f649eeb921c5d2b4c41564ffa873d9a2b8.png) [@system](https://discourse.pi-hole.net/u/system)
#### Post date: [July 28, 2019, 9:48am UTC](https://discourse.pi-hole.net/t/uninstall-cloudflare/21459/11 "2019-07-28T09:48:22Z")

</div>

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
