mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
fail2ban: Split and update configuration files
- Easy to configure for separate services. - Unique names ensure that system administrator FreedomBox configuration files don't conflict with system administrator created ones. - Set maximum attempts to 10 globally instead of 5. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
760fa77b70
commit
f113a3bfc9
2
data/etc/fail2ban/jail.d/apache-auth-freedombox.conf
Normal file
2
data/etc/fail2ban/jail.d/apache-auth-freedombox.conf
Normal file
@ -0,0 +1,2 @@
|
||||
[apache-auth]
|
||||
enabled = true
|
||||
3
data/etc/fail2ban/jail.d/freedombox.conf
Normal file
3
data/etc/fail2ban/jail.d/freedombox.conf
Normal file
@ -0,0 +1,3 @@
|
||||
[DEFAULT]
|
||||
# 10 tries in the last 10 minutes before banning for 10 minutes
|
||||
maxretry = 10
|
||||
2
data/etc/fail2ban/jail.d/ssh-freedombox.conf
Normal file
2
data/etc/fail2ban/jail.d/ssh-freedombox.conf
Normal file
@ -0,0 +1,2 @@
|
||||
[sshd]
|
||||
enabled = true
|
||||
@ -1,6 +0,0 @@
|
||||
[sshd]
|
||||
enabled = true
|
||||
|
||||
[apache-auth]
|
||||
enabled = true
|
||||
maxretry = 10
|
||||
3
setup.py
3
setup.py
@ -264,8 +264,7 @@ setuptools.setup(
|
||||
glob.glob('data/usr/share/augeas/lenses/tests/test_*.aug')),
|
||||
('/usr/share/pam-configs/',
|
||||
glob.glob('data/usr/share/pam-configs/*-freedombox')),
|
||||
('/etc/fail2ban/',
|
||||
['data/etc/fail2ban/jail.local']),
|
||||
('/etc/fail2ban/jail.d', glob.glob('data/etc/fail2ban/jail.d/*.conf')),
|
||||
('/etc/plinth/modules-enabled',
|
||||
glob.glob(os.path.join(
|
||||
'data/etc/plinth/modules-enabled',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user