init.d: improve nfqws ipset example

This commit is contained in:
bol-van
2025-04-22 19:03:18 +03:00
parent 6ef6c8ee5a
commit 1c1f259b39
2 changed files with 106 additions and 37 deletions

View File

@@ -28,7 +28,6 @@ zapret_custom_firewall()
local f4 f6 subnet
local PORTS_IPT=$(replace_char - : $TPWS_MY1_PORTS)
local dest_set="-m set --match-set $TPWS_MY1_NAME4 dst"
[ "$1" = 1 -a "$DISABLE_IPV4" != 1 ] && {
ipset create $TPWS_MY1_NAME4 $TPWS_MY1_IPSET_OPT family inet 2>/dev/null