All help topics

Help / SSH tools

Port forwarding (SSH tunnels)

Reach a private database, expose a local service, or browse through a SOCKS proxy, all through your SSH Connections.

Before you start

Tunnels run over an SSH Connection. SFTP Connections can't be used for tunnels. If you have no SSH Connection yet, the Port Forwarding page offers New Host to add one.

Which kind of tunnel?

LocalBrings a service the server can reach to a port on this computer. Example: reach a database at db.internal:5432 as localhost:5432.
RemoteExposes a service this computer can reach on a port of the SSH server. Example: let the server reach a dev site running on your laptop.
DynamicRuns a SOCKS5 proxy on this computer that sends traffic out through the server. Point a browser or tool at it.

Create a tunnel

  1. Click Port Forwarding in the sidebar, then New Tunnel.
  2. Choose the Forwarding Type: Local, Remote or Dynamic.
  3. Give it a Tunnel Name and pick the SSH Host / Gateway.
  4. Fill in the ports:
    • Local: Bind Address (default 127.0.0.1), Local Port, Destination Host and Dest. Port.
    • Remote: Remote Bind Address, Remote Port, Local Destination Host and Dest. Port.
    • Dynamic: Bind Address and SOCKS Port.
  5. Leave Auto-reconnect on network interruption on (default) unless you want the tunnel to stay down after a drop.
  6. Click Save & Start Tunnel, or Save to start it later.
Keep tunnels private

Storix warns if you bind to an address other than 127.0.0.1, because other computers on your network could then use the tunnel. The SOCKS proxy has no password. On a Remote tunnel, binding beyond the server's loopback only works if the server's GatewayPorts setting allows it.

Ports must be between 1 and 65535. On macOS and Linux, ports below 1024 usually need admin rights. Storix warns if a port is already in use and refuses a port another saved tunnel uses.

Start, stop and watch

Each tunnel is a card with Start tunnel or Stop tunnel, its state (Active with uptime, Starting, Reconnecting, Stopped, Failed, or a port bind conflict), its connection count, the data forwarded and the current rate. The card's menu has Show log, Edit tunnel, Duplicate and Delete tunnel.

At the top of the page, filter by All, Local, Remote or Dynamic, search, sort by status or name, and see the number of active sessions and the total throughput.

How tunnels behave

  • Auto-reconnect kicks in after a running tunnel loses its connection, retrying from every 2 seconds up to every minute. A tunnel that fails on its first start, has its sign-in refused, or hits a port conflict stops at Failed; check its log and click Retry.
  • Tunnels are saved and come back after a restart, but aren't started automatically. Start the ones you need.
  • Editing a running tunnel restarts it.
  • Tunnels share the SSH connection with that Connection's terminals. Closing the last terminal doesn't stop a running tunnel.
  • Sign-in details stay in your credential vault and are never saved with a tunnel. Removing the SSH Connection deletes its tunnels.