Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
lolo888
ISPConfig 3
Commits
5eb43f4a
Commit
5eb43f4a
authored
May 17, 2011
by
latham
Browse files
Fail2ban config start: The Chicken first
parent
3a741161
Changes
3
Hide whitespace changes
Inline
Side-by-side
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
;
...
...
@@ -1898,4 +1899,4 @@ class installer_base {
}
}
?>
?>
\ No newline at end of file
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
Supports
Markdown
0%
Try again
or
attach a new 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