mirror of https://github.com/fail2ban/fail2ban
ENH: add action.d/osx-afctl anonymously contributed on f2b wiki
parent
7cc3e8a8c0
commit
b31799a322
|
@ -41,6 +41,8 @@ ver. 0.8.11 (2013/XX/XXX) - loves-unittests
|
||||||
closes gh-343.
|
closes gh-343.
|
||||||
|
|
||||||
- New Features:
|
- New Features:
|
||||||
|
Anonymous:
|
||||||
|
* action.d/osx-afctl - an action based on afctl for osx
|
||||||
Daniel Black & ykimon
|
Daniel Black & ykimon
|
||||||
* filter.d/3proxy.conf -- filter added
|
* filter.d/3proxy.conf -- filter added
|
||||||
Daniel Black
|
Daniel Black
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
# Fail2Ban configuration file for using afctl on Mac OS X Server 10.5
|
||||||
|
#
|
||||||
|
# Anonymous author
|
||||||
|
# http://www.fail2ban.org/wiki/index.php?title=HOWTO_Mac_OS_X_Server_(10.5)&diff=prev&oldid=4081
|
||||||
|
#
|
||||||
|
# Ref: https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man8/afctl.8.html
|
||||||
|
|
||||||
|
[Definition]
|
||||||
|
actionstart =
|
||||||
|
actionstop =
|
||||||
|
actioncheck =
|
||||||
|
actionban = /usr/libexec/afctl -a <ip> -t <bantime>
|
||||||
|
actionunban = /usr/libexec/afctl -r <ip>
|
||||||
|
|
||||||
|
[Init]
|
||||||
|
bantime = 2880
|
|
@ -416,3 +416,9 @@ filter = perdition
|
||||||
action = iptables-multiport[name=perdition,port="110,143,993,995"]
|
action = iptables-multiport[name=perdition,port="110,143,993,995"]
|
||||||
logpath = /var/log/maillog
|
logpath = /var/log/maillog
|
||||||
|
|
||||||
|
|
||||||
|
[osx-ssh-afctl]
|
||||||
|
enabled = false
|
||||||
|
filter = sshd
|
||||||
|
action = osx-afctl[bantime=600]
|
||||||
|
logpath = /var/log/secure.log
|
||||||
|
|
Loading…
Reference in New Issue