-
-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make sure ufw.log always exists for fail2ban #937
Conversation
Many thanks! You are right. This would be over-written by an update. I think that the correct place to introduce the |
Those are conf files, the don't seem executable? |
They are unit files. You can try creating a file named with these contents
The logfile should always appear even if UFW is disabled, as long as https://www.freedesktop.org/software/systemd/man/systemd.unit.html |
I'll be able to test that change in about a week. |
Signed-off-by: nachoparker <[email protected]>
Updated. I've manually applied these changes and tested the result and it works fine. There are still some things I don't quite understand: UFW.sh has something to "disable logging to kernel": Looking at things, maybe we should do I also don't understand how |
Thanks! that comment does not explain what that line does. We are just limiting the size of the logfile.
|
* make sure ufw.log always exists for fail2ban
Full discussion in #913
Not fully tested as I'm currently remote.