kiwix / container-images

10 stars 4 forks source link

Add failban service #246

Closed kelson42 closed 1 year ago

kelson42 commented 1 year ago

Add fail2ban to Dropbox container image

Fixes #227

kelson42 commented 1 year ago

@rgaudin After a while, a few hours if not dozen of minutes, access is anyway restored automatically. This is the default policy.

I would not whitlist anything, should not be necessary IMO.

rgaudin commented 1 year ago

@rgaudin After a while, a few hours if not dozen of minutes, access is anyway restored automatically.

Default is 1d AFAIK

kelson42 commented 1 year ago

@rgaudin This is 10mn, say documentations online.... and my own instance.

rgaudin commented 1 year ago

https://github.com/fail2ban/fail2ban/blob/master/config/fail2ban.conf#L75

kelson42 commented 1 year ago

@rgaudin This is the wrong property. Look at "bantime".

rgaudin commented 1 year ago

@rgaudin This is the wrong property. Look at "bantime".

Right https://github.com/fail2ban/fail2ban/blob/master/config/jail.conf#L21

rgaudin commented 1 year ago

And https://github.com/fail2ban/fail2ban/blob/master/config/jail.conf#L103 of course