login
Header Space

 
 

Re: Problem with state and PF on a 4.3 setup

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Stuart Henderson <stu@...>
Cc: <misc@...>
Date: Thursday, May 8, 2008 - 8:50 am

Ah, that explains a lot! Thanks for the information. Yes, what Otto had 
mentioned was indeed confusing me :-)

Especially when I look at the following statement from the faq:
http://www.openbsd.org/faq/pf/filter.html#state

" When a rule creates state, the first packet matching the rule creates 
a "state" between the sender and receiver. Now, not only do packets 
going from the sender to receiver match the state entry and bypass 
ruleset evaluation, but so do the reply packets from receiver to sender."

Plus, in the pf.conf(5)  stated that floating was the default behaviour, 
which I now notice is what Otto pointed out, but that meant me think 
even more that the pass out would not have been needed, since the state 
was created with the pass in.

I've added a "pass out from ! self" rule that should take care of 
everything that I've allowed to come in. It also explains why the state 
table will grow so much, if there's a state entry for each direction. 
I'll look more into the tag part which should be even better as well as 
that link on optimization.

Is the state direction tracking something that changed at one point of 
the PF development or has it always been like that?

Thanks again to all for the responses and references,
Steve

Stuart Henderson wrote:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Problem with state and PF on a 4.3 setup, Stuart Henderson, (Thu May 8, 8:18 am)
Re: Problem with state and PF on a 4.3 setup, Steve Johnson, (Thu May 8, 8:50 am)
Re: Problem with state and PF on a 4.3 setup, Henning Brauer, (Thu May 8, 9:21 am)
speck-geostationary