mirror of
https://github.com/bol-van/zapret.git
synced 2024-12-23 23:04:23 +00:00
blockcheck: detect pfsense and disable tpws tests
This commit is contained in:
parent
b1b82cb29a
commit
3f9874e316
@ -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,6 +672,11 @@ check_domain()
|
||||
}
|
||||
done
|
||||
|
||||
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
|
||||
@ -679,6 +686,7 @@ check_domain()
|
||||
|
||||
echo clearing tpws redirection
|
||||
tpws_ipt_unprepare $2
|
||||
fi
|
||||
|
||||
echo
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user