diff --git a/ChangeLog b/ChangeLog index 31be71d3..324b6ec2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -47,10 +47,13 @@ ver. 0.8.11 (2013/XX/XXX) - loves-unittests * files/redhat-initd - rewritten to use stock init.d functions thus avoiding problems with getpid. Also $network and iptables moved to Should- rc init fields + - New Features: Andy Fragen and Daniel Black * filter.d/osx-ipfw.conf - ipfw action for OSX based on random rule numbers. + Anonymous: + * action.d/osx-afctl - an action based on afctl for osx Daniel Black & ykimon * filter.d/3proxy.conf -- filter added Daniel Black @@ -59,6 +62,8 @@ ver. 0.8.11 (2013/XX/XXX) - loves-unittests * add date expression for apache-2.4 - milliseconds Christophe Carles & Daniel Black * filter.d/perdition.conf -- filter added + Mark McKinstry + * action.d/apf.conf - add action for Advanced Policy Firewall (apf) - Enhancements: François Boulogne and Frédéric @@ -106,8 +111,6 @@ ver. 0.8.11 (2013/XX/XXX) - loves-unittests Orion Poplawski * fail2ban.d/ and jail.d/ directories are added to etc/fail2ban to facilitate their use - Mark McKinstry - * action.d/apf.conf - add action for Advanced Policy Firewall (apf) ver. 0.8.10 (2013/06/12) - wanna-be-secure ----------- diff --git a/config/action.d/osx-afctl.conf b/config/action.d/osx-afctl.conf new file mode 100644 index 00000000..a319fc6b --- /dev/null +++ b/config/action.d/osx-afctl.conf @@ -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 -t +actionunban = /usr/libexec/afctl -r + +[Init] +bantime = 2880 diff --git a/config/jail.conf b/config/jail.conf index 4753a273..4878122f 100644 --- a/config/jail.conf +++ b/config/jail.conf @@ -427,3 +427,9 @@ enabled = false filter = sshd action = apf[name=SSH] logpath = /var/log/secure + +[osx-ssh-afctl] +enabled = false +filter = sshd +action = osx-afctl[bantime=600] +logpath = /var/log/secure.log