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
c12af940
Commit
c12af940
authored
May 17, 2011
by
latham
Browse files
Fail2ban config start: Then the egg
parent
5eb43f4a
Changes
2
Hide whitespace changes
Inline
Side-by-side
install/dist/lib/debian60.lib.php
View file @
c12af940
...
...
@@ -105,6 +105,10 @@ class installer extends installer_base {
parent
::
configure_apache
();
}
public
function
configure_fail2ban
()
{
copy
(
'tpl/dovecot-pop3imap.conf.master'
,
"/etc/fail2ban/filter.d/dovecot-pop3imap.conf"
);
copy
(
'tpl/dovecot_fail2ban_jail.local.master'
,
'/etc/fail2ban/jail.local'
);
}
}
?>
?>
\ No newline at end of file
install/install.php
View file @
c12af940
...
...
@@ -200,7 +200,6 @@ if($install_mode == 'standard') {
swriteln
(
'Configuring Getmail'
);
$inst
->
configure_getmail
();
//* Configure Pureftpd
swriteln
(
'Configuring Pureftpd'
);
$inst
->
configure_pureftpd
();
...
...
@@ -244,6 +243,11 @@ if($install_mode == 'standard') {
swriteln
(
'Configuring Ubuntu Firewall'
);
$inst
->
configure_ufw_firewall
();
}
//* Configure Fail2ban
if
(
$conf
[
'fail2ban'
][
'installed'
]
==
true
)
{
swriteln
(
'Configuring Fail2ban'
);
$inst
->
configure_fail2ban
();
if
(
$conf
[
'squid'
][
'installed'
]
==
true
)
{
$conf
[
'services'
][
'proxy'
]
=
true
;
...
...
@@ -544,4 +548,4 @@ if($install_mode == 'standard') {
echo
"Installation completed.
\n
"
;
?>
?>
\ No newline at end of file
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