2024-10-28 09:32:24 +03:00
|
|
|
# this custom script applies tpws mode as it would be with MODE=tpws
|
|
|
|
|
|
|
|
OVERRIDE=tpws
|
|
|
|
|
|
|
|
zapret_custom_daemons()
|
|
|
|
{
|
2024-10-12 21:28:51 +03:00
|
|
|
# stop logic is managed by procd
|
2024-10-28 09:32:24 +03:00
|
|
|
|
2024-10-22 18:10:29 +03:00
|
|
|
local MODE_OVERRIDE=$OVERRIDE
|
|
|
|
start_daemons_procd
|
2024-10-28 09:32:24 +03:00
|
|
|
}
|
|
|
|
zapret_custom_firewall()
|
|
|
|
{
|
|
|
|
# $1 - 1 - run, 0 - stop
|
|
|
|
|
2024-10-22 18:10:29 +03:00
|
|
|
local MODE_OVERRIDE=$OVERRIDE
|
|
|
|
zapret_do_firewall_rules_ipt $1
|
2024-10-28 09:32:24 +03:00
|
|
|
}
|
|
|
|
zapret_custom_firewall_nft()
|
|
|
|
{
|
|
|
|
# stop logic is not required
|
|
|
|
|
2024-10-22 18:10:29 +03:00
|
|
|
local MODE_OVERRIDE=$OVERRIDE
|
|
|
|
zapret_apply_firewall_rules_nft
|
2024-10-28 09:32:24 +03:00
|
|
|
}
|