-
Notifications
You must be signed in to change notification settings - Fork 2
Tunnel
tunnel <add|del|list> [options]
- SSH tunnel management
Options:
add <dst IP>:[port] [ttl] [-g] add ssh tunnel
del <dst socket> delete ssh tunnel
list list alive ssh tunnels
Examples:
subutai tunnel add 10.10.0.20
subutai tunnel add 10.10.0.30:8080 300 -g
subutai tunnel del 10.10.0.30:8080
Description:
Tunnel feature is based on SSH tunnels in combination with Subutai CDN and may be useful as easy solution for NAT bypassing. In Subutai, tunnels are being used to access SS web UI from Hub, open direct connection to containers, etc. There are two types of channels - local (default), which is created from destination address to host and global (-g
flag), from destination to nearest CDN node. Besides, tunnel may be permanent (default) and temporary (ttl
in seconds). Default destination port is 22.
Subutai tunnels has continuous state check mechanism which keeps opened tunnels alive and closes outdated tunnels to keep system network connections clean. This mechanism may re-create tunnel if it was dropped unintentionally (system reboot, network interruption, etc.), but newly created tunnel will have different "entrance" socket.