You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
342 B

#!/usr/bin/env bash
set -u
DESC="Diag3."
run() {
. $VDN_PATH/bin/functions-scripts.sh
diag root@nomade \
"Test Internet -> web :" \
"timeout 1 lynx -dump societe 2>&1 | grep --line-buffered -q 'Bienvenue'"
diag root@web \
"Test filtrage sortie web" \
"! timeout 1 nmap -p 22 nomade 2>1 | grep --line-buffered -q open"
}