Skip to content

xoliver/tunneler

Repository files navigation

Tunneler

Stuff to make stuff tunnels with stuff

Configuration

You need to either have a tunnels.cfg file in your directory or a .tunneler.cfg in your home folder.

If you have both then the current directory (local) settings will override the home folder's (global).

Create ~/.tunneler.cfg or tunnels.cfg with something similar to this:

# Common settings section (optional)
[common]
# If a tunnel does not specify a user this one will be used
default_user = YOUR_DEFAULT_USER

# Tunnel groups (optional)
[groups]
# Multiple names are allowed. These must be defined in the file
tunnel_group_1 =
		tunnel1
		tunnel2:port  # Specifying a local port here overrides the tunnel's default

# Tunnel information - copy at will. 'user' is optional
# This translates to ssh -g -f -N -L{local_port}:{host}:{remote_port} {user}@{server}
[TUNNEL-NAME]
name = TUNNEL_LONG_NAME
local_port = LOCAL_MACHINE_PORT
remote_port = SERVER_PORT
server = SERVER_NAME
user = OPTIONAL_USER_NAME # defaults to common's default_user
host = OPTIONAL_HOST # defaults to localhost

Usage

Usage: tunneler [OPTIONS] COMMAND [ARGS]...

Options:
  --verbose  Show verbose information
  --help     Show this message and exit.

Commands:
  check    Check the state of a tunnel
  restart  Stop and start specific or all active tunnels
  show     Show active/inactive (tunnels|groups|all)
  start    Start one or more tunnels
  stop     Stop one or more or ALL tunnels

License

Tunneler is licensed under the BSD ISC License

Releases

Packages

Contributors

Languages