EQVPS

Open your app's web panel on a $3 NAT VPS: SSH tunnel and IPv6

Many self-hosted apps have a web panel on their own port, while a NAT VPS is reachable over IPv4 only through your personal SSH port. Two ways that work, tested on a $3 Nano with Uptime Kuma: an SSH tunnel and a direct IPv6 address.

Many self-hosted apps come with a web panel on their own port: Uptime Kuma on 3001, n8n on 5678, Grafana on 3000. On a NAT plan, though, the server shares one IPv4 address with others, so from the outside it is reachable over IPv4 only through your personal SSH port. This guide shows two ways to open the panel anyway: an SSH tunnel, which works from any network, and a direct IPv6 address. We tested both on a Nano server for $3/mo with Ubuntu 24.04 and Uptime Kuma 2. How to connect to the server in the first place is covered in how to connect to your VPS.

Step 1. Find your SSH command and IPv6 address

Open your server page in the dashboard. The Access block has the SSH command with your personal port and, below it, the server's IPv6 address.

Access block: the SSH command with the personal port, the IPv6 address, login and password

In our example the command is ssh root@203.0.113.10 -p 21114. You need the address, the port and the root password for the next steps.

Step 2. Run the app so it listens only on localhost

Connect over SSH and install Docker, then start Uptime Kuma:

apt update && apt install -y docker.io
docker run -d --name uptime-kuma --restart=unless-stopped -p 127.0.0.1:3001:3001 -v uptime-kuma:/app/data louislam/uptime-kuma:2

The important part is -p 127.0.0.1:3001:3001: the panel listens only on the server's localhost, so nobody on the internet can open it, not even over IPv6. --restart=unless-stopped starts the app again after a reboot. Check that it's running:

NAMES         STATUS                   PORTS
uptime-kuma   Up 4 minutes (healthy)   127.0.0.1:3001->3001/tcp

On our Nano, Uptime Kuma takes about 160 MB of memory, and about 400 MB is still available:

               total        used        free      shared  buff/cache   available
Mem:           961Mi       556Mi       258Mi       1.1Mi       321Mi       404Mi

Step 3. Open an SSH tunnel

An SSH tunnel takes a port on your own computer and forwards it through the SSH connection to a port on the server. On Windows (Terminal or PowerShell), macOS and Linux the command is the same:

ssh -N -L 3001:localhost:3001 root@203.0.113.10 -p 21114
  • -L 3001:localhost:3001 — port 3001 on your computer leads to port 3001 on the server;
  • -N — only the tunnel, no command prompt;
  • the rest is your usual SSH command from Step 1.

Enter the root password (nothing appears while you type, that's normal) and leave the window open: the tunnel works as long as it's open. Now open http://localhost:3001 in your browser.

PuTTY instead of the terminal: in Session, enter the address and your SSH port. In Connection → SSH → Tunnels, set Source port to 3001, Destination to localhost:3001 and click Add. Then go back to Session, click Open and log in as root.

Need several panels at once? Add more -L options to the same command, one per port.

Step 4. First launch: database and admin account

On the first launch Uptime Kuma 2 asks which database to use. On a small server pick SQLite: it's a single file, needs no separate database server and uses the least memory. Click Next.

Uptime Kuma first launch through the tunnel: choosing the database, SQLite selected

Then create the admin account with a strong password. Do this right away, through the tunnel, before you open the panel to anyone else. After that you land in the dashboard and can add your first monitor.

The Uptime Kuma dashboard on the server, opened through the SSH tunnel, with a website monitor

Another way: open the panel directly over IPv6

On NAT plans, IPv6 reaches the server directly on any port. We checked: Uptime Kuma published on all addresses opens at http://[IPv6]:3001 from the internet, while the same port over IPv4 doesn't answer. This works only if your own internet connection has IPv6; many home and mobile providers have it, some don't.

To try it, start the app without 127.0.0.1:

docker rm -f uptime-kuma
docker run -d --name uptime-kuma --restart=unless-stopped -p 3001:3001 -v uptime-kuma:/app/data louislam/uptime-kuma:2

Your data stays in the uptime-kuma volume. Open http://[2001:db8::10]:3001 with your server's IPv6 address, in square brackets.

Keep in mind that the panel is now open to anyone who has IPv6. Don't count on ufw to hide it: Docker manages its own firewall rules for published ports, so a ufw rule may not apply to them. Create the admin account first and use a strong password. For admin panels the tunnel is safer.

Which way to choose

SSH tunnelDirect IPv6Dedicated IPv4
PlanAny NAT plan, from $3/moAny NAT plan, from $3/moNano-IP and up, from $8/mo
Who can open the panelOnly youAnyone with IPv6Anyone
Works from any networkYesOnly with IPv6Yes
Best forAdmin panelsYour own devices with IPv6Public websites and services

If the app is meant for other people, for example a website or a public status page, take a plan with a dedicated IPv4: see plans.

Common problems

  • "bind [127.0.0.1]:3001: Address already in use". Port 3001 on your computer is taken by something else. Use another local port: -L 13001:localhost:3001, and open http://localhost:13001.
  • "channel 2: open failed: connect failed: Connection refused". The tunnel works, but nothing listens on that port on the server. Check with docker ps that the app is running, and with ss -tlnp which port it uses.
  • The panel stopped opening. The tunnel closes together with its window, or when the computer goes to sleep. Run the command again. To keep it alive longer, add -o ServerAliveInterval=60.
  • The IPv6 link doesn't open. Your connection may have no IPv6, the app may still listen only on 127.0.0.1, or the square brackets around the address are missing.
  • The IPv4 address with the app port doesn't answer. That's expected on NAT: over IPv4 only the personal SSH port reaches the server. Use the tunnel.

Stuck? Write to the chat on the site or to info@eqvps.com with your server's hostname — a real person answers.

FAQ

Is an SSH tunnel safe for an admin panel?

Yes. The traffic goes inside your encrypted SSH connection, and the panel itself listens only on the server's localhost, so nobody else can open it.

Does the app stop when I close the tunnel?

No. The app keeps running on the server around the clock; the tunnel is only your way in. Open it again whenever you need the panel.

Can visitors open my panel over IPv6?

Only if you publish the app on all addresses and the visitor has IPv6. For admin panels keep it on localhost and use the tunnel; for a public website take a plan with a dedicated IPv4.

Which apps does this work for?

Any app with a web interface: Uptime Kuma, n8n, Grafana, Portainer, code-server and others. Only the port number changes.

Comments

No comments yet. Be the first.

Leave a comment

Comments are moderated before they appear.