From f2805e6be1c70347f0d53070f0409fa7a7b2687f Mon Sep 17 00:00:00 2001 From: Gordon Grant-Stuart Date: Fri, 19 May 2023 23:23:11 +0100 Subject: [PATCH] wibble --- etc/tunnelkeeper.conf | 8 +++++++- tunnelkeeper | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) 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 () {