Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 380461 - net-firewall/ufw : please make ufw use its own logfile instead of messages logfile
Summary: net-firewall/ufw : please make ufw use its own logfile instead of messages lo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Sławomir Nizio
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-24 10:26 UTC by Emmanuel Andry
Modified: 2011-09-03 12:17 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Emmanuel Andry 2011-08-24 10:26:44 UTC
ufw makes /var/log/messages hard to read because of the too many ufw entries.
Please make a separate ufw.log for the firewall (and a logrotate conf).

Thanks !

Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2011-08-25 14:31:56 UTC
Add USE=syslog?
Comment 2 Sławomir Nizio 2011-08-25 21:27:30 UTC
Ufw does not write logs by itself; it just sets iptables rules that do it.
If you emerge ufw with examples USE flag, you'll get an example rsyslog configuration file that makes the logger write ufw log to another file.
I've made configuration for syslog-ng that does what you want (really nice idea), and a logrotate rule will follow.
Comment 3 Peter Volkov (RETIRED) gentoo-dev 2011-09-03 12:17:59 UTC
+*ufw-0.30.1-r3 (03 Sep 2011)
+
+  03 Sep 2011; Peter Volkov <pva@gentoo.org> +ufw-0.30.1-r3.ebuild,
+  +files/rsyslog/ufw.logrotate, +files/syslog-ng/syslog-ng.example,
+  +files/syslog-ng/ufw.logrotate:
+  Add example syslog configurations for rsyslog and syslog-ng, bug #380461,
+  thank Emmanuel Andry for report and Sławomir Nizio for this job.