ipmon logging as well
dave
dmehler26 at woh.rr.com
Tue Apr 27 21:17:12 PDT 2004
Hello,
I'm also atempting to get ipmon to log properly to a file
/var/log/ipf.log. My thanks for the recent traffic on this subject,
unfortunately it has not worked in my case. My system is a 5.2.1 box, it
does not run ipnat just ipfilter and ipmon. I've got:
options IPFILTER
options IPFILTER_LOG
options IPFILTER_DEFAULT_BLOCK
compiled in to my kernel. And in rc.conf:
ipfilter_enable="YES"
ipfilter_rules="/etc/ipf.rules"
ipfilter_flags="" (Note, i thought this one was suppose to resolve a problem
of a duplicate ipfilter startup message, about already being initialized?)
ipmon_enable="YES"
ipmon_flags="-D /var/log/ipf.log"
In the /etc/rc.d/ipfilter script i added ipmon to the end of the require:
line and in the ipmon script i added ipfilter. On boot i get a message that
says enabling ipfilter, default = block all, logging = enabled. A little
later i get the message:
Enabling ipfilter
ioctl(SIOCIPFL6):Invalid argument
and it does not work.
Suggestions welcome, also when i get this working i'd like for newsyslog
to rotate this log file, but the last time i tried this newsyslog rotated
the file yet kept the original pointer open and kept logging to the old
file.
Thanks.
Dave.
More information about the freebsd-questions
mailing list