Re: blocked FIN packets

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Forman, Jeffrey
Date: Wednesday, December 22, 2010 - 5:54 pm

On Wed, Dec 22, 2010 at 5:41 PM, Jan Stary <hans@stare.cz> wrote:

Jan,

I have run into a similiar situation where I had packets getting blocked
through my OpenBSD fw and could not figure out why.

The couple pieces of code I tend to use to debug such a thing:

1. The 'log' and 'log (all)' statements in pf.conf. Take your pick of the
two and throw them on all your block statements.

2. Following that, I run 'tcpdump -n -ttt -e -i pflog0'. This shows me not
only the packets being logged, but also the pf rules blocking them. Example:
Dec 22 19:24:13.564109 rule 8/(match) block in on vr0: 115.178.83.69.6000 >
96.21.64.23.2967: S 449708032:449708032(0) win 16384 [tos 0x20]

I see this is rule 8. I then run 'pfctl -s rules -vv' which among other
things, outputs

@8 block return in log all label "block_all"
  [ Evaluations: 1196726   Packets: 5786      Bytes: 352780      States:
0     ]
  [ Inserted: uid 0 pid 2220 State Creations: 0     ]

"@8" corresponding to a particular PF rule.

I find that by combining these two debugging tools, I am able to pin
point the rule that might be blocking a specific set of connections.

Hope that helps.

Cheers,
Jeffrey
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
blocked FIN packets, Jan Stary, (Wed Dec 22, 3:41 pm)
Re: blocked FIN packets, Forman, Jeffrey, (Wed Dec 22, 5:54 pm)
Re: blocked FIN packets, Jan Stary, (Thu Dec 23, 1:47 am)
Re: blocked FIN packets, Brian Seklecki (Mobile), (Thu Dec 23, 2:45 am)
Re: blocked FIN packets, Daniel E. Hassler, (Thu Dec 23, 3:39 am)
Re: blocked FIN packets, Jan Stary, (Thu Dec 23, 12:17 pm)
Re: blocked FIN packets, Claudio Jeker, (Thu Dec 23, 1:11 pm)
Re: blocked FIN packets, Jan Stary, (Sat Dec 25, 3:07 am)
Re: blocked FIN packets, Jan Stary, (Sat Dec 25, 12:29 pm)