How to access apps installed on the truenas, which is set up to a domain name using port forwarding?

So, I have installed Truenas Scale on my server, and set it up to a domain name using port forwarding on NETGEAR. It works too, as we can access it from outside the local network. Now, my doubts are regarding the failure in accessing the apps of the Truenas - for example, NextCloud.

How to set the apps which is running on different ports of truenas IP, to be accessed by the domain name?

usually you’d use a reverse proxy like npm or traefik, that way you also don’t have to open up the ports to each app, but just 80 and 443.

1 Like

Extremely bad idea. TrueNAS isn’t designed or hardened to be exposed to the public Internet.

Hairpin NAT or split-brain DNS (if your Netgear router supports either of those) will let you do it, but you’d still need to add the custom port. To avoid the custom port, as Lars says, you’d need a reverse proxy. I like Traefik, but it takes CLI configuration; Nginx Proxy Manager works adequately and can be configured through the GUI.