1
0
mirror of https://github.com/bol-van/zapret.git synced 2025-03-03 23:24:41 +03:00

23 lines
434 B
Plaintext
Raw Normal View History

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