Query: How to forwarded https port correctly?

I have problem browsing my own webbserver from my own internal network. The webserver is externally visible through a port forwarding rule on my OpenWRT router. There must be some solution, can anyone help?

I have a webserver running on a host on my 192.168.10.0/24 network. My OpenWRT router forwards ports 80 and 443 from the external WAN to this host. I dont have a static IP so I use DDNS to www.mydomain.com. It works ok. However I cant access the webserver from hosts on my 192.168.10.0/24 net, because the port forwarding rule only forwards ports from WAN, not from my VLAN.

I could of course connect directly to the internal IP of my webserver, but then I get problems with my certificates which only matches the external FQDN.

I tried adding a similar port forwarding connections from my internal network, but then I got in trouble with what external IP to use as a match in that rule. Since my IP is dynamic it could change.

What is the solution?

In the advanced tab of the rule that you created in the firewall, did you enable nat loopback?

In theory, with this enabled must work.

1 Like

I do have that "Enable NAT loopback" checkbox enabled. See screenshot below.

Could it be a complication that I have the LUCI web gui running on http and https towards the internal network?

The easy (and better) solution would be to override the DNS (A- and AAAA records) entries of your server locally on your router and replace them with your internal IP.

Thanks @slh that worked for me!

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