Scott M. Nolde([EMAIL PROTECTED])@2003.01.29 17:56:16 +0000: > Guido van Rooij([EMAIL PROTECTED])@2003.01.29 22:05:28 +0000: > > On Wed, Jan 29, 2003 at 11:32:20AM -0500, Scott M. Nolde wrote: > > > I've recently converted from ipfw to ipf on FreeBSD 4.7-STABLE. And I > > > like it. I've set up logging and IPv4 is logging just fine. > > > > > > I've been tinkering with ipf and IPv6 and initially had it logging for > > > debugging purposes. With all logging removed from ipf6.rules ipmon is > > > still logging packets: > > > Jan 29 11:28:21 gw ipmon[83]: 11:28:21.007186 gif2 @0:5 p > > > 2001:470:1f00:375::1,49400 -> 2001:470:1f00:567:250:8bff:fe67:5132,XXXX PR > > > tcp len 40 32 -A K-S IN > > > Jan 29 11:28:21 gw ipmon[83]: 11:28:21.007276 fxp0 @0:5 p > > > 2001:470:1f00:375::1,49400 -> 2001:470:1f00:567:250:8bff:fe67:5132,XXXX PR > > > tcp len 40 32 -A K-S OUT > > > > Those are passed packets. > > > > > > ipfstat -hio | grep log returns nothing. > > > > What is the output of that ipfstat -hio? > > > > -Guido > > Yes, they are passed packets. Let me provide some more background. > > At first I was using ipmon -Ds to log to syslog. And being > syslog-illiterate I had the following entry in syslog.conf: > !ipmon > *.* /var/log/ipf.log > > And that logged the stuff above. > > If i only want LOG_INFO packets I should be able to specify (without > !ipmon): > local.0 /var/log/ipf.log
Gah, i meant local0.info there.... > Is that correct? > > Well, even logging local0.log I get the same packet matches in my first > email. There is no "log" syntax anywhere in my ipf6.rules file. This is > what I'm confused about. Why does ipmon think that the packet matches a > log rule when it doesn't. > > I've posted the ipfstat -hio (and -6hio) output at: > https://www.smnolde.com/ipf/ipfstat-hio.txt > https://www.smnolde.com/ipf/ipfstat-6hio.txt > > If I've got syslog.conf too screwed up, let me know. I believe what I was seeing was ipf logging the entire tcp6 session which matched two rules when i was first testing ipf and my IPv6 connection: pass in log tcp from any to any pass out log tcp from any to any I was not aware that ipf would continue to log a session if the logging rule was change to a non-logging rule. Pardon my n00bness. -- Scott Nolde GPG Key 0xD869AB48
