For the very first time i tried to selfhost a static site (lighttpd + duckdns) but I’ve failed… Is it even possible to selfhost a static site from “router 2” while i’m behind two routers? “Router 1” is from ISP and i have no possibility to change any settings except subnet, standard gateway, dhcp on/off and DMZ. -> no port forwarding. "Router 2 is Asus with port-forwarding available and i’m using an OpenVPN configuration on it (if that matters). DuckDNS could see the external ip from R2, but i couldn’t access it.

  • aspoleczny@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    4 days ago

    I use cloudflare tunnel for this purpose. No open ports, no dealing with ISP, no exposing my IP.

  • BrightCandle@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    4 days ago

    The DMZ for the ISPs router forward to the second router, then everything that hits your outside IP will be forwarded to router 2. Then on Router 2 you open the ports for your service and forward to the internal machine. That should all work fine.

  • couch1potato@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    4 days ago

    I’m actually behind 3 routers and still hosting stuff to the internet. My house is behind cgnat, I have two isp routers, which both connect to a pfsense router (ip of which is in the dmz of each isp router).

    My pfsense router and a free vps hosted at oracle are both connected via tailscale. Pfsense router advertises specific subnet addresses to the tailnet. VPS uses caddy to reverse proxy to those subnet addresses to expose them to the internet.

  • just_another_person@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    4 days ago

    You’re going to get double NAT’d if you don’t have a proper passthrough. Is there a specific reason you have two routers setup like this?

    • uranibaba@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 days ago

      You want DMZ. I have the same setup. DMZ will make router 1 consider router 2 to be WAN and not behind firewall.