firehol
firehol copied to clipboard
How to easily convert iptables-based rsyslog/logrotate configs to nflog/ulogd2?
Summary
How can I easily convert iptables-based rsyslog + logrotate configurations to a firehol + nflog/ulog rig (per FireHOL's suggestion)on Ubuntu 20.04, without having to do lots of nflog/ulog research?
Details
A few years ago I wrote a iptables firewall bash script for many of our servers/vpn/etc and created corredspondingrsyslog and logrotate configurations (to manage the large number of firewal-log entries for the publicly-exposed machines). My team has since migrated/converted said iptables script to firehol.conf (thank goodness) but have not yet "migrated" the corresponding iptables-based rsyslog and logrotate configurations on Ubuntu 20.04 to nflog/ulog per the firehol-project suggestion. I'm looking for an easy way to migrate the aforementioned rsyslog and logrotate configs without having to spend lots of research time (to figure this out).
eg: which ulogd2 files do I edit? Can I simply copy the above config-file content directly into ulogd2 /etc files? etc etc.
Yes, I realize I'm asking the FireHOL community about logging configurations. My reasoning:
- it's FireHOL's suggestion to move to nflog/ulog so there must be a good reason (for the firehol project to make this suggestion), and
- I've not yet found concise+easy docs to help guide me for this effort, and
- I do want to avoid hours of research time to find what I suspect is a relatively-easy answer that someone here at the firehol community already knows.
- (Yes, this might make me quite lazy. I'd like to argue pragmatically so. ;-) )
I'm also happy to adjust our firehol.conf to make easy(ier) accommodation(s) for our logging rig, migration from rsyslog/logrotate, etc.
For my team's reference: https://unix.stackexchange.com/questions/138135/whats-the-difference-between-ulog-and-nflog
srsly - just check firehol+ulogd2 documentation and close this 'issue' .. .
srsly - just check firehol+ulogd2 documentation and close this 'issue' .. .
And where is this found? https://firehol.org/firehol-manual/firehol-defaults-conf/ ? Somewhere else?
The following google search does not reveal much; the top of said result it this issue.
https://www.google.com/search?q=%22firehol%22+%22ulogd2%22