Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ISPConfig
ISPConfig 3
Commits
5eb43f4a
Commit
5eb43f4a
authored
May 17, 2011
by
latham
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fail2ban config start: The Chicken first
parent
3a741161
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
1 deletion
+15
-1
install/lib/installer_base.lib.php
install/lib/installer_base.lib.php
+2
-1
install/tpl/dovecot-pop3imap.conf.master
install/tpl/dovecot-pop3imap.conf.master
+3
-0
install/tpl/dovecot_fail2ban_jail.local.master
install/tpl/dovecot_fail2ban_jail.local.master
+10
-0
No files found.
install/lib/installer_base.lib.php
View file @
5eb43f4a
...
...
@@ -133,6 +133,7 @@ class installer_base {
if
(
is_installed
(
'squid'
))
$conf
[
'squid'
][
'installed'
]
=
true
;
if
(
is_installed
(
'nginx'
))
$conf
[
'nginx'
][
'installed'
]
=
true
;
if
(
is_installed
(
'iptables'
)
&&
is_installed
(
'ufw'
))
$conf
[
'ufw'
][
'installed'
]
=
true
;
if
(
is_installed
(
'fail2ban-server'
))
$conf
[
'fail2ban'
][
'installed'
]
=
true
;
if
(
is_dir
(
"/etc/Bastille"
))
$conf
[
'bastille'
][
'installed'
]
=
true
;
if
(
$conf
[
'services'
][
'web'
]
&&
$conf
[
'apache'
][
'installed'
]
&&
is_file
(
$conf
[
'apache'
][
"vhost_conf_enabled_dir"
]
.
"/000-ispconfig.vhost"
))
$this
->
ispconfig_interface_installed
=
true
;
...
...
install/tpl/dovecot-pop3imap.conf.master
0 → 100644
View file @
5eb43f4a
[Definition]
failregex = (?: pop3-login|imap-login): .*(?:Authentication failure|Aborted login \(auth failed|Aborted login \(tried to use disabled|Disconnected \(auth failed).*rip=(?P<host>\S*),.*
ignoreregex =
install/tpl/dovecot_fail2ban_jail.local.master
0 → 100644
View file @
5eb43f4a
[dovecot-pop3imap]
enabled = true
filter = dovecot-pop3imap
action = iptables-multiport[name=dovecot-pop3imap, port="pop3,pop3s,imap,imaps", protocol=tcp]
# optionaly mail notification # mail[name=dovecot-pop3imap, dest=root@domain] # see /etc/fail2ban/action.d/ or Fail2Ban doc
logpath = /var/log/maillog
maxretry = 20
findtime = 1200
bantime = 1200
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment