I don't want to mix
iptables's log output with other system logs. How could I specify a dedicated log file for
iptables LOG chains output?
How you do this will depend on which log daemon you use,
With syslog, you can do this by tweaking a specific log level to only contain
You can use something like this:
It should be added before any other rules, for example:
You just change the
It's a better solution than redirecting all kern.warning messages because in that case you can redirect some other information, not just the one you'd like.