[pptp-server] Patch and a question for FreeBSD

Graham Dunn gdunn at inscriber.com
Fri May 12 13:44:45 CDT 2000


Hi ...

A small patch to get poptop v-1.1.1 to compile on freebsd 3.4-release:


--- pptpdefs.h.orig     Fri May 12 16:43:28 2000
+++ pptpdefs.h  Fri May 12 16:58:52 2000
@@ -19,6 +19,9 @@
 
 #include <sys/types.h>
   
+/* FreeBSD doesn't have this socket level defined in socket.h */
+#define SOL_IP                         0
+
/* PPTP ctrl message port */
#define PPTP_PORT                      1723

And now,

Question:

poptop v-1.1.1, freebsd 3.4-release

The authentication portion of the connection works, but it seems like pptpd 
then can't read from ppp (the userland version). This is with a win2k
client. The client complains about not being able to negotiate a PPP
control protocol with the server.

Any thoughts?

May 12 17:02:00 natted pptpd[10970]: Discarding out-of-order packet 0,
already have 0
May 12 17:02:00 natted ppp[10971]: Phase: Using interface: tun0 
May 12 17:02:00 natted ppp[10971]: Phase: deflink: Created in closed
state 
May 12 17:02:00 natted ppp[10971]: Phase: PPP Started (direct mode). 
May 12 17:02:00 natted ppp[10971]: Phase: bundle: Establish 
May 12 17:02:00 natted ppp[10971]: Phase: deflink: closed -> opening 
May 12 17:02:00 natted ppp[10971]: Phase: deflink: Connected! 
May 12 17:02:00 natted ppp[10971]: Phase: deflink: opening -> carrier 
May 12 17:02:00 natted ppp[10971]: Phase: deflink: carrier -> lcp 
May 12 17:02:02 natted pptpd[10970]: CTRL: Ignored a SET LINK INFO
packet with real ACCMs!
May 12 17:02:02 natted pptpd[10970]: CTRL: Ignored a SET LINK INFO
packet with real ACCMs!
May 12 17:02:02 natted ppp[10971]: Phase: bundle: Authenticate 
May 12 17:02:02 natted pptpd[10970]: CTRL: Ignored a SET LINK INFO
packet with real ACCMs!
May 12 17:02:02 natted ppp[10971]: Phase: deflink: his = none, mine =
CHAP 0x05 
May 12 17:02:02 natted ppp[10971]: Phase: Chap Output: CHALLENGE 
May 12 17:02:02 natted ppp[10971]: Phase: Chap Input: RESPONSE (16 bytes
from tester) 
May 12 17:02:02 natted ppp[10971]: Phase: Chap Output: SUCCESS 
May 12 17:02:02 natted pptpd[10970]: GRE: read error: Bad file
descriptor
May 12 17:02:02 natted ppp[10971]: Phase: deflink: lcp -> open 
May 12 17:02:02 natted ppp[10971]: Phase: bundle: Network 
May 12 17:02:02 natted ppp[10971]: Phase: deflink: read (0): Got zero
bytes 
May 12 17:02:02 natted ppp[10971]: Phase: deflink: open -> lcp 
May 12 17:02:02 natted pptpd[10970]: CTRL: Ignored a SET LINK INFO
packet with real ACCMs!
May 12 17:02:02 natted pptpd[10970]: GRE: read error: Bad file
descriptor
May 12 17:02:02 natted pptpd[10970]: CTRL: PTY read or GRE write failed
(pty,gre)=(-1,-1)
May 12 17:02:02 natted pptpd[10970]: CTRL: PTY read or GRE write failed
(pty,gre)=(-1,-1)
)May 12 17:02:02 natted ppp[10971]: Phase: bundle: Terminate 
)May 12 17:02:02 natted ppp[10971]: Phase: deflink: Disconnected! 
)May 12 17:02:02 natted ppp[10971]: Phase: deflink: Connect time: 2
)secs: 463 octets in, 496 octets out 
)May 12 17:02:02 natted ppp[10971]: Phase:  total 479 bytes/sec, peak
)319 bytes/sec on Fri May 12 17:02:02 2000 
)May 12 17:02:02 natted ppp[10971]: Phase: deflink: lcp -> closed 
)May 12 17:02:02 natted ppp[10971]: Phase: bundle: Dead 
)May 12 17:02:02 natted ppp[10971]: Phase: PPP Terminated (normal). 
)

--
  gdunn at inscriber.com	  Graham Dunn         || ||| | ||| |||| | |||| | 
  PGP Key fingerprint = 3F 56 12 9B 8A E1 77 CB  F0 62 94 B0 93 06 1E 88



More information about the pptp-server mailing list