Firewall Logging Elsewhere?

Post Reply
bradandersen
Junior Member
Posts: 1
Joined: 26 Aug 2007, 21:42

Firewall Logging Elsewhere?

Post by bradandersen »

Hello,

How can I get the firewall BLOCKED messages to log to /var/log/firewall instead of /var/log/messages? And how do I add that file to log rotation? Is there a way to specify the log file or the Syslog level and then modify /etc/syslog.conf.

Thanks,
Brad
chirpy
Moderator
Posts: 3537
Joined: 09 Dec 2006, 18:13

Post by chirpy »

There's a SYSLOG option in csf.conf to log to syslog. It's then a matter of having syslog redirect to a specific log file. Check man syslog.conf
Post Reply