If you ever need to remotely access an application running inside a FreeNAS jail, you can create an SSH Tunnel to the server and map the local IP Address and port of the jail with
ssh -L JAIL-PORT:JAIL-IP:LOCAL-PORT user@host
As an example, let’s say you can access your FreeNAS server via ssh with firstname.lastname@example.org, the jail IP is 192.168.1.10 and it is running an application on port 8080.
To create the tunnel, you would use
ssh -L 8080:192.168.1.10:8080 email@example.com
Once the tunnel is up and running, you can access the service locally with localhost:8080 🎉