From: martin f. krafft Date: Wed, 29 Mar 2023 11:45:22 +0000 (+0200) Subject: add lotus WOL proxy X-Git-Url: https://git.madduck.net/etc/ssh.git/commitdiff_plain/2138841924bdd5572b2b332b06e2b0f94fdb18e5?ds=sidebyside;hp=c5b376136d7fd90f43bb8ca6d602850305221aed add lotus WOL proxy --- diff --git a/.ssh/config.in b/.ssh/config.in index f288d18..6bf6118 100644 --- a/.ssh/config.in +++ b/.ssh/config.in @@ -194,6 +194,8 @@ Host lotus.* Host lotus | lotus.rw.madduck.net CheckHostIP no HostKeyAlias lotus + ConnectTimeout 120 + ProxyCommand ssh wall.gern.madduck.net "wakeonlan -i 192.168.39.255 dc:fb:48:35:03:04 && sleep 10 && exec nc -w 30 %h %p" #ProxyCommand bash -c "TARGETS=$( (TRIES=%h.{gern,lehel,rw}.madduck.net; eval fping -aAC1 -t500 $TRIES 2>&1 & eval fping6 -aAC1 -t500 $TRIES 2>&1; wait) | sed -rne 's, : ([[:digit:]]), @\1,p' | sort -t@ -k2n | sed -ne 's, .*,,p' | tr '\n' ','); echo Targets: \$TARGETS using \${TARGETS%%%%,*} … >&2; exec nc -F -vq0 \${TARGETS%%%%,*} %p" #ProxyUseFdpass yes LocalForward localhost:8385 localhost:8384