I was having some issues with new rulesets that I was testing, so I decided to break out ipftest to see what I could find out. I found my issues & corrected them, but I'm still left with a few questions about deciphering the output of ipftest. When one runs:
ipftest -v -r /etc/ipf.rules opening rule file "/etc/ipf.rules" in on ti0 tcp <Source IP>,<Port> <Dest IP>,<Port> input: in on ti0 tcp <Source IP>,<Port> <Dest IP>,<Port> in on [ti0]: p:i p:i p:i p p:i p:i p:i p:i p:i <--snip--> p:i p:i p:i p:i p p:i*block ip 40(20) 6 Source_IP,Port > Dest_IP,Port -------------- I understand that: "p" = no match for pass rule "b" = no match for block rule "[b|p]:i" = no match except for interface for either block or pass "[b|p]:i*" = match block or pass rule, not checking anything but interface What I don't understand is: How does one decipher the actual rule number from the output? What does 40(20) & 6 signify? Is this related to finding the actual rule in the ruleset file? How, exactly, does it show p:i* yet say it's blocking? [I realize this might be tough without my ruleset] Any answers to the above questions would be extremely appreciated and very helpful.. as I can see ipftest coming in very handy in the future.. if only I understand what the hell it's trying to tell me :\ -- shawn puschnig aphix networks, ltd.
