Closed JimboJoe closed 7 years ago
Yes, fail2ban and naming, directory setting conventions... to be compared to this, for example.
All seems good. But, we need to test if that works well.
And, I'll glad to see this as an helper instead. But, first, we should try it.
I've tested this, and it indeed works! ;-) As for the helper, I don't see it as a very "smart" one because, besides copying the 2 right files (replacing the app name) and restarting the fail2ban service, I think the configuration can be very different from one app to another one...
I think really we can make a simple helper, because we have only to change the failregex and the log. That's all. In the most case, that should works.
And, it can be a good thing if we can expand this to all our apps.
Yep, I see what you mean: in most cases for HTTP(S) ports, configuration files will look alike. I'll try to come up with something!
Seems good to me, but on which part of this PR would you like my review ? Fail2ban ?