All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philip Craig <philipc@snapgear.com>
To: Colin Paton <cozzarp@hotmail.com>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: Netfilter/PPTP/GRE weirdness - only when used with 'tap' device
Date: Wed, 16 Jun 2004 17:44:39 +1000	[thread overview]
Message-ID: <40CFFA67.8040808@snapgear.com> (raw)
In-Reply-To: <BAY22-F4x5ElptLnpp000050866@hotmail.com>

Colin Paton wrote:
> It would appear that ip_nat_proto_gre.c function gre_manip_pkt() is only 
> being called for the first packet (client->PPTP server) and is not being 
> called for the response (PPTP server->laptop) - or at least a DEBUGP there 
> only occurs once.
> 
> I *think* (but this is where I begin to get out of my depth a bit) that the 
> correct keymap entries aren't being added to the tables in 
> ip_conntrack_proto_gre, and hence the gre_manip_pkt() isn't being called for 
> the return entry. I'm not sure why though.

For the working case, your logs show ip_ct_gre_keymap_destroy being
called only once.  But for the broken case, it is called twice.  Since
there are only two sets of keymaps, this means that all the keymap
entries are deleted and so subsequent packets can't match any.

Can you give full logs?  Or at least show what is going on in
ip_conntrack_pptp also.

pptp conntrack uses two expectations, but when the first one is matched
it deletes the other one.  My initial suspicion is that the packet is
going through conntrack twice, and we are trying to delete the other
expectation twice, but since it is already deleted the second time, we
end up deleting both expectations.

-- 
Philip Craig - SnapGear, A CyberGuard Company - http://www.SnapGear.com

      reply	other threads:[~2004-06-16  7:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-15 14:30 Netfilter/PPTP/GRE weirdness - only when used with 'tap' device Colin Paton
2004-06-16  7:44 ` Philip Craig [this message]

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=40CFFA67.8040808@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.