Jatkanpa samassa ketjussa, kun on lisää kysyttävää fail2banista. Sain fail2banin lähettämään minulle postia aina kun se käynnistyy.
Pistin pystyyn svn-serverin, jota pääsee käpistelemään https:n yli. Olen yrittänyt saada fail2banin blokkaamaan IP:ni, mutta se ole ainakaan vielä onnistunut. Eli pystyn yrittämään loggautumista yhä uudestaan ja uudestaan... 
/var/log/apache2/error.log:iin tulee uusia rivejä tähän tyyliin:
[Thu Nov 28 16:52:22 2013] [error] [client 192.168.1.10] user foobar not found: /subversion/test_repository
/var/log/fail2ban.logiin ilmestyy aina kolme kappaletta rivejä per loginyritys:
2013-11-28 16:52:23,611 fail2ban.filter : DEBUG  Got event: 1 for /var/log/apache2/error.log
2013-11-28 16:52:23,611 fail2ban.filter : DEBUG  File changed: /var/log/apache2/error.log
2013-11-28 16:52:23,633 fail2ban.filter.datedetector: DEBUG  Sorting the template list
Jail.local (relevantit rivit):
[DEFAULT]
ignoreip = 127.0.0.1/8
bantime  = -1
maxretry = 2
backend = auto
destemail = xxxx@yyyyy.com
banaction = iptables-multiport
mta = mail
# Default protocol
protocol = tcp
# Specify chain where jumps would need to be added in iptables-* actions
chain = INPUT
# ban & send an e-mail with whois report to the destemail.
action_mw = %(banaction)s[name=%(__name__)s, port="%(port)s", protocol="%(protocol)s", chain="%(chain)s"]
              %(mta)s-whois[name=%(__name__)s, dest="%(destemail)s", protocol="%(protocol)s", chain="%(chain)s"]
action = %(action_mw)s
[apache]
enabled  = true
port     = http,https
filter   = apache-auth
logpath  = /var/log/apache*/*error.log
maxretry = 3
iptables -n -L INPUT:
Chain INPUT (policy DROP)
target     prot opt source               destination
fail2ban-apache  tcp  --  0.0.0.0/0            0.0.0.0/0            multiport dports 80,443
fail2ban-ssh  tcp  --  0.0.0.0/0            0.0.0.0/0            multiport dports 22
ufw-before-logging-input  all  --  0.0.0.0/0            0.0.0.0/0
ufw-before-input  all  --  0.0.0.0/0            0.0.0.0/0
ufw-after-input  all  --  0.0.0.0/0            0.0.0.0/0
ufw-after-logging-input  all  --  0.0.0.0/0            0.0.0.0/0
ufw-reject-input  all  --  0.0.0.0/0            0.0.0.0/0
ufw-track-input  all  --  0.0.0.0/0            0.0.0.0/0
Restartin yhteydessä fail2ban.logiin ilmestyy (paljon) seuraavanlaisia rivejä, en tosin tiedä liittyvätkö ne asiaan.
2013-11-28 17:09:27,051 fail2ban.filter : DEBUG  Got event: 8 for /var/log/apache2/error.log
2013-11-28 17:09:27,051 fail2ban.filter : DEBUG  File changed: /var/log/apache2/error.log
2013-11-28 17:09:27,126 fail2ban.filter : DEBUG  Processing line with time:1385112908.0 and ip:192.168.1.10
2013-11-28 17:09:27,127 fail2ban.filter : DEBUG  Ignore line since time 1385112908.0 < 1385651367.13 - 600
2013-11-28 17:09:27,180 fail2ban.filter : DEBUG  Got event: 9 for /var/log/apache2/error.log
2013-11-28 17:09:27,182 fail2ban.filter.datedetector: DEBUG  Sorting the template list
2013-11-28 17:09:27,185 fail2ban.filter : DEBUG  Processing line with time:1385380980.0 and ip:192.168.1.10
2013-11-28 17:09:27,185 fail2ban.filter : DEBUG  Ignore line since time 1385380980.0 < 1385651367.19 - 600
Olisko ideoita mistä tätä kannattaisi lähteä perkaamaan?