端口转发 · 隧道Port Forwarding & Tunnels
把远端服务安全地映射到本地,或反向打通。
三种类型
| 类型 | 说明 | 典型场景 |
|---|---|---|
-L 本地 | 本地端口经 SSH 转到目标 | 本地访问内网数据库 |
-R 远程 | 远端端口经 SSH 回到本地 / 内网 | 把本地服务暴露给服务器 |
-D 动态 | 本地 SOCKS5 代理 | 整机流量经跳板出网 |
新建隧道
- 进入「隧道」面板,点新建。可内联新建主机,无需先去建主机。
- 填监听地址 / 端口与目标地址 / 端口。
- 开启「自动启动」后,连接该主机时会自动建立隧道。
独立隧道断线会自动重连;入口角标实时显示当前活动隧道数。
Map remote services safely to local — or punch through in reverse.
Three kinds
| Type | What it does | Typical use |
|---|---|---|
-L Local | Local port forwarded over SSH to a target | Reach an internal DB locally |
-R Remote | Remote port forwarded back to local / LAN | Expose a local service to the server |
-D Dynamic | Local SOCKS5 proxy | Route traffic out via a jump host |
Create a tunnel
- Open the “Tunnels” panel and tap New. You can create a host inline — no need to set one up first.
- Enter the listen address / port and the destination address / port.
- Enable “Auto-start” to bring the tunnel up automatically when you connect to that host.
Standalone tunnels auto-reconnect on drop; a badge shows the live active-tunnel count.