38

Afternoon y’all, apologies if this is brief writing this in a rush expect an edit/update.

My question is in regard to port forwarding & web hosting, I’ve forwarded port 80, 8080 & 443 from my router and my reverse proxy (traefik) is able to receive the necessary SSL/TLS certificates however, my domain is only accessible locally or via WireGuard tunnels and not the World Wide Web (which is good!) however, I can’t seem to figure out what’s preventing it from being accessible to the WWW.

My registrar is cloudflare so i figured changing my DNS or at least pushing some queries to my cloudflare nameservers would at least do something but have had no luck. For the most part I’ve been using Quad9 behind PiHole for DNS, tried using Unbound however it was a complete mess to setup.

Must end this post here - will update with more info ASAP!

you are viewing a single comment's thread
view the rest of the comments
[-] tal@lemmy.today 5 points 3 months ago* (last edited 3 months ago)

There's not really enough to give an conclusive answer from "it's not reachable". All I can do is tell you what I'd probably do to try to troubleshoot further.

My first steps in troubleshooting connectivity would probably be something like this:

  • Fire up something on the HTTP server (I'm assuming it's running Linux) like sudo tcpdump port 80. That should let you see any packets that are reaching the HTTP server.

  • From a Linux machine on an outside network


a tethered cell phone might make a reasonable machine, if you don't have another machine you control out there somewhere in the ether


running something like mtr --tcp -P 80 <hostname>. That'll tell you, at an IP-hop-by-IP-hop level, whether there's anything obstructing reaching the machine. Could be that your ISP blocks 80 inbound, for example.

  • So the next step is probably to see whether you can get regular ol' HTTP through. Also from an outside network, running curl --verbose http://<hostname>/. That'll let you see what's happening at the HTTP level.

I'm guessing that you're probably going to have something along here break. It could be that the packets are being blackholed at a hop prior reaching your router, in which case your ISP may be firewalling inbound on that port. It may be that they're reaching your router, but that your router is trying to forward to the wrong machine. It may be that you have some kind of firewall on the HTTP server that's blocking connections that aren't coming locally or from the WireGuard side. But at least it'll probably give you a better idea as to how far it's getting.

Once you've got that up and running, can look at HTTPS:

  • If this is working, if you want to test the TLS certificate handshaking, see if there are any issues, again, from an outside network: openssl s_client -connect <hostname>:443 -prexit. That'll let you see the TLS handshake and any issues that happen during it.

  • Also from an outside network, running curl --verbose https://<hostname>/. That'll let you see what's happening at the HTTPS level.

EDIT: Oh, yeah, and someone else pointing out confirming that the DNS resolution is what you expect is probably also a good first step. host <hostname> from an outside network.

this post was submitted on 14 Apr 2025
38 points (97.5% liked)

Selfhosted

49821 readers
61 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS