Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 380461

Summary: net-firewall/ufw : please make ufw use its own logfile instead of messages logfile
Product: Gentoo Linux Reporter: Emmanuel Andry <eandry>
Component: Current packagesAssignee: Sławomir Nizio <slawomir.nizio>
Status: RESOLVED FIXED    
Severity: enhancement CC: pva
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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.