nextcloud / nextcloudpi

📦 Build code for NextcloudPi: Raspberry Pi, Odroid, Rock64, curl installer...
https://nextcloudpi.com
2.56k stars 297 forks source link

Allow users to extend the fail2ban configuration #1544

Open vcbranco opened 2 years ago

vcbranco commented 2 years ago

Whenever I configure fail2ban with "abuseIPDB" service ( https://www.abuseipdb.com ), the settings I added are always replaced by NCP fail2ban configuration. It would be great that it could be possible to set the API key and the configuration of the service in the Fail2ban menu. Unfortunately I'm not a developer for what I can only help with ideas and testing.

victor-rays commented 2 years ago

Could you perhaps add an example of your configurations? (Excluding your API key and such info of course)

Ex. If you add the settings in a jail.local file in /etc/fail2ban/jail.d the settings should persist if I'm not mistaken