From 431afde0bfcbbccb4c7dad0cece3552384ba2862 Mon Sep 17 00:00:00 2001 From: makefu Date: Thu, 22 Nov 2012 18:26:33 +0100 Subject: retiolum: add find_super script finds potential supernodes based on the open tinc port. if a dedicated port is added, the script will fail to produce correct output but it gives a good overview of the current supernode constellation --- retiolum/scripts/adv_graphgen/find_super | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 retiolum/scripts/adv_graphgen/find_super (limited to 'retiolum/scripts/adv_graphgen') diff --git a/retiolum/scripts/adv_graphgen/find_super b/retiolum/scripts/adv_graphgen/find_super new file mode 100644 index 00000000..c89a94fb --- /dev/null +++ b/retiolum/scripts/adv_graphgen/find_super @@ -0,0 +1,14 @@ +#!/bin/sh +cd /etc/tinc/retiolum/hosts +ls -1 . | while read fname; +do + for i in `sed -n 's/Address\s*=\s*\(.*\)/\1/p' $fname`;do + if nc -zw 5 $i 655 2>/dev/null; then + echo "$fname - $i reachable" + #else + #echo -n + #echo "$fname - $i unreachable" + + fi + done +done -- cgit v1.2.3