Skip to content
Dilshat edited this page Aug 22, 2018 · 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
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 Bazaar, and open direct connection to containers, etc. Tunnels are created from destination address 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.