Accessing a FreeNAS Jail via SSH-Tunnel

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 [email protected]

As an example, let’s say you can access your FreeNAS server via ssh with [email protected], the jail IP is and it is running an application on port 8080.

To create the tunnel, you would use

ssh -L 8080: [email protected]

Once the tunnel is up and running, you can access the service locally with localhost:8080 🎉

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.