diff --git a/etc/tunnelkeeper.conf b/etc/tunnelkeeper.conf index de942f9..d04ddb1 100644 --- a/etc/tunnelkeeper.conf +++ b/etc/tunnelkeeper.conf @@ -1,5 +1,11 @@ -# Everything in this section obeys the same rules as ~/.ssh/config, except for the Password, Watch and Debug directives +# Everything in this file obeys the same rules as ~/.ssh/config, except for the Password, Watch and Debug directives +Host * + ExitOnForwardFailure yes + TCPKeepAlive yes + ServerAliveInterval 15 + ServerAliveCountMax 3 + # Examples # # Host server1 diff --git a/tunnelkeeper b/tunnelkeeper index d2869ad..070bce2 100755 --- a/tunnelkeeper +++ b/tunnelkeeper @@ -31,7 +31,8 @@ function debugopt () { } function dbg () { - [[ "$(awk "/^$1/ {print \$2}" ${DEBUGCONF})" =~ "[123]" ]] && logger -t tunnelkeeper + read line + [[ "$(awk "/^$1/ {print \$2}" ${DEBUGCONF})" =~ "[123]" ]] && echo $line | logger -t tunnelkeeper } function connect () {