Skip to contentSkip to conversation

Pptp conntrack nat testing

DISCUSSION Harald Welte 1 participant 1 message Jan 8, 2004 1 message not in the archive netfilter

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 7 lines · Paul Boot - Bateau Knowledge

Dear Harold,

I am currently working on a pptp-client-nat problem. Over here we run a simple RedHat9 iptables box using e1000 cards, vlans, a hp ethernet switch and masquarading to the Internet. (some 7 VLANs go to the Internet with one interface physical interface to the switch and one interface to a DSL link)

Quoted 6 lines

To Internet going pptp-client connections (from windows workstations) over this masquarading firewall to an external Linux poptop pptpd server sometimes fails. In the /proc conntrack table pptp client ip addresses seem to be associated with old non-existing connections and the pptp tunnels can not be created for a few hours. After a number of hours a windows pptp-client connects fine to a Linux pop-top pptpd server.

may I ask about the scale of your installating? How many pptp sessions would you have avg/maximum?

Quoted 8 lines

I have done the following:

1. downloaded the latest kernel-source-2.4.20-28.9.rpm
2. pathed it with conntrack_pptp support from the patch-o-matic-20031219.tar.bz2
3. the kernel modules pptp_conntrack compiled fine
4. compiled iptables-1.2.9.tar.bz2 with KERNEL_DIR=/usr/src/linux-2.4 (wich contained the kernel-source-2.4.20-28.9 source)

that sounds perfectly fine.

Quoted 5 lines

If you could help me with some answers I would be very happy because we badly need pptp-client support over a our masquaraded connection.

1. What is do you mean by can only do NAT connecions from PNS to PAC. (what does PNS and PAC stand for?)

This is the terminology used in the PPTP specification, please look into the respective RFC's (RFC2637).

Quoted 3 lines

I assume:
PAC, PPTP Access Concentrator
PNS, PPTP Network Server

yes.

Quoted 7 lines

Note that this code currently has limitations
- can only NAT connections from PNS to PAC
- doesnt' support multiple calls within one session

The poptop Linux implementations the PNS=poptop and the windows-pptp-client is the PAC, right? (http://www.networksorcery.com/enp/rfc/rfc2637.txt)
I think I need a NAT translation from PAC to PNS, right?

no, according to the RFC, your windows client would be a PNS and the ppotop server a PAC. So the conntrack/nat helpers are exactly for the purpose you are trying to use them for.

Quoted 2 lines

2. Do you think will the conntrack_pptp module solve my problems or did I forget something?

no, in theory it should work. However, it could be that you are hitting some obscure bug that nobody else has yet experienced.

please also note that poptop is not able to deal with multiple incoming pptp sessions from the same ip address! At least the last time I looked at the sourcecode, it had no way of differentiating pptp calls by callID.

Quoted 4 lines

Thankyou very much for your time!
Kind regards,
Paul Boot,
The Netherlands.

Signature · 3 lines
- Harald Welte <[email protected]>               http://www.gnumonks.org/
============================================================================
Programming is like sex: One mistake and you have to support it your lifetime