Skip to contentSkip to conversation

PPTP through iptables firewall

DISCUSSION Rob Sterenborg 1 participant 1 message Feb 7, 2003

lore
Share & tools
lore
#0 lore raw
Quoted 11 lines

NB> connections involving GRE has changed from UNKNOWN to GRE. But NB> with this patch it is not possible to connect, now the windows NB> client only reach "verifying username and password" and then NB> times out.

I had the same problem. I also tried to connect from external IP located behind firewall without any rules. I couldnt connect to pptp server also [with timeout]. Then I recognized then unloading ip_nat_pptp module causes the connection could be achieved correct. [Other related modules ie. ip_conntrack_pptp, ip_conntrack_proto_gre doesn't influence connection].

Here too. I can compile the thing, but it won't work. I get messages in syslog like :

Feb  1 16:21:01 router kernel: ip_conntrack_pptp.c: bad csum
Feb  1 16:21:50 router last message repeated 3 times

The ip_conntrack|nat_pptp patch downloaded from www.impsec.org for kernel 2.4.17 worked for me, but I need to compile a newer kernel and I can't get it done anymore.

Is there someone who has got this working ??

Besides, isn't there anyone that hasn't got problems when compiling iptables-1.2.7a ? It complains about not having if_name and if_index defined in ipt_ROUTE.h. (plain kernel-2.4.20, patched with pom-20030107).
In ipt_ROUTE.h I don't see an if_index nor if_name, however there is an ifname. So I created the ifindex myself (unsigned int ifindex, it was somewhere in the past pom's). And in the libipt_ROUTE.c file (iptables package) I changed all instances if_name and if_index to ifname and ifindex.

I don't know if that was the right thing to do, but now iptables compiles and so far I don't have any problems with it.

Gr,
Rob