Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion ipfstat bug on Solaris 10?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Vincent Fox  
View profile  
 More options Jan 5 2012, 2:20 pm
Newsgroups: mailing.unix.ipfilter
From: vb...@ucdavis.edu (Vincent Fox)
Date: Thu, 05 Jan 2012 11:20:32 -0800
Local: Thurs, Jan 5 2012 2:20 pm
Subject: ipfstat bug on Solaris 10?
Has anyone seen wonky output occasionally from ipfstat?

I have a Tripwire check that looks at ipfstat -ion and
every once in a while it would flag.  I'd look at what it
captured and it would be like it doubled up the output, it
would like the normal 46 lines of my ruleset, then keep
going at 47 with another copy.

I wrote a script which duplicated the error in 40 minutes:

#!/bin/bash
#set -x
ipfstat -ion > /tmp/b
rm -f /tmp/attempts
#for i in 1 2 3 4 5 6 7 8 9 10
while true do
do
         ipfstat -ion>/tmp/a
         diff /tmp/a /tmp/b >/tmp/diff-ab
          if [ "$?" -ne "0" ]; then
                 echo "*** ^G  Diff found!"
                 cp /tmp/a /tmp/ipfstat-a
                 cp /tmp/b /tmp/ipfstat-b
                 exit
         else
                 echo "No diff detected."
         fi
         echo "*" >> /tmp/attempts
         sleep 1
done

[root@xyzzyj]<357> wc -l attempts
     2359 attempts

[root@xyzzyj]<321> ipf -V
ipf: IP Filter: v4.1.9 (592)
Kernel: IP Filter: v4.1.9
Running: yes
Log Flags: 0 = none set
Default: pass all, Logging: available
Active list: 1
Feature mask: 0x107

--
"The universal aptitude for ineptitude makes any human accomplishment an incredible miracle." - Stapp's Law


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.