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:
Sunil Mohan Adapa 2019-01-24 14:16:21 -08:00
parent 760fa77b70
commit f113a3bfc9
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2
5 changed files with 8 additions and 8 deletions

View File

@ -0,0 +1,2 @@
[apache-auth]
enabled = true

View File

@ -0,0 +1,3 @@
[DEFAULT]
# 10 tries in the last 10 minutes before banning for 10 minutes
maxretry = 10

View File

@ -0,0 +1,2 @@
[sshd]
enabled = true

View File

@ -1,6 +0,0 @@
[sshd]
enabled = true
[apache-auth]
enabled = true
maxretry = 10

View File

@ -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',