Skip to content

Commit 48c7b7f

Browse files
author
Serghey Rodin
committed
fail2ban improvements from ioannidesalex
1 parent 04d4b4c commit 48c7b7f

File tree

9 files changed

+108
-0
lines changed

9 files changed

+108
-0
lines changed

install/ubuntu/12.04/fail2ban/jail.local

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[DEFAULT]
2+
ignoreip = 127.0.0.1/8
3+
14
[ssh-iptables]
25
enabled = true
36
filter = sshd
@@ -17,12 +20,14 @@ enabled = true
1720
filter = exim
1821
action = vesta[name=MAIL]
1922
logpath = /var/log/exim4/mainlog
23+
maxretry = 5
2024

2125
[dovecot-iptables]
2226
enabled = true
2327
filter = dovecot
2428
action = vesta[name=MAIL]
2529
logpath = /var/log/dovecot.log
30+
maxretry = 5
2631

2732
[mysqld-iptables]
2833
enabled = false
@@ -37,3 +42,10 @@ filter = vesta
3742
action = vesta[name=VESTA]
3843
logpath = /var/log/vesta/auth.log
3944
maxretry = 5
45+
46+
[roundcube-auth]
47+
enabled = false
48+
filter = roundcube-auth
49+
port = http,https
50+
logpath = /var/log/roundcube/errors
51+
maxretry = 5

install/ubuntu/12.10/fail2ban/jail.local

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[DEFAULT]
2+
ignoreip = 127.0.0.1/8
3+
14
[ssh-iptables]
25
enabled = true
36
filter = sshd
@@ -17,12 +20,14 @@ enabled = true
1720
filter = exim
1821
action = vesta[name=MAIL]
1922
logpath = /var/log/exim4/mainlog
23+
maxretry = 5
2024

2125
[dovecot-iptables]
2226
enabled = true
2327
filter = dovecot
2428
action = vesta[name=MAIL]
2529
logpath = /var/log/dovecot.log
30+
maxretry = 5
2631

2732
[mysqld-iptables]
2833
enabled = false
@@ -37,3 +42,10 @@ filter = vesta
3742
action = vesta[name=VESTA]
3843
logpath = /var/log/vesta/auth.log
3944
maxretry = 5
45+
46+
[roundcube-auth]
47+
enabled = false
48+
filter = roundcube-auth
49+
port = http,https
50+
logpath = /var/log/roundcube/errors
51+
maxretry = 5

install/ubuntu/13.04/fail2ban/jail.local

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[DEFAULT]
2+
ignoreip = 127.0.0.1/8
3+
14
[ssh-iptables]
25
enabled = true
36
filter = sshd
@@ -17,12 +20,14 @@ enabled = true
1720
filter = exim
1821
action = vesta[name=MAIL]
1922
logpath = /var/log/exim4/mainlog
23+
maxretry = 5
2024

2125
[dovecot-iptables]
2226
enabled = true
2327
filter = dovecot
2428
action = vesta[name=MAIL]
2529
logpath = /var/log/dovecot.log
30+
maxretry = 5
2631

2732
[mysqld-iptables]
2833
enabled = false
@@ -37,3 +42,10 @@ filter = vesta
3742
action = vesta[name=VESTA]
3843
logpath = /var/log/vesta/auth.log
3944
maxretry = 5
45+
46+
[roundcube-auth]
47+
enabled = false
48+
filter = roundcube-auth
49+
port = http,https
50+
logpath = /var/log/roundcube/errors
51+
maxretry = 5

install/ubuntu/13.10/fail2ban/jail.local

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[DEFAULT]
2+
ignoreip = 127.0.0.1/8
3+
14
[ssh-iptables]
25
enabled = true
36
filter = sshd
@@ -17,12 +20,14 @@ enabled = true
1720
filter = exim
1821
action = vesta[name=MAIL]
1922
logpath = /var/log/exim4/mainlog
23+
maxretry = 5
2024

2125
[dovecot-iptables]
2226
enabled = true
2327
filter = dovecot
2428
action = vesta[name=MAIL]
2529
logpath = /var/log/dovecot.log
30+
maxretry = 5
2631

2732
[mysqld-iptables]
2833
enabled = false
@@ -37,3 +42,10 @@ filter = vesta
3742
action = vesta[name=VESTA]
3843
logpath = /var/log/vesta/auth.log
3944
maxretry = 5
45+
46+
[roundcube-auth]
47+
enabled = false
48+
filter = roundcube-auth
49+
port = http,https
50+
logpath = /var/log/roundcube/errors
51+
maxretry = 5

install/ubuntu/14.04/fail2ban/jail.local

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[DEFAULT]
2+
ignoreip = 127.0.0.1/8
3+
14
[ssh-iptables]
25
enabled = true
36
filter = sshd
@@ -17,12 +20,14 @@ enabled = true
1720
filter = exim
1821
action = vesta[name=MAIL]
1922
logpath = /var/log/exim4/mainlog
23+
maxretry = 5
2024

2125
[dovecot-iptables]
2226
enabled = true
2327
filter = dovecot
2428
action = vesta[name=MAIL]
2529
logpath = /var/log/dovecot.log
30+
maxretry = 5
2631

2732
[mysqld-iptables]
2833
enabled = false
@@ -37,3 +42,10 @@ filter = vesta
3742
action = vesta[name=VESTA]
3843
logpath = /var/log/vesta/auth.log
3944
maxretry = 5
45+
46+
[roundcube-auth]
47+
enabled = false
48+
filter = roundcube-auth
49+
port = http,https
50+
logpath = /var/log/roundcube/errors
51+
maxretry = 5

install/ubuntu/14.10/fail2ban/jail.local

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[DEFAULT]
2+
ignoreip = 127.0.0.1/8
3+
14
[ssh-iptables]
25
enabled = true
36
filter = sshd
@@ -17,12 +20,14 @@ enabled = true
1720
filter = exim
1821
action = vesta[name=MAIL]
1922
logpath = /var/log/exim4/mainlog
23+
maxretry = 5
2024

2125
[dovecot-iptables]
2226
enabled = true
2327
filter = dovecot
2428
action = vesta[name=MAIL]
2529
logpath = /var/log/dovecot.log
30+
maxretry = 5
2631

2732
[mysqld-iptables]
2833
enabled = false
@@ -37,3 +42,10 @@ filter = vesta
3742
action = vesta[name=VESTA]
3843
logpath = /var/log/vesta/auth.log
3944
maxretry = 5
45+
46+
[roundcube-auth]
47+
enabled = false
48+
filter = roundcube-auth
49+
port = http,https
50+
logpath = /var/log/roundcube/errors
51+
maxretry = 5

install/ubuntu/15.04/fail2ban/jail.local

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[DEFAULT]
2+
ignoreip = 127.0.0.1/8
3+
14
[ssh-iptables]
25
enabled = true
36
filter = sshd
@@ -17,12 +20,14 @@ enabled = true
1720
filter = exim
1821
action = vesta[name=MAIL]
1922
logpath = /var/log/exim4/mainlog
23+
maxretry = 5
2024

2125
[dovecot-iptables]
2226
enabled = true
2327
filter = dovecot
2428
action = vesta[name=MAIL]
2529
logpath = /var/log/dovecot.log
30+
maxretry = 5
2631

2732
[mysqld-iptables]
2833
enabled = false
@@ -37,3 +42,10 @@ filter = vesta
3742
action = vesta[name=VESTA]
3843
logpath = /var/log/vesta/auth.log
3944
maxretry = 5
45+
46+
[roundcube-auth]
47+
enabled = false
48+
filter = roundcube-auth
49+
port = http,https
50+
logpath = /var/log/roundcube/errors
51+
maxretry = 5

install/ubuntu/15.10/fail2ban/jail.local

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[DEFAULT]
2+
ignoreip = 127.0.0.1/8
3+
14
[ssh-iptables]
25
enabled = true
36
filter = sshd
@@ -17,12 +20,14 @@ enabled = true
1720
filter = exim
1821
action = vesta[name=MAIL]
1922
logpath = /var/log/exim4/mainlog
23+
maxretry = 5
2024

2125
[dovecot-iptables]
2226
enabled = true
2327
filter = dovecot
2428
action = vesta[name=MAIL]
2529
logpath = /var/log/dovecot.log
30+
maxretry = 5
2631

2732
[mysqld-iptables]
2833
enabled = false
@@ -37,3 +42,10 @@ filter = vesta
3742
action = vesta[name=VESTA]
3843
logpath = /var/log/vesta/auth.log
3944
maxretry = 5
45+
46+
[roundcube-auth]
47+
enabled = false
48+
filter = roundcube-auth
49+
port = http,https
50+
logpath = /var/log/roundcube/errors
51+
maxretry = 5

install/ubuntu/16.10/fail2ban/jail.local

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[DEFAULT]
2+
ignoreip = 127.0.0.1/8
3+
14
[ssh-iptables]
25
enabled = true
36
filter = sshd
@@ -17,12 +20,14 @@ enabled = true
1720
filter = exim
1821
action = vesta[name=MAIL]
1922
logpath = /var/log/exim4/mainlog
23+
maxretry = 5
2024

2125
[dovecot-iptables]
2226
enabled = true
2327
filter = dovecot
2428
action = vesta[name=MAIL]
2529
logpath = /var/log/dovecot.log
30+
maxretry = 5
2631

2732
[mysqld-iptables]
2833
enabled = false
@@ -37,3 +42,10 @@ filter = vesta
3742
action = vesta[name=VESTA]
3843
logpath = /var/log/vesta/auth.log
3944
maxretry = 5
45+
46+
[roundcube-auth]
47+
enabled = false
48+
filter = roundcube-auth
49+
port = http,https
50+
logpath = /var/log/roundcube/errors
51+
maxretry = 5

0 commit comments

Comments
 (0)