mirror of
https://github.com/bol-van/zapret.git
synced 2024-12-18 14:01:30 +03:00
26 lines
455 B
Plaintext
26 lines
455 B
Plaintext
# this custom script applies tpws mode as it would be with MODE=tpws
|
|
|
|
OVERRIDE=tpws
|
|
|
|
zapret_custom_daemons()
|
|
{
|
|
# stop logic is managed by procd
|
|
|
|
local MODE_OVERRIDE=$OVERRIDE
|
|
start_daemons_procd
|
|
}
|
|
zapret_custom_firewall()
|
|
{
|
|
# $1 - 1 - run, 0 - stop
|
|
|
|
local MODE_OVERRIDE=$OVERRIDE
|
|
zapret_do_firewall_rules_ipt $1
|
|
}
|
|
zapret_custom_firewall_nft()
|
|
{
|
|
# stop logic is not required
|
|
|
|
local MODE_OVERRIDE=$OVERRIDE
|
|
zapret_apply_firewall_rules_nft
|
|
}
|