Skip to contentSkip to conversation

PPTP conntrack NOT working in kernel 2.6

DISCUSSION Laurens Blankers 2 participants 2 messages Jan 20, 2005 – Feb 1, 2005 netfilter

lore
Share & tools
lore
#0 lore raw

Hello Harald & all,

I'm having problems with PPTP conntrack when using kernel 2.6.10 and pom-ng from SVN. The problem is a bit difficult to explain so please read carefully.

I have a server which connects to the internet and acts as a masquarading NAT gateway for several (Windows) PCs. I am trying to establish a PPTP connection from a Windows PC thought the Linux NAT gateway to a remote PPTP server somewhere on the inet. This works for when a single PC connects to a remote PPTP server, but not when multiple local PCs connect to the remote PPTP server. This is because of limitations in standard Linux conntrack and the reason for the existance of PPTP conntrack.

So to solve this problem I got PPTP conntrack from pom-ng in SVN and compiled it as a module. However loading the PPTP conntrack and NAT modules prevents even a single PC from establishing a connection with the remote PPTP server.

There are no error messages in the system log. However the firewall log shows that incoming GRE packets get dropped because they do not belong to an connection. Obviously the conntrack module is not working, and even preventing the standard conntrack from working.

The problem gets more complicated though: the server is not connected to the internet directly but though a PPTP connection (this is a totally different connection that was described above). Loading PPTP conntrack also causes problems with this connection.

Certain GRE packets of this PPTP connection that connects my Linux box to the internet get marked as 'invalid', causing my firewall to drop them. Strangely enough this does not cause the PPTP connection to
fail: internet connectivity stays up.

Also at exactly 60 second intervals the system log shows the following error:

Jan 20 12:40:33 src@beta net/ipv4/netfilter/ip_conntrack_pptp.c: bad csum

I hope I have been able to convey the problem to you, if not please send me an e-mail and I will try to explain it in another way.

Sincerely,

Laurens

#1 lore raw
Quoted 5 lines · Laurens Blankers

Hello Harald & all,

I'm having problems with PPTP conntrack when using kernel 2.6.10 and pom-ng from SVN. The problem is a bit difficult to explain so please read carefully.

There are a number of known issues with the (experimental) 2.6.x port of the helper. Due to time constraints, I wasn't able to address those issues yet.

Please note that I've just committed a few important fixes to svn, so maybe it already works with what is now in svn.

I'll try to get some test setup running tomorrow.

Quoted 4 lines

Also at exactly 60 second intervals the system log shows the following error:

Jan 20 12:40:33 src@beta net/ipv4/netfilter/ip_conntrack_pptp.c: bad csum

This is mor like an informational message, at least in case you run W2K PPTP server. It is buggy and always sends certain packet with broken tcp checksum. The packet is ignored, W2K retransmits with correct csum

Signature · 5 lines
- Harald Welte <[email protected]>             http://www.netfilter.org/
============================================================================
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie