Re: ipmon log rotation

This is a discussion on Re: ipmon log rotation within the IPFilter forums, part of the System Security and Security Related category; On Wed, Dec 03, 2003 at 03:03:03PM -0500, Damian Gerow wrote: > > in rc.conf: > > &...


Go Back   Usenet Forums > System Security and Security Related > IPFilter

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-07-2003
Paul Armstrong
 
Posts: n/a
Default Re: ipmon log rotation

On Wed, Dec 03, 2003 at 03:03:03PM -0500, Damian Gerow wrote:
> > in rc.conf:
> >
> > ipmon_flags=-sD
> >
> > in syslog.conf:
> > local0.* /var/log/ipfilter

>
> In 5.x, ipmon sends to security, not local0. Last I checked (5.1-R), there
> was no way to change this. I submitted a post to -current, but nobody ever
> responded.
>
> I *really* like having my ipf logfiles filtered off into their own logfile.
> I don't like being forced to send everything of the same facility.severity
> to the same logfile.


Actually, you can setup something similar in 5.X. I do the following in 5.1
(and have used this method in 4.X as well):

IPF rules:
block in log level local3.info quick from any to any head 01
block out log level local4.info quick from any to any head 02

syslog:
# This takes only syslog messages that come from the ipmon program. The '='
# ensures that only the specified level is sent to each log file.
!ipmon
local3.=info /var/log/ipf/in.log
local4.=info /var/log/ipf/out.log

newsyslog:
/var/log/ipf/in.log 0640 20 100 * Z
/var/log/ipf/out.log 0640 20 100 * Z

Paul
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:58 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0