Configure DNS and Tunnel for raspberry pi 4b

What is the name of the domain?

dufrtss.com

What is the error number?

522

What is the error message?

Can’t connect to the server

What is the issue you’re encountering

I can’t connect to any application running on my server from it’s DNS managed by Cloudflare.

What steps have you taken to resolve the issue?

  1. I registered my DNS and set its records - here I put the public IPs of my raspberry pi and set the Cloudflare proxy.
  2. Created a tunnel and registered two public domains, one pointing to port 80 and another with a subdomain pointing to port 3000, tried setting the service type to HTTP and HTTPS - both didn’t work, application on 3000 should point to a next js app and on port 80 an nginx server is running.
  3. Contacted the ISP to port forward ports 80 and 443 to allow for TCP connection.
  4. Set the origin server, generating certificate and key and adding it to my raspberri pi and pointing nginx to it.

What feature, service or problem is this related to?

DNS not responding/updating

What are the steps to reproduce the issue?

  1. Register DNS.
  2. Create VPN tunnel.
  3. Port Forward TCP ports.
  4. Run a local server.
  5. Open it through a web browser via DNS.

A few notes I’d like to make for anyone willing to help:

I followed a guide were hosting the server (raspberri pi) would basically just be run an app, create a tunnel on Cloudflare and set it’s public domain to your registered DNS and the service type to the address and port of your service running locally.

Although I knew very little about setting up the DNS, and I ended up trying to set up SSL and contacted the ISP as I though these things would be mandatory, if there is a simpler approach, I’d love to know. Thank you. I also understand all this is very basic but as someone who is hosting it’s first server, I’d appreciate some guidance.

Also, this began with this error DNS_PROBE_FINISHED_NXDOMAIN when I tried to access the public hostname without setting the DNS record, which is why I followed up on that.

Turns out I’m trully a noob and learning, so, for anyone struggling like me, here is some advice I learned, no need to register your IP to DNS records if you want to set up a tunnel, these things contradict each other as the point of having a tunnel is not exposing your IP.

Also, remember to set up your Origin Certificates, and you’re ready to go.

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