Skip to content
Timur Zununbekov edited this page Oct 23, 2016 · 3 revisions

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:

The tunnel feature is based on SSH tunnels and works in combination with Subutai Helpers and serves as an easy solution for bypassing NATs. In Subutai, tunnels are used to access the SS management server's web UI from the Hub, and 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 Subutai Helper node. Tunnels may also be set to be permanent (default) or temporary (ttl in seconds). The default destination port is 22.

Subutai tunnels have a continuous state checking mechanism which keeps opened tunnels alive and closes outdated tunnels to keep the system network connections clean. This mechanism may re-create a tunnel if it was dropped unintentionally (system reboot, network interruption, etc.), but newly created tunnels will have different "entrance" address.

Clone this wiki locally