|
1 | 1 | #!/syntax/bash
|
2 | 2 | # tunmgrd(1) configuration file
|
3 | 3 | #
|
4 |
| -# Move this file to ~/.tunmgrd.conf and edit. |
| 4 | +## Move this file to ~/.tunmgrd.conf and edit. |
5 | 5 |
|
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. |
10 | 10 | shopt -s nocasematch
|
11 | 11 | [[ ${HOSTNAME%%.*} = myst ]] && hostid=0
|
12 | 12 | [[ ${HOSTNAME%%.*} = gillian ]] && hostid=1
|
13 | 13 | [[ ${HOSTNAME%%.*} = echos ]] && hostid=2
|
14 | 14 |
|
| 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 | +# |
15 | 30 | # Host Options Tunnels
|
16 |
| -# This is where you define all your ssh connections. |
17 |
| -# They will be kept up, monitored and restarted as needed. |
18 | 31 | config=(
|
19 | 32 | "satura.lyndir.com M REMOTE:$((61000+hostid))->22"
|
20 | 33 | "maven.lyndir.com M "
|
|
0 commit comments