init.d: number pools. FW_EXTRA. nft insert. customs reorder

This commit is contained in:
bol-van
2024-10-12 21:28:51 +03:00
parent 2aaa2f7cf3
commit 8ff0b9bab9
22 changed files with 216 additions and 222 deletions

View File

@@ -0,0 +1,18 @@
# this custom script applies tpws mode as it would be with MODE=tpws
OVERRIDE=tpws
zapret_custom_daemons()
{
# $1 - 1 - run, 0 - stop
MODE_OVERRIDE=$OVERRIDE zapret_do_daemons $1
}
zapret_custom_firewall_v4()
{
MODE_OVERRIDE=$OVERRIDE pf_anchor_zapret_v4
}
zapret_custom_firewall_v6()
{
MODE_OVERRIDE=$OVERRIDE pf_anchor_zapret_v6
}