mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-11 17:29:16 +05: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,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…
Reference in New Issue
Block a user