I just installed fail2ban on my mac and got errors at every step so I am not sure if it worked:
$ curl -O http://softlayer.dl.sourceforge.net/project/fail2ban/fail2ban-stable/fail2ban-0.8.3/fail2ban-0.8.3.tar.bz2
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: softlayer.dl.sourceforge.net
$ tar xvfj fail2ban-0.8.3.tar.bz2
tar: Error opening archive: Failed to open 'fail2ban-0.8.3.tar.bz2' {I just unzipped the file mmanually in the os}
$ cd fail2ban-0.8.11
$ sudo python setup.py install
Password:
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/common
copying common/version.py -> build/lib/common
copying common/protocol.py -> build/lib/common
copying common/init.py -> build/lib/common
copying common/exceptions.py -> build/lib/common
copying common/helpers.py -> build/lib/common
creating build/lib/client
copying client/jailsreader.py -> build/lib/client
copying client/configparserinc.py -> build/lib/client
copying client/fail2banreader.py -> build/lib/client
copying client/filterreader.py -> build/lib/client
copying client/init.py -> build/lib/client
copying client/jailreader.py -> build/lib/client
copying client/configreader.py -> build/lib/client
copying client/configurator.py -> build/lib/client
copying client/beautifier.py -> build/lib/client
copying client/csocket.py -> build/lib/client
copying client/actionreader.py -> build/lib/client
creating build/lib/server
copying server/datetemplate.py -> build/lib/server
copying server/failregex.py -> build/lib/server
copying server/server.py -> build/lib/server
copying server/ticket.py -> build/lib/server
copying server/filtergamin.py -> build/lib/server
copying server/jailthread.py -> build/lib/server
copying server/filterpoll.py -> build/lib/server
copying server/actions.py -> build/lib/server
copying server/init.py -> build/lib/server
copying server/jail.py -> build/lib/server
copying server/action.py -> build/lib/server
copying server/faildata.py -> build/lib/server
copying server/datedetector.py -> build/lib/server
copying server/jails.py -> build/lib/server
copying server/transmitter.py -> build/lib/server
copying server/filter.py -> build/lib/server
copying server/mytime.py -> build/lib/server
copying server/iso8601.py -> build/lib/server
copying server/asyncserver.py -> build/lib/server
copying server/banmanager.py -> build/lib/server
copying server/filterpyinotify.py -> build/lib/server
copying server/failmanager.py -> build/lib/server
creating build/lib/testcases
copying testcases/clientreadertestcase.py -> build/lib/testcases
copying testcases/sockettestcase.py -> build/lib/testcases
copying testcases/servertestcase.py -> build/lib/testcases
copying testcases/init.py -> build/lib/testcases
copying testcases/filtertestcase.py -> build/lib/testcases
copying testcases/misctestcase.py -> build/lib/testcases
copying testcases/failmanagertestcase.py -> build/lib/testcases
copying testcases/utils.py -> build/lib/testcases
copying testcases/actiontestcase.py -> build/lib/testcases
copying testcases/dummyjail.py -> build/lib/testcases
copying testcases/actionstestcase.py -> build/lib/testcases
copying testcases/datedetectortestcase.py -> build/lib/testcases
copying testcases/samplestestcase.py -> build/lib/testcases
copying testcases/banmanagertestcase.py -> build/lib/testcases
running build_scripts
creating build/scripts-2.7
copying and adjusting fail2ban-client -> build/scripts-2.7
copying and adjusting fail2ban-server -> build/scripts-2.7
copying and adjusting fail2ban-regex -> build/scripts-2.7
changing mode of build/scripts-2.7/fail2ban-client from 644 to 755
changing mode of build/scripts-2.7/fail2ban-server from 644 to 755
changing mode of build/scripts-2.7/fail2ban-regex from 644 to 755
running install_lib
creating /usr/share/fail2ban
error: could not create '/usr/share/fail2ban': Operation not permitted
$ sudo touch /usr/share/fail2ban
touch: /usr/share/fail2ban: Operation not permitted
$ sudo touch /var/log/fail2ban.log
$ sudo emacs /etc/fail2ban/jail.conf
[1]+ Stopped sudo emacs /etc/fail2ban/jail.conf
$ sudo nano /etc/fail2ban/jail.conf
$ open /etc/fail2ban
The file /etc/fail2ban does not exist.
$ mkdir /etc/fail2ban
mkdir: /etc/fail2ban: Permission denied
$ sudo mkdir /etc/fail2ban
$ sudo nano enabled = true
$ sudo nano /etc/fail2ban/jail.conf
$ sudo nano /etc/syslog.conf
how do I test if the installation worked?