Cloudflare tunnel not working

I have a raspberry pi with a dockerized service running there.

I’ve updated the cloudflared configuration to redirect the requests from clothion.remond.co to my service. Here is my full configuration :

tunnel: raspberry_ssh_tunnel
credentials-file: xxx.json

ingress:
  - hostname: ssh.remond.co
    service: ssh://localhost:22
  - hostname: clothion.remond.co
    service: https://localhost:9910
  - service: http_status:404

I added a CNAME DNS rule :

But accessing https://clothion.remond.co/ just gives a 404 error :

(see screenshot #1 in next response)

My configuration file is fine :

$ cloudflared tunnel ingress validate
Validating rules from /home/pi/.cloudflared/config.yml
OK
$ cloudflared tunnel ingress rule https://clothion.remond.co/
Using rules from /home/pi/.cloudflared/config.yml
Matched rule #2
        hostname: clothion.remond.co
        service: https://localhost:9910

My service is running fine, I can access it on my local network https://raspberrypi.local:9910 :

(see screenshot #2 in next response)

When I check the tunnel logs, I just have the following :

(see screenshot #3 in next response)

What’s going on ? Any idea why it’s not working and what I should do to fix this ?

Note that in the dashboard, I get the message : A new version of cloudflared is available. Visit our downloads page to upgrade. :

Screen Shot 2023-08-22 at 5.04.57 PM

But when I run sudo apt-get install --only-upgrade cloudflared, nothign gets updated : cloudflared is already the newest version (2023.7.1).

Is it the reason why it’s not working ? If so, how can I fix it ?

you can see this:


i think the domain is outdated and cf technical support not fix this problem
(this domain is cf tunnel’s public domain like http://(tunnel-id).cfargotunnel.com/)

i have this problem too.you can see my newest Post.

I have no idea why, but when I stop the cloudflared service and run the command in the terminal, it works properly :

$ systemctl stop cloudflared
$ cloudflared tunnel run <uuid>

However if I restart the service, it doesn’t work…

OK I FINALLY GOT IT !

I had to uninstall the service and re-install it (what a pain) :

sudo cloudflared service uninstall
sudo rm /etc/cloudflared/config.yml
sudo cloudflared --config ~/.cloudflared/config.yml service install
systemctl start cloudflared