OpenWrt Forum Archive

Topic: [solved]Weird 619 error when connecting openwrt PPTP server

The content of this topic has been archived on 21 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi all,
I have installed a pptpd sever on my router. When I tried to establish a VPN-connection (Windows 8.1) which failed with 619 errors. I am sure that I have allowed 1723 and gre to pass through. Dump details are as follow

130.179.66.1    24.77.238.111    TCP    66    64478 > pptp [SYN] Seq=0 Win=8192 Len=0 MSS=1260 WS=256 SACK_PERM=1
24.77.238.111    130.179.66.1    TCP    60    pptp > 64478 [SYN, ACK] Seq=0 Ack=1 Win=32120 Len=0 MSS=1460
130.179.66.1    24.77.238.111    TCP    54    64478 > pptp [ACK] Seq=1 Ack=1 Win=65520 Len=0
130.179.66.1    24.77.238.111    PPTP    210    Start-Control-Connection-Request
24.77.238.111    130.179.66.1    TCP    60    pptp > 64478 [ACK] Seq=1 Ack=157 Win=31964 Len=0
24.77.238.111    130.179.66.1    PPTP    210    Start-Control-Connection-Reply
130.179.66.1    24.77.238.111    PPTP    222    Outgoing-Call-Request
24.77.238.111    130.179.66.1    TCP    60    pptp > 64478 [ACK] Seq=157 Ack=325 Win=31952 Len=0
24.77.238.111    130.179.66.1    PPTP    86    Outgoing-Call-Reply
130.179.66.1    24.77.238.111    PPTP    78    Set-Link-Info
24.77.238.111    130.179.66.1    TCP    60    pptp > 64478 [ACK] Seq=189 Ack=349 Win=32096 Len=0
130.179.66.1    24.77.238.111    PPP LCP  71    Configuration Request
24.77.238.111    130.179.66.1    TCP    60    pptp > 64478 [FIN, ACK] Seq=189 Ack=349 Win=32120 Len=0
130.179.66.1    24.77.238.111    TCP    54    64478 > pptp [ACK] Seq=349 Ack=190 Win=65332 Len=0
130.179.66.1    24.77.238.111    TCP    54    64478 > pptp [FIN, ACK] Seq=349 Ack=190 Win=65332 Len=0 
24.77.238.111    130.179.66.1    TCP    60    pptp > 64478 [ACK] Seq=190 Ack=350 Win=32120 Len=0

Debug log file is also empty.

Then I tried pptpd -c /tmp/etc/pptpd.conf -D. By using -D to delegate IP, I successfully connected to the pptp server. That's really weird! Any one who can explain this?
Any help much appreciated!
Mark Connor


[SOLVED]
This problem may be introduced by PPTPD version 1.3.4. After I rebuilded PPTPD v1.4.0 and ran it in my router, problem was solved.

(Last edited by lartely on 4 Apr 2014, 19:28)

I'm having the same (I think) issue with pptp 1.3.4 being buggy not letting me connect, where did you find instructions on how to build 1.4 for yourself?

ergoen wrote:

I'm having the same (I think) issue with pptp 1.3.4 being buggy not letting me connect, where did you find instructions on how to build 1.4 for yourself?

Well. You can follow http://wiki.openwrt.org/doc/devel/packages to build your own packages (of course, you should build SDK first http://wiki.openwrt.org/doc/howto/build). One thing should be mentioned is that you might be not able to compile a plugin named pptpd-logwtmp.c. That's okay, just delete this .c file and compile.

Dear lartely, could you please add you fix to openwrt? That would be great wink I'm stuck at non working pptpd too sad

nozombian wrote:

Dear lartely, could you please add you fix to openwrt? That would be great wink I'm stuck at non working pptpd too sad

Dear nozombian, I know the reason why pptpd 1.4.0 can't compile in openwrt truck. As I said, a plugin need pptp.h, which is not include in openwrt truck. If your device's architecture is ar71xx, you can use my compiled package. https://docs.google.com/file/d/0B-ZiI5f … Uxxek5Penc Or you can follow 'how to build a package' to build one by yourself. By the way, it's recommended to use openvpn. It's easier to deploy.

(Last edited by lartely on 18 Apr 2014, 04:07)

Thank you for reply and the package, I'll try it. I like to compile images myself, because it saves valuable flash space, so I will have to learn something new then. But I prefer things simple, just check what I need in menuconfig and someone should fix that anyway wink If I could do that, I'd do it, but I'm just a BFU. Btw. the reason why I prefer pptpd is the throughpout, which is way better than openvpn.

(Last edited by nozombian on 18 Apr 2014, 08:40)

Thanks for the package, works nicely on my router as well! (This way I didn't have to set up a build environment tongue)

nozombian wrote:

Thank you for reply and the package, I'll try it. I like to compile images myself, because it saves valuable flash space, so I will have to learn something new then. But I prefer things simple, just check what I need in menuconfig and someone should fix that anyway wink If I could do that, I'd do it, but I'm just a BFU. Btw. the reason why I prefer pptpd is the throughpout, which is way better than openvpn.

I can post my solution. But I don't know how to submit patch.
You can locate at feeds/packages/net/pptpd/, do these changes in Makefile as following.   

Index: Makefile
===================================================================
--- Makefile    (revision 40528)
+++ Makefile    (working copy)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=pptpd
-PKG_VERSION:=1.3.4
-PKG_RELEASE:=2
+PKG_VERSION:=1.4.0
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=@SF/poptop
-PKG_MD5SUM:=b38df9c431041922c997c1148bedf591
+PKG_MD5SUM:=36f9f45c6ffa92bc3b6e24ae2d053505
 
 PKG_INSTALL:=1

Then locate at feeds/packages/net/pptpd/patches/, delete 001-bad_pqueue_debug.patch and 003-opt_flags.patch, just leave 002-makefile_fix.patch. Then use menuconfig, maybe u can solve it.

(Last edited by lartely on 18 Apr 2014, 19:05)

The discussion might have continued from here.