diff options
| author | makefu <github@syntax-fehler.de> | 2012-11-22 18:26:33 +0100 | 
|---|---|---|
| committer | makefu <github@syntax-fehler.de> | 2012-11-22 18:26:33 +0100 | 
| commit | 431afde0bfcbbccb4c7dad0cece3552384ba2862 (patch) | |
| tree | 4f2584267ca28a4af74af6a5666f4542b12cf944 /retiolum | |
| parent | ba4faba47f74c9258f0748af7720150ab757c7dc (diff) | |
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
Diffstat (limited to 'retiolum')
| -rw-r--r-- | retiolum/scripts/adv_graphgen/find_super | 14 | 
1 files changed, 14 insertions, 0 deletions
| 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 | 
