Keleo / Fail2BanBundle

Fail2Ban plugin for Kimai to prevent automated attacks
https://www.kimai.org/store/fail2ban-bundle.html
MIT License
6 stars 4 forks source link

Advice on Implementation on Docker with Host Using nginx? #9

Open smyoss opened 1 year ago

smyoss commented 1 year ago

First of all, I'd like to express my gratitude for creating such an amazing project. Thank you for your hard work and dedication!

I am writing to seek your assistance with implementing Fail2ban for Kimai, which is running in Docker and Nginx, while Fail2ban is running in the host machine.

I've been trying to figure out the best approach for implementing Fail2ban to secure my Kimai installation, but I'm not sure how to configure it properly. I would greatly appreciate any guidance or tips that you may have on this.

Some of the specific issues that I'm encountering include:

I would be grateful if you could provide any assistance or point me in the right direction. Thank you again for your amazing project and for any help that you can offer. Thank you!

Cheers.

Steve.

BeckeBauer commented 1 year ago

I mapped the folder

    volumes:
      - ./var:/opt/kimai/var

In the subfolder /var/logs you will find the fail2ban.log file You can use it as logpath in your jail.d config and block IPs with unauthorized access to your Kimai app