zapret/init.d/sysv/custom.default

32 lines
746 B
Plaintext
Raw Normal View History

2021-03-04 14:30:38 +03:00
# this script contain your special code to launch daemons and configure firewall
# use helpers from "functions" file
# in case of upgrade keep this file only, do not modify others
zapret_custom_daemons() {
2021-03-04 14:30:38 +03:00
# $1 - 1 - run, 0 - stop
# PLACEHOLDER
echo !!! NEED ATTENTION !!!
echo Start daemon\(s\)
echo Study how other sections work
do_daemon "$1" 1 /bin/sleep 20
2021-03-04 14:30:38 +03:00
}
zapret_custom_firewall() {
2021-03-04 14:30:38 +03:00
# $1 - 1 - run, 0 - stop
# PLACEHOLDER
echo !!! NEED ATTENTION !!!
echo Configure iptables for required actions
echo Study how other sections work
}
2022-02-15 17:15:36 +03:00
zapret_custom_firewall_nft() {
2022-02-15 17:15:36 +03:00
# stop logic is not required
# PLACEHOLDER
echo !!! NEED ATTENTION !!!
echo Configure nftables for required actions
echo Study how other sections work
}