From: Philip Craig <philipc@snapgear.com>
To: paulm@routefree.com
Cc: netfilter-devel@lists.netfilter.org, paulm@broadon.com
Subject: Re: PPTP connection tracking fixes
Date: Tue, 21 Jan 2003 11:50:50 +1000 [thread overview]
Message-ID: <3E2CA77A.1050001@snapgear.com> (raw)
In-Reply-To: 200301180029.h0I0T3d29430@stilton.routefree.com
paulm@routefree.com wrote:
> I have taken the PPTP connection tracking patch version 1.11
> and applied it to the 2.4.20 kernel's version of netfilter.
> I then applied Philip Craig's subsequent patch to get his
> fixes.
Note that Harald has incorporated my patch in CVS with a
couple of small changes.
> In the course of getting this to work on my target systems,
> it became clear that our situation differs from those of
> the previous developers in the following respects:
>
> 1) In our case, we need to support the PPTP server running
> on the firewall machine itself, as well as the pass-through
> cases.
>
> 2) At least one of our platforms is big-endian.
Actually both of these are true for me.
> The change required to make 1) work is pretty straightforward.
> Case 2) is a bit uglier.
>
> The thing that prevented case 1) from working is the following
> fragment in the routine ip_nat_fn() in ip_nat_standalone.c starting
> around line 111:
>
> case IP_CT_NEW:
> #ifdef CONFIG_IP_NF_NAT_LOCAL
> /* LOCAL_IN hook doesn't have a chain and thus doesn't care
> * about new packets -HW */
> if (hooknum == NF_IP_LOCAL_IN)
> return NF_ACCEPT;
> #endif
My PPTP server never received the incoming packet first in my
testing. Adding a rule to drop the outgoing packet causes the
problem you describe to occur, and removing the #ifdef fixes it.
I haven't looked into the code much to see what this is going
to break yet..
> The endianness issue is a good deal uglier. The root cause of the
> problem is that the PPTP conntrack patch adds a 32 bit element to
> the union ip_conntrack_manip_proto and also to the corresponding
> destination portion of ip_conntrack_tuple, making them both a mix
> of 16 bit and 32 bit elements.
<snip>
> Unfortunately this idiom exists in a number of places. I'm in
> the process of looking for more, but I have already found and fixed
> two bugs caused by this endianness issue. Diffs are attached below.
I came across this also in the past week. The only additional
occurences I have found are a few places in the h323 patch.
--
Philip Craig Software Engineer http://www.SnapGear.com
philipc@snapgear.com Ph: +61 7 3435 2821 Fx: +61 7 3891 3630
SnapGear - Custom Embedded Solutions and Security Appliances
next prev parent reply other threads:[~2003-01-21 1:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-18 0:29 PPTP connection tracking fixes paulm
2003-01-21 1:50 ` Philip Craig [this message]
2003-01-21 8:25 ` Philip Craig
2003-01-30 0:31 ` another PPTP conntrack problem (no fix this time) Paul Mielke
2003-01-30 7:34 ` Philip Craig
2003-01-31 12:04 ` Harald Welte
2003-01-31 20:50 ` Paul Mielke
2003-02-05 8:23 ` Philip Craig
2003-02-18 1:21 ` [PATCH] " Philip Craig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3E2CA77A.1050001@snapgear.com \
--to=philipc@snapgear.com \
--cc=netfilter-devel@lists.netfilter.org \
--cc=paulm@broadon.com \
--cc=paulm@routefree.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.