[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PPTP with OpenBSD and PoPToP...



Hi Jonas,

 I recompiled the port. Seems like I am missing something(Or the MoretonBay
site is missing some instructions.)

Looking at the /var/log/pptp I get the following:


###
ppp[pid]: Warning /etc/ppp/ppp.conf file not found
###

So I created it using the ppp.conf.samples file.

Now I get

###
pptp: Configuration label not found
ppp[pid]: Warning: Label pptp rejected -direct connection: Configuration
label not found
###

So I added a section called [pptp:] in there with the only command "set
speed 115200"
I commented out the "set device = /dev/cua0" and the "set dial= ???" stuff
in the [default:] section.

Now I get this:

###
Apr 13 05:35:01 devbed pptpd[4941]: CTRL: Client 192.168.100.106 control
connection started
Apr 13 05:35:01 devbed pptpd[4941]: CTRL: Starting call (launching pppd,
opening GRE)
Apr 13 05:35:01 devbed ppp[13643]: Phase: Using interface: tun0
Apr 13 05:35:01 devbed ppp[13643]: Phase: deflink: Created in closed state
Apr 13 05:35:01 devbed ppp[13643]: tun0: Command: default: set speed 115200
Apr 13 05:35:01 devbed ppp[13643]: tun0: Command: pptp: set speed 115200
Apr 13 05:35:01 devbed ppp[13643]: tun0: Phase: PPP Started (direct mode).
Apr 13 05:35:01 devbed ppp[13643]: tun0: Phase: bundle: Establish
Apr 13 05:35:01 devbed ppp[13643]: tun0: Phase: deflink: closed -> opening
Apr 13 05:35:01 devbed ppp[13643]: tun0: Phase: deflink: Connected!
Apr 13 05:35:01 devbed ppp[13643]: tun0: Phase: deflink: opening -> carrier
Apr 13 05:35:01 devbed ppp[13643]: tun0: Phase: deflink: carrier -> lcp
Apr 13 05:35:01 devbed ppp[13643]: tun0: LCP: FSM: Using "deflink" as a
transport
Apr 13 05:35:01 devbed ppp[13643]: tun0: LCP: deflink: State change
Initial --> Closed
Apr 13 05:35:01 devbed ppp[13643]: tun0: LCP: deflink: State change
Closed --> Stopped
Apr 13 05:35:02 devbed ppp[13643]: tun0: LCP: deflink: LayerStart
Apr 13 05:35:02 devbed ppp[13643]: tun0: LCP: deflink: SendConfigReq(1)
state = Stopped
Apr 13 05:35:02 devbed ppp[13643]: tun0: LCP:  ACFCOMP[2]
Apr 13 05:35:02 devbed ppp[13643]: tun0: LCP:  PROTOCOMP[2]
Apr 13 05:35:02 devbed ppp[13643]: tun0: LCP:  ACCMAP[6] 0x00000000
Apr 13 05:35:02 devbed ppp[13643]: tun0: LCP:  MRU[4] 1500
Apr 13 05:35:02 devbed ppp[13643]: tun0: LCP:  MAGICNUM[6] 0x24532acb
Apr 13 05:35:02 devbed ppp[13643]: tun0: LCP: deflink: State change
Stopped --> Req-Sent
Apr 13 05:35:05 devbed ppp[13643]: tun0: LCP: deflink: SendConfigReq(1)
state = Req-Sent
Apr 13 05:35:05 devbed ppp[13643]: tun0: LCP:  ACFCOMP[2]
Apr 13 05:35:05 devbed ppp[13643]: tun0: LCP:  PROTOCOMP[2]
Apr 13 05:35:05 devbed ppp[13643]: tun0: LCP:  ACCMAP[6] 0x00000000
Apr 13 05:35:05 devbed ppp[13643]: tun0: LCP:  MRU[4] 1500
Apr 13 05:35:05 devbed ppp[13643]: tun0: LCP:  MAGICNUM[6] 0x24532acb
Apr 13 05:35:08 devbed ppp[13643]: tun0: LCP: deflink: SendConfigReq(1)
state = Req-Sent
Apr 13 05:35:08 devbed ppp[13643]: tun0: LCP:  ACFCOMP[2]
Apr 13 05:35:08 devbed ppp[13643]: tun0: LCP:  PROTOCOMP[2]
Apr 13 05:35:08 devbed ppp[13643]: tun0: LCP:  ACCMAP[6] 0x00000000
Apr 13 05:35:08 devbed ppp[13643]: tun0: LCP:  MRU[4] 1500
Apr 13 05:35:08 devbed ppp[13643]: tun0: LCP:  MAGICNUM[6] 0x24532acb
Apr 13 05:35:11 devbed ppp[13643]: tun0: LCP: deflink: SendConfigReq(1)
state = Req-Sent
Apr 13 05:35:11 devbed ppp[13643]: tun0: LCP:  ACFCOMP[2]
Apr 13 05:35:11 devbed ppp[13643]: tun0: LCP:  PROTOCOMP[2]
Apr 13 05:35:11 devbed ppp[13643]: tun0: LCP:  ACCMAP[6] 0x00000000
Apr 13 05:35:11 devbed ppp[13643]: tun0: LCP:  MRU[4] 1500
Apr 13 05:35:11 devbed ppp[13643]: tun0: LCP:  MAGICNUM[6] 0x24532acb
Apr 13 05:35:14 devbed ppp[13643]: tun0: LCP: deflink: SendConfigReq(1)
state = Req-Sent
Apr 13 05:35:14 devbed ppp[13643]: tun0: LCP:  ACFCOMP[2]
Apr 13 05:35:14 devbed ppp[13643]: tun0: LCP:  PROTOCOMP[2]
Apr 13 05:35:14 devbed ppp[13643]: tun0: LCP:  ACCMAP[6] 0x00000000
Apr 13 05:35:14 devbed ppp[13643]: tun0: LCP:  MRU[4] 1500
Apr 13 05:35:14 devbed ppp[13643]: tun0: LCP:  MAGICNUM[6] 0x24532acb
Apr 13 05:35:17 devbed ppp[13643]: tun0: LCP: deflink: LayerFinish
Apr 13 05:35:17 devbed ppp[13643]: tun0: LCP: deflink: State change
Req-Sent --> Stopped
Apr 13 05:35:17 devbed ppp[13643]: tun0: LCP: deflink: State change
Stopped --> Closed
Apr 13 05:35:17 devbed ppp[13643]: tun0: LCP: deflink: State change
Closed --> Initial
Apr 13 05:35:17 devbed ppp[13643]: tun0: Phase: deflink: Disconnected!
Apr 13 05:35:17 devbed pptpd[4941]: GRE: read(fd=5,buffer=6534,len=8196)
from PTY failed: status = 0 error = No error
Apr 13 05:35:17 devbed ppp[13643]: tun0: Phase: deflink: Connect time: 16
secs: 0 octets in, 260 octets out
Apr 13 05:35:17 devbed pptpd[4941]: CTRL: PTY read or GRE write failed
(pty,gre)=(5,4)
Apr 13 05:35:17 devbed ppp[13643]: tun0: Phase:  total 16 bytes/sec, peak 20
bytes/sec on Thu Apr 13 05:35:05 2000
Apr 13 05:35:17 devbed pptpd[4941]: CTRL: Client 192.168.100.106 control
connection finished
Apr 13 05:35:17 devbed ppp[13643]: tun0: Phase: deflink: lcp -> closed
Apr 13 05:35:17 devbed ppp[13643]: tun0: Phase: bundle: Dead
Apr 13 05:35:17 devbed ppp[13643]: tun0: Phase: PPP Terminated (normal).


-----Original Message-----
From: Jonas Eriksson [mailto:je@interact.se]
Sent: Wednesday, April 12, 2000 5:18 PM
To: Patrick Ethier
Subject: RE: Win2k -> OpenBSD using isakmpd with x509 certificates.



Try to add this line to the Makefile in the port:

CONFIGURE_ARGS= --with-bsdppp

And recompile the port


Regards Jonas Eriksson

--
InterACT Lulea
Tel: +46 920 88803 - Fax: +46 920 88399
Current temp in Lulea/Sweden is -0.3C (31.5F)

On Wed, 12 Apr 2000, Patrick Ethier wrote:

>Date: Wed, 12 Apr 2000 13:59:03 -0400
>From: Patrick Ethier <drbones@darkelves.com>
>To: 'Jonas Eriksson' <je@interact.se>
>Subject: RE: Win2k -> OpenBSD using isakmpd with x509 certificates.
>
>Hi Jonas,
>
>
> I compiled pptp just fine. I installed the configuration files according
to
>http://www.moretonbay.com/vpn/setup_pptp_server.html .
>
>I run and get a daemon listening on port 1723...
>
>I configured the win98 box according to moretonbay's page also.
>
>I get this :
>pppd[3126]: Connect ppp0<-->/dev/ttyp0
>pptpd[9603]: CTRL: Error with select(), quitting
>pptpd[9603]: CTRL: Error with select(), quitting
>pppd[3126]: Modem hangup
>pppd[3126]: Connection terminated
>
>On the windows side, I get "Check your configuration and try again".
>
>Am I missing something here??? Maybe I need to patch pppd??? OBSD latest
>snapshot(As of yesterday) contains 2.3.5
>
>
>Thanks for your help on this...
>
>
>
>-----Original Message-----
>From: Jonas Eriksson [mailto:je@interact.se]
>Sent: Wednesday, April 12, 2000 3:18 AM
>To: Patrick Ethier
>Subject: RE: Win2k -> OpenBSD using isakmpd with x509 certificates.
>
>
>
>There is a PoPToP openbsd port.
>
>Not tested yet,
>
>http://fear.sekure.net/pptpd-1.0.0.tgz package
>http://fear.sekure.net/pptpd.tar.gz port
>
>The port is made by me.
>
>
>Mvh Jonas Eriksson
>
>--
>InterACT Lulea
>Tel: +46 920 88803 - Fax: +46 920 88399
>Current temp in Lulea/Sweden is 2.0C (35.7F)
>
>On Tue, 11 Apr 2000, Patrick Ethier wrote:
>
>>Date: Tue, 11 Apr 2000 16:45:14 -0400
>>From: Patrick Ethier <drbones@darkelves.com>
>>To: 'Markus Friedl' <markus.friedl@informatik.uni-erlangen.de>
>>Cc: misc@openbsd.org, tech@openbsd.org
>>Subject: RE: Win2k -> OpenBSD using isakmpd with x509 certificates.
>>
>>Hi Marcus,
>>
>> I finally got it working also... Here's the magic from your conf file
that
>>explains everything:
>>[QM-WINDOWS-XF]
>>TRANSFORM_ID=		DES
>>ENCAPSULATION_MODE=	TRANSPORT
>>AUTHENTICATION_ALGORITHM=	HMAC_SHA
>>
>>M$2000 doesn't support IPSec in Tunneling mode... That sucks.. I had
>figured
>>that out about a week ago. This means we'll have to port PoPToP to use
PPTP
>>as a tunnel. (I might be wrong here... please correct me if it is so...)
>>
>>Thanks, the screenshots will be a lot of help. Are you going to make that
>>into an HTML page that I can link to or should I add it straight into my
>VPN
>>resources on the SecureOps site???
>>
>>Patrick Ethier
>>patrick@secureops.com
>>
>>-----Original Message-----
>>From: Markus Friedl [mailto:markus.friedl@informatik.uni-erlangen.de]
>>Sent: Tuesday, April 11, 2000 1:57 PM
>>To: Patrick Ethier
>>Cc: 'Jonathan Fortin'; misc@openbsd.org; tech@openbsd.org
>>Subject: Re: Win2k -> OpenBSD using isakmpd with x509 certificates.
>>
>>
>>On Tue, Apr 04, 2000 at 01:27:48PM -0400, Patrick Ethier wrote:
>>> So far, nobody has set up IPSEC with w2k no matter what
>>> they were using on the other end.
>>
>>i make Win2k interop w/ OpenBSD-IKE using shared secrets, see
>>http://wwwcip.informatik.uni-erlangen.de/~msfriedl/ipsec-win2k/
>>for some screenshots and the openbsd-config i used.
>>
>>-m
>>
>>
>
>