Hace algún tiempo he logrado instalar entre otras aplicaciones el Pi-hole en mi Raspberry Pi 4.
Después de ver y analizar diferentes bondades, me quedé con la posibilidad de configurar DNS Over HTTPS directamente en la raspi y que se integrara de forma natural con Pi-hole.
Por algún motivo el DoH se escapa a mis capacidades, ya que siguiendo el manual oficicial no soy capaz que el sistema funcione
Mi versión de Cloudflared es:
sudo nano /etc/default/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`
sudo nano /etc/systemd/system/cloudflared.service
[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
sudo nano /etc/cloudflared/config.yml
proxy-dns: true
proxy-dns-port: 5053
proxy-dns-upstream:
- https://1.1.1.1/dns-query
- https://1.0.0.1/dns-query
#Uncomment following if you want to also want to use IPv6 for external DOH lookups
#- https://[2606:4700:4700::1111]/dns-query
#- https://[2606:4700:4700::1001]/dns-query
sudo systemctl status cloudflared
pi@:/ $ sudo systemctl status cloudflared
● cloudflared.service - Argo Tunnel
Loaded: loaded (/etc/systemd/system/cloudflared.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2020-12-30 00:09:37 CET; 21min ago
Main PID: 3695 (cloudflared)
Tasks: 9 (limit: 4915)
CGroup: /system.slice/cloudflared.service
└─3695 /usr/local/bin/cloudflared proxy-dns --port 5053 --upstream https://1.1.1.1/dns-query --upstream https://1.0.0.1/dns-query
Dec 30 00:09:37 systemd[1]: Started cloudflared DNS over HTTPS proxy.
Dec 30 00:09:37 cloudflared[3695]: INFO[2020-12-30T00:09:37+01:00] Adding DNS upstream - url: https://1.1.1.1/dns-query
Dec 30 00:09:37 cloudflared[3695]: INFO[2020-12-30T00:09:37+01:00] Adding DNS upstream - url: https://1.0.0.1/dns-query
Dec 30 00:09:37 cloudflared[3695]: INFO[2020-12-30T00:09:37+01:00] Starting DNS over HTTPS proxy server on: dns://localhost:5053
Dec 30 00:09:37 cloudflared[3695]: INFO[2020-12-30T00:09:37+01:00] Starting metrics server on 127.0.0.1:44915/metrics
Dec 30 00:10:39 systemd[1]: cloudflared.service: Current command vanished from the unit file, execution of the command list won't be resumed.
pi@:/ $
¿Alguien puede decirme donde tengo el error? ¿por qué el sistema no funciona?
En el Pi-hole tengo las DNS apuntando a 127.0.0.1