ipmon fills up partition

Canggung Mendonan mendonan at absolute-p.ath.cx
Sat Apr 17 07:16:39 PDT 2004

Dear list,

I use ipfilter exclusively in all the FreeBSD systems I ever set up /
administer since FreeBSD 4.x at least. In addition, in all my systems I
have a habit of logging ipfilter to a different file, by using the
following setting in /etc/rc.conf:-

ipmon_flags="-D /var/log/ipflog"

and rotating it in newsyslog.conf:-

/var/log/ipflog		640  7     1000 *     J

Reason for this is I also turn on /var/log/all.log (logging everything),
so default ipmon settings tend to clutter the logs.

Anyway, since FreeBSD v5.x (been using it since a while before
5.0-RELEASE), in at least 3 of the machines I administer, rotation works
fine, and ipmon resumes logging afterwards. However the partition where
/var/log/ipflog resides gradually fills up, until 100% full.  Curiously,
killing ipmon process releases back the space taken.

Adding /var/run/ipmon.pid at the end of newsyslog.conf line above stops
the above symptom, but ipmon stopped logging after each rotation.

My last resort is to cook up own rotation, as some ppl have done here:-


But before that, any other ideas? Should I send-pr?


"Yang mimpikan secangkir kopi panas dengan selimut.."
 (Dreaming of a cup of hot coffee, and a blanket..")

More information about the freebsd-questions mailing list