Skip to content

Commit 6e4f13c

Browse files
committed
More docs about tunmgrd.conf syntax and support for DYNAMIC tunnels.
1 parent 02688fa commit 6e4f13c

File tree

2 files changed

+21
-7
lines changed

2 files changed

+21
-7
lines changed

tunmgrd/tunmgrd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ while true; do
145145
case $side in
146146
LOCAL) arguments+=( -L "$shost:$sport:$dhost:$dport" ) ;;
147147
REMOTE) arguments+=( -R "$shost:$sport:$dhost:$dport" ) ;;
148+
DYNAMIC) arguments+=( -D "$shost:$sport" ) ;;
148149
esac
149150
done
150151

tunmgrd/tunmgrd.conf.sample

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,33 @@
11
#!/syntax/bash
22
# tunmgrd(1) configuration file
33
#
4-
# Move this file to ~/.tunmgrd.conf and edit.
4+
## Move this file to ~/.tunmgrd.conf and edit.
55

6-
# You can use bash to initialize variables if you want.
7-
# In this case, we set a hostid variable to make different computers
8-
# set up a tunnel on a different port from the same central computer (satura),
9-
# allowing you to ssh into any of the other computers via the central one.
6+
## You can use bash to initialize variables if you want.
7+
## In this case, we set a hostid variable to make different computers
8+
## set up a tunnel on a different port from the same central computer (satura),
9+
## allowing you to ssh into any of the other computers via the central one.
1010
shopt -s nocasematch
1111
[[ ${HOSTNAME%%.*} = myst ]] && hostid=0
1212
[[ ${HOSTNAME%%.*} = gillian ]] && hostid=1
1313
[[ ${HOSTNAME%%.*} = echos ]] && hostid=2
1414

15+
## This is where you define all your ssh connections.
16+
## They will be kept up, monitored and restarted as needed.
17+
#
18+
# Options:
19+
# - Nothing
20+
# M Create a master to speed up other connections.
21+
#
22+
# Tunnels:
23+
# REMOTE:[shost:]sport->[dhost:]dport
24+
# Tunnel remote connections on sport via ssh to dport.
25+
# LOCAL:[shost:]sport->[dhost:]dport
26+
# Tunnel local connections on sport via ssh to dport.
27+
# DYNAMIC:[host:]port
28+
# Proxy local SOCKS connections on port via ssh.
29+
#
1530
# Host Options Tunnels
16-
# This is where you define all your ssh connections.
17-
# They will be kept up, monitored and restarted as needed.
1831
config=(
1932
"satura.lyndir.com M REMOTE:$((61000+hostid))->22"
2033
"maven.lyndir.com M "

0 commit comments

Comments
 (0)