zapret/init.d/sysv/custom.d.examples/10-inherit-nfqws

26 lines
444 B
Plaintext
Raw Normal View History

2024-10-12 12:33:06 +03:00
# this custom script applies nfqws mode as it would be with MODE=nfqws
OVERRIDE=nfqws
zapret_custom_daemons()
{
# $1 - 1 - run, 0 - stop
local MODE_OVERRIDE=$OVERRIDE
zapret_do_daemons $1
2024-10-12 12:33:06 +03:00
}
zapret_custom_firewall()
{
# $1 - 1 - run, 0 - stop
local MODE_OVERRIDE=$OVERRIDE
zapret_do_firewall_rules_ipt $1
2024-10-12 12:33:06 +03:00
}
zapret_custom_firewall_nft()
{
# stop logic is not required
local MODE_OVERRIDE=$OVERRIDE
zapret_apply_firewall_rules_nft
2024-10-12 12:33:06 +03:00
}