Browse Source

blockcheck: detect pfsense and disable tpws tests

pull/100/head
bol-van 3 years ago
parent
commit
3f9874e316
  1. 20
      blockcheck.sh

20
blockcheck.sh

@ -110,6 +110,7 @@ check_system()
UNAME=$(uname)
SUBSYS=
local s
# can be passed FWTYPE=iptables to override default nftables preference
case "$UNAME" in
@ -126,6 +127,7 @@ check_system()
PKTWS="$DVTWS"
PKTWSD=dvtws
FWTYPE=ipfw
[ -f /etc/platform ] && read SUBSYS </etc/platform
;;
*)
echo $UNAME not supported
@ -670,15 +672,21 @@ check_domain()
}
done
echo
if [ "$SUBSYS" = "pfSense" ] ; then
echo
echo "tpws tests are not possible on pfSense"
report_append "ipv${IPV} $4 $1 : automated tpws tests are not possible on pfSense. check docs/bsd.txt"
else
echo
echo preparing tpws redirection
tpws_ipt_prepare $2
echo preparing tpws redirection
tpws_ipt_prepare $2
tpws_check_domain_bypass $1 $3 $4
tpws_check_domain_bypass $1 $3 $4
echo clearing tpws redirection
tpws_ipt_unprepare $2
echo clearing tpws redirection
tpws_ipt_unprepare $2
fi
echo

Loading…
Cancel
Save