Re: PF drops tcp packets from a machine with Gentoo linux kernel 2.6.18

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Darren Spruell <phatbuckett@...>
Cc: Tim Kuhlman <tim.kuhlman@...>, <misc@...>
Date: Wednesday, February 14, 2007 - 4:27 pm

On 2007/02/14 12:11, Darren Spruell wrote:

> When I had the same problem, it was very erratic and seemed isolated

New linux kernels (and Windows) set the window size such that wscale>0
by default (if you want to test this from an OpenBSD box, increase
net.inet.tcp.recvspace).

As tcpdump will show you, the wscale value is *only* in SYN packets.
This is multiplied by the window size in the TCP headers of subsequent
packets to find the actual window size (see RFC1323 paragraph 1.1 on
'window size limit' and paragraph 2).

If the state was created from a packet other than the SYN, it won't have
wscale information (if it was collected, it's shown in pfctl -ss -v).
Without this the range of permitted sequence numbers is incorrect and
state failures can occur (especially in those cases where the unscaled
window size, shown by 'win' in tcpdump, works out to a small value).

(People who are intentionally using stateless filtering will have to
adjust their ruleset when they upgrade to 4.1; from the mailing list
posts about it, the number of people who will be affected negatively
by this change is much smaller than the number who will be affected
positively).

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: PF drops tcp packets from a machine with Gentoo linux ke..., Stuart Henderson, (Wed Feb 14, 4:27 pm)