IPfilter
[Top] [All Lists]

Re: ipf 4.1.13 + NAT + FTP proxy = window scaling problem

To: Pekka Savola <pekkas@netcore.fi>
Subject: Re: ipf 4.1.13 + NAT + FTP proxy = window scaling problem
From: Darren Reed <darrenr@reed.wattle.id.au>
Date: Sun, 24 Dec 2006 13:34:20 +1100
Cc: ipfilter@coombs.anu.edu.au
Delivered-to: sp-com-lists@consult.net
Delivered-to: ipfilter-list@securepoint.com
In-reply-to: <Pine.LNX.4.64.0612231801330.24378@netcore.fi>
References: <200612210741.kBL7fAGm025100@caligula.anu.edu.au> <458ABF32.7010309@reed.wattle.id.au> <Pine.LNX.4.64.0612212010340.31062@netcore.fi> <458B0011.70508@reed.wattle.id.au> <Pine.LNX.4.64.0612220930200.16229@netcore.fi> <458D40C0.30008@reed.wattle.id.au> <Pine.LNX.4.64.0612231801330.24378@netcore.fi>
Reply-to: darrenr@reed.wattle.id.au
Sender: owner-ipfilter@coombs.anu.edu.au
User-agent: Thunderbird 1.5.0.5 (Windows/20060719)
Pekka Savola wrote:
> Hello!
>
> On Sun, 24 Dec 2006, Darren Reed wrote:
>> ok, I think I've found the smoking gun here.
>>
>> The TCP options for SYN packets were being put in the wrong
>> TCP option state structure, so only one side was ever being set
>> correctly.
>>
>> I've attached two different patches here.  The first is just a fix.
>>
>> The second tries to change the way td_maxend is used to be
>> a little better.
>>
>> Hopefully this will be much better for you!
>
> Thanks -- the first patch indeed fixes this.  I couldn't test the
> second because compilation fails on 4.1.13 in this particular
> environment:
>
> /usr/src/sys/contrib/ipfilter/netinet/ip_state.c: In function
> `fr_delstate':
> /usr/src/sys/contrib/ipfilter/netinet/ip_state.c:2780: warning: nested
> extern declaration of `printstate'
>
> Just for the record -- which parts of the code did this problem
> affect?  Something else rather than just the FTP proxy module? I'm
> hoping this will be fixed in FreeBSD mainstream soon, and the bigger
> the problem, the better the chances of a fix going in :-)

I've committed this fix into both FreeBSD-current and NetBSD-current.

I need to do follow up MFCs for FreeBSD and request pullups for NetBSD.

Darren


<Prev in Thread] Current Thread [Next in Thread>