Thanks all for the help, but I am still getting stuck at the error:

PPP: tun0: Warning: chat script failed
PPTP: log[decaps_hdlc:pptp_gre.c:129]: short read (0): invalid argument

I am using the stock ppp.conf sample file with the below text appended and
values changed to match my environment, but upon running the 'ppp
-background pptpclient' command, I get the above errors.  I'm using the pptp
version from the packages and have also tried compiling my own from source
(1.7.0) with no success.  Although this may be documented well, there
doesn't seem to be a clear concise howto or mini-howto for setting it up
with all the software together.

Thanks again,
Logical_1

-----Original Message-----
From: Mark Rolen [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 02, 2005 9:38 PM
To: Logical One
Subject: Re: PPTP in 3.7

I'm writing this assuming you're connecting to a MS VPN server on the other
end?  The default on OpenBSD seems to be to use pppd, instead of ppp, and
the later is the one that supports a MS VPN connection. First, install the
pptp package for OpenBSD. Then, in /etc/ppp/ppp.conf, put:

pptpclient:
set device "!/usr/local/sbin/pptp <ip or host name of your VPN server>
--nolaunchpppd"
set authname <my username>
set authkey <my password>
set mtu max 1490
set mru max 1490
set mppe 40 stateless
set timeout 60
disable pap
disable chap
accept chap81
disable ipv6cp
disable deflate pred1
deny deflate pred1
set login
set ifaddr 10.10.10.100/0 10.10.10.10/0 255.255.255.255 0.0.0.0

For the "authname" parameter, if you need to include a domain, ala
"nerdish\mark", use two backslashes instead of one:  nerdish\\mark.  I found
that the MS VPN server I was connecting to didn't require the domain at all,
just needed the valid username and password to successfully connect.

Then, for a 'manual' connect, do "ppp -background pptpclient", or to have
ppp automatically establish the connection whenever traffic tries to use one
of the routes you've at your tunnel, do "ppp -auto pptpclient".

For me, adding routes via ppp.conf didn't seem to work to swell. 
Instead, there's a ppp.linkup file that works much better.  I believe
there's an example file in /etc/ppp/.

HTH,
Mark


Logical One wrote:

>I am trying to find some current documentation or pointers on how to 
>setup a PPTP connection from my OpenBSD 3.7 firewall to my work VPN running
PPTP.
>I've seen quite a few things, but most are outdated or conflicting in 
>the instructions they give.  I have seen some references to the kernel 
>supporting this functionality natively while other say that recompiling 
>the kernel is necessary and still others say a third party program is 
>needed.  I am just looking for somewhere to start that has current 
>information or maybe even a copy of the configs from someone who has 
>set this up before.  I'd also like to find information on what settings 
>are needed in pf if a PPTP connection is used, but the networks is 
>bridges are using the same addressing scheme.  I also need to know how 
>to configure the router
>(OpenBSD) to pass traffic to certain addresses out the VPN connection, 
>others back into the LAN, and the rest out my cable connection.  I need 
>to know how to configure the VPN so that it is not my default gateway 
>out since my home connection is much faster than the T1 at my office 
>where the VPN connects.
>
>Thanks for any pointers, hints, advice, configs or whatever else anyone 
>has to contribute and I'm sorry for being a bother, but while the 
>information is out there, I have been unable to find what is relevant to my
config.
>
>Thanks,
>Logical_1

Reply via email to