OpenMediaVault-Plugin-Developers / openmediavault-fail2ban

11 stars 5 forks source link

Feature request: Add ability to specify chain #31

Open TheLastProject opened 2 years ago

TheLastProject commented 2 years ago

The plugin currently always uses the INPUT chain, unless OMV_FAIL2BAN_CHAIN is set in /srv/pillar/omv/default.sls.

It would be nice for this to be configurable, as Docker doesn't use the INPUT chain but the DOCKER-USER chain, see https://github.com/crazy-max/docker-fail2ban#docker-user-and-input-chains for more explanation.

It would be nice to be able to specific the chain so that I can use this fail2ban plugin to both fail2ban SSH (over INPUT) and my Traefik Docker install (over DOCKER-USER).