From: Philip Craig <philipc@snapgear.com>
To: Colin Paton <cozzarp@hotmail.com>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: PPTP connttrack problem - 'unexpecting' performed too early?
Date: Tue, 13 Apr 2004 11:21:22 +1000 [thread overview]
Message-ID: <407B4092.3060604@snapgear.com> (raw)
In-Reply-To: <BAY13-F92qgIjOiwsN300050707@hotmail.com>
Colin Paton wrote:
> Can anyone advise? I'm not 100% sure of the nature of the 'expect' stuff,
> which is perhaps where my misunderstanding is coming from. I'm wondering if
> the other end should be 'unexpected' only AFTER GRE reply has been seen, but
> am not quite sure.
For most protocols, the first packet in the connection will be in a
predetermined direction, so expectations are set up to only expect a
packet in that direction. But the first packet in a GRE connection
can be sent by either end, so two expectations must be created.
However, once an expectation is matched, a conntrack entry is created
that will match packets in either direction. So once the first GRE
expectation is matched, the expectation for the other direction can
be deleted immediately. There is no need to wait for the reply.
An additional complication with GRE is that it uses a different ID
in either direction, so in order to match up the packets in either
direction, a 'keymap' is used. The pptp helper creates 2 keymaps
for each expectation, for a total of 4 keymaps. When an expectation
is matched, its 2 keymaps are used for the conntrack entry. But
the other 2 keymaps are deleted by ip_ct_gre_keymap_destroy when
the other expectation is deleted.
What your change is accomplishing is to keep one of the keymaps for
the other expectation (for ever). This shouldn't be needed, so if
it fixes things, it is probably because the keymap for the matched
expectation is wrong.
> I enclose a debug log.
Your log doesn't have any debug info from ip_nat_pptp.c or
ip_nat_proto_gre.c. Have you insmod'ed them? If you haven't then
that would explain why the keymap is wrong. If you have, then please
enable debug for them also, and resend the log.
--
Philip Craig - SnapGear, A CyberGuard Company - http://www.SnapGear.com
next prev parent reply other threads:[~2004-04-13 1:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-08 10:59 PPTP connttrack problem - 'unexpecting' performed too early? Colin Paton
2004-04-13 1:21 ` Philip Craig [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-04-13 13:31 Colin Paton
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=407B4092.3060604@snapgear.com \
--to=philipc@snapgear.com \
--cc=cozzarp@hotmail.com \
--cc=netfilter-devel@lists.netfilter.org \
/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.