mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-15 11:08:34 +05:00
23 lines
423 B
Plaintext
23 lines
423 B
Plaintext
# this custom script applies nfqws mode as it would be with MODE=nfqws
|
|
|
|
OVERRIDE=nfqws
|
|
|
|
zapret_custom_daemons()
|
|
{
|
|
# $1 - 1 - run, 0 - stop
|
|
|
|
MODE_OVERRIDE=$OVERRIDE zapret_do_daemons $1
|
|
}
|
|
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
|
|
}
|