5 lines
365 B
Bash
Executable file
5 lines
365 B
Bash
Executable file
#!/bin/bash
|
|
# acltest.sh <ip-des-anderen-peers> : ping, TCP 22 (sshd), TCP 5201 (iperf3) prüfen
|
|
T=$1; echo "## $(date -u +%T) von $(hostname) nach $T"
|
|
ping -c 2 -W 1 -q $T >/dev/null 2>&1 && echo "ping erreichbar" || echo "ping GEBLOCKT"
|
|
for p in 22 5201; do nc -z -w 3 $T $p 2>/dev/null && echo "tcp/$p erreichbar" || echo "tcp/$p GEBLOCKT"; done
|