NextCloudPi on Docker ArmHf - how to get Fail2Ban functionality back

Hi Everyone,

The NextCloudPi Docker image does not contain Fail2Ban.
I’m currently running NCP on a docker container using an external BTFRS formatted hard drive for the data.
I was wondering how can I get to the NextCloud log files so that I can use Fail2Ban on the host with my dockerized NCP container…

Thank you in advance for any suggestions!
Mario

Depending distro

sudo apt install fail2ban

should install it, for configuration options can check man pages or have a look at https://linuxhandbook.com/fail2ban-basic/

And full how-to is in the gist.
You only need to locate yours nextcloud.log file. It is in data folder, so please check how you run your container and where you mount your data folder. Then just added this path to the config.

Thank you very much! Working like a charm!

1 Like