From 2138841924bdd5572b2b332b06e2b0f94fdb18e5 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Wed, 29 Mar 2023 13:45:22 +0200 Subject: [PATCH] add lotus WOL proxy --- .ssh/config.in | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.39.5