mirror of
https://github.com/bol-van/zapret.git
synced 2024-12-24 07:06:36 +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)
|
UNAME=$(uname)
|
||||||
SUBSYS=
|
SUBSYS=
|
||||||
|
local s
|
||||||
|
|
||||||
# can be passed FWTYPE=iptables to override default nftables preference
|
# can be passed FWTYPE=iptables to override default nftables preference
|
||||||
case "$UNAME" in
|
case "$UNAME" in
|
||||||
@ -126,6 +127,7 @@ check_system()
|
|||||||
PKTWS="$DVTWS"
|
PKTWS="$DVTWS"
|
||||||
PKTWSD=dvtws
|
PKTWSD=dvtws
|
||||||
FWTYPE=ipfw
|
FWTYPE=ipfw
|
||||||
|
[ -f /etc/platform ] && read SUBSYS </etc/platform
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo $UNAME not supported
|
echo $UNAME not supported
|
||||||
@ -670,6 +672,11 @@ check_domain()
|
|||||||
}
|
}
|
||||||
done
|
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
|
||||||
|
|
||||||
echo preparing tpws redirection
|
echo preparing tpws redirection
|
||||||
@ -679,6 +686,7 @@ check_domain()
|
|||||||
|
|
||||||
echo clearing tpws redirection
|
echo clearing tpws redirection
|
||||||
tpws_ipt_unprepare $2
|
tpws_ipt_unprepare $2
|
||||||
|
fi
|
||||||
|
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user