mirror of https://github.com/fail2ban/fail2ban
* Added reload/force-reload actions to init script
* Adjusted jail.conf a bitdebian-releases/etch debian/0.7.4-2
parent
2e568c08d6
commit
b457f61e74
|
@ -1,3 +1,10 @@
|
|||
fail2ban (0.7.4-2) experimental; urgency=low
|
||||
|
||||
* Added reload/force-reload actions to init script
|
||||
* Adjusted jail.conf a bit
|
||||
|
||||
-- Yaroslav Halchenko <debian@onerussian.com> Mon, 6 Nov 2006 09:18:58 -0500
|
||||
|
||||
fail2ban (0.7.4-1) experimental; urgency=low
|
||||
|
||||
* New upstream release
|
||||
|
|
|
@ -116,6 +116,13 @@ do_stop()
|
|||
return 0
|
||||
}
|
||||
|
||||
#
|
||||
# Function to reload configuration
|
||||
#
|
||||
do_reload() {
|
||||
$DAEMON reload > /dev/null && return 0 || return 1
|
||||
return 0
|
||||
}
|
||||
|
||||
# yoh:
|
||||
# shortcut function to don't duplicate case statements and to don't use
|
||||
|
@ -162,6 +169,13 @@ case "$1" in
|
|||
;;
|
||||
esac
|
||||
;;
|
||||
|
||||
reload|force-reload)
|
||||
log_daemon_msg "Reloading $DESC" "$NAME"
|
||||
do_reload
|
||||
log_end_msg $?
|
||||
;;
|
||||
|
||||
status)
|
||||
log_daemon_msg "Status of $DESC"
|
||||
do_status
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
# provided now under /usr/share/doc/fail2ban/examples/jail.conf
|
||||
# for additional examples.
|
||||
#
|
||||
# To avoid merges during upgrades do not modify this file
|
||||
# To avoid merges during upgrades DO NOT MODIFY THIS FILE
|
||||
# and rather provide your changes in /etc/fail2ban/jail.local
|
||||
#
|
||||
# Author: Yaroslav O. Halchenko <debian@onerussian.com>
|
||||
|
@ -37,13 +37,14 @@ destemail = root@localhost
|
|||
action = iptables[name=%(__name__)s, port=%(port)s]
|
||||
|
||||
# Default action to take: ban & send an e-mail with whois report
|
||||
# to the destemail
|
||||
# to the destemail. Copy/paste+uncomment next 2 lines into jail.local
|
||||
# to activate
|
||||
#action = iptables[name=%(__name__)s, port=%(port)s]
|
||||
# mail-whois[name=%(__name__)s, dest=%(destemail)s]
|
||||
|
||||
#
|
||||
# Next jails corresponds to the standard configuration in Fail2ban 0.6.
|
||||
# Please enable them by including
|
||||
# Next jails corresponds to the standard configuration in Fail2ban 0.6
|
||||
# which was shipped in Debian. Please enable them by including
|
||||
#
|
||||
# [SECTION_NAME]
|
||||
# enabled = true
|
||||
|
|
Loading…
Reference in New Issue