Add a first test for the firewall

master
Robert "ar" Gerus 2013-03-11 02:41:41 +01:00
parent 96f24c1c0c
commit fa677588fd
1 changed files with 19 additions and 0 deletions

19
tests/01-ssh_test_via_NAS.sh Executable file
View File

@ -0,0 +1,19 @@
#!/bin/sh
set -o errexit
set -o pipefail
set -o nounset
NAS_USER="fwtest"
NAS_HOST="10.24.20.250"
FW_USER="fwtest"
FW_HOST="10.24.0.1"
TEST_CMD="/bin/true" # actually, a good choice, because we'll receive non-0 status code anyway if anything fails
/usr/bin/ssh -l "${NAS_USER}" "${NAS_HOST}" \
/usr/bin/ssh -l "${FW_USER}" "${FW_HOST}" ${TEST_CMD}
exit $?