ecdye / zram-config

A complete zram-config utility for swap, directories, and logs to reduce SD, NAND and eMMC block wear.
MIT License
412 stars 53 forks source link

Question: Does zram-config work together with fail2ban? #43

Closed smokemyshoes closed 3 years ago

smokemyshoes commented 3 years ago

Hi

Maybe a totall noob question but nevertheless.... Will fail2ban work after using log2ram?

If yes, will it require any (re-)configuration of fail2ban?

Many thanks in advance!

StuartIanNaylor commented 3 years ago

I guess its just the service order and that fail2ban should start after zram-config as that means it will close before and not create log locks on shutdown.

But answer is without trying there should be no reason why not as the logs still retain the same path but are on a bind mount. If you have any problems maybe edit the service and put zram-config in the after section of the of the fail2ban service.

smokemyshoes commented 3 years ago

Thanks. I'll give it a try.