Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Jan 2000 10:47:11 -0400 (AST)
From:      Christian Taylor <chtaylor@phazer.org>
To:        freebsd-questions@FreeBSD.org
Subject:   VPN with poptop pptpd
Message-ID:  <Pine.BSF.4.10.10001061036030.1249-100000@nova.phazer.org>

next in thread | raw e-mail | index | archive | help

Hi,

I'm trying to set up my 3.4-stable box to be a pptp server.  So far,
things aren't going well.  I've tried poptop from the ports, as well as
compiling it myself from the original tarball (with both standard ppp, and
--with-bsdppp), and I always seem to get the same result:

Jan  6 09:25:55 nova pptpd[312]: GRE: read(fd=5,buffer=804d900,len=8196)
from PTY failed: status = 0 error = No error

On the Windows 98 box I'm using to connect, I get disconnected with Error
650, during the Verifying Username and Password phase.  The ppp logs
indicate the problem occurs with the LCP phase:

Jan  6 09:52:51 nova ppp[1161]: Phase: Using interface: tun0 
Jan  6 09:52:51 nova ppp[1161]: Phase: deflink: Created in closed state 
Jan  6 09:52:51 nova ppp[1161]: Phase: PPP Started (direct mode). 
Jan  6 09:52:52 nova ppp[1161]: Phase: bundle: Establish 
Jan  6 09:52:52 nova ppp[1161]: Phase: deflink: closed -> opening 
Jan  6 09:52:52 nova ppp[1161]: Phase: deflink: Connected! 
Jan  6 09:52:52 nova ppp[1161]: Phase: deflink: opening -> carrier 
Jan  6 09:52:52 nova ppp[1161]: Phase: deflink: carrier -> lcp 
Jan  6 09:53:08 nova ppp[1161]: Phase: deflink: Disconnected! 
Jan  6 09:53:08 nova ppp[1161]: Phase: deflink: Connect time: 16 secs: 0
octets 
in, 110 octets out 
Jan  6 09:53:08 nova ppp[1161]: Phase:  total 6 bytes/sec, peak 8
bytes/sec on T
hu Jan  6 09:53:08 2000 
Jan  6 09:53:08 nova ppp[1161]: Phase: deflink: lcp -> closed 
Jan  6 09:53:08 nova ppp[1161]: Phase: bundle: Dead 
Jan  6 09:53:08 nova ppp[1161]: Phase: PPP Terminated (normal). 

If I tail -f the logs, it hangs for a few seconds on the carrier -> lcp
line, then disconnects.  I created a ppp log in Windows, which wasn't all
that helpful, other than to say that it was also failing in the LCP phase.

Looking at the pptpd source code, the problem appears to be resulting from
a read() call that returned 0.  The man page for read(2) says that it will
return 0 at EOF.  So it basically looks like pptpd is never receiving the
LCP information that Windows is sending it.

I have tried all possible combinations of config options on both the
Windows box and on my FreeBSD box, with no luck at all.  If anyone has any
suggestions, or some working config files, or anything at all that might
help get this to work, I'd really appreciate hearing from you!

 -Christian

--
Christian Taylor  
christian@phazer.org



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.10001061036030.1249-100000>