Unix Technical Forum

Re: struggling with pf

This is a discussion on Re: struggling with pf within the lucky.openbsd.misc forums, part of the OpenBSD category; --> On 2006/08/27 15:23, Joachim Schipper wrote: > > pass in log on $ext_if inet proto tcp from any to ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > lucky.openbsd.misc

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-18-2008, 07:26 AM
Stuart Henderson
 
Posts: n/a
Default Re: struggling with pf

On 2006/08/27 15:23, Joachim Schipper wrote:
> > pass in log on $ext_if inet proto tcp from any to ($ext_if) \
> > port $tcp_services flags S/SA keep state

>
> Also, the flags directive is redundant with scrub, unless I am mistaken.


Where you're using a standard PF setup using stateful filtering
you want `flags S/SA keep state' on _every_ tcp pass rule, or you can
end up with state sync'd to non-initial packets, causing problems
with OS using TCP window-scaling.

(PF checks that TCP sequence numbers are within reasonable bounds;
to know what bounds are OK, it needs to know what window-scaling
options were negotiated in the 3-way handshake; state created from
an existing connection [i.e. packet without SYN set] does not have
the information to determine this).

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:49 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com