I'm trying to connect my Mac to my FreeBSD 7.3 RELEASE PPTP VPN running mpd5. The server sits behind a Comcast Gateway, GRE and PPTP are forwarded to the FreeBSD box. I can connect my Windows client to the FreeBSD mpd5 PPTP VPN just fine. I can connect this Mac to a m0n0wall PPTP VPN without trouble. My research tells me I need the mpd5 PPTP VPN to support mppe-128, mschap-v2 and a stateless connection. I read the mpd5 manual and tried to enable the required options, but couldn't get it right. Please see my config and sample errors below. Can anyone provide a sample config that works with Snow Leopard? BTW, my iPhone connects without trouble.
My Config:
Sample mpd5 server errors:
SNIPET 1
SNIPET 2
Sample client log:
My Config:
Code:
startup:
# set user adminuser adminpass admin
# set console self 127.0.0.1 5005
# set console open
# set web self 0.0.0.0 5006
# set web open
default:
load pptp_server
pptp_server:
set ippool add pool1 10.1.10.50 10.1.10.58
create bundle template MYVPN
set iface enable proxy-arp
set iface idle 1800
set iface enable tcpmssfix
set ipcp yes vjcomp
set ipcp ranges 10.1.10.253/32 ippool pool1
set ipcp dns 10.1.10.1
set bundle enable compression
set ccp yes mppc
set mppc yes e40
set mppc yes e128
set mppc yes stateless
# START TEST
set ccp yes mpp
set ccp yes mpp-e128
set ccp yes mpp-stateless
set bundle enable crypt-reqd
set link yes chap-msv2
# END TEST
create link template MYVPN pptp
set link action bundle MYVPN
set link enable multilink
set link yes acfcomp protocomp
set link no pap chap
set link enable chap
set link keep-alive 10 60
set link mtu 1460
set pptp self 10.1.10.253
set link enable incoming
Sample mpd5 server errors:
SNIPET 1
Code:
Jan 11 22:10:35 VPN mpd5: option "mpp-e128" unknown
Jan 11 22:10:35 VPN mpd5: option "mpp-e128" unknown
Jan 11 22:10:35 VPN mpd5: option "mpp-stateless" unknown
Jan 11 22:10:35 VPN mpd5: option "mpp-stateless" unknown
Jan 11 22:10:35 VPN mpd5: mpd.conf:31: Incorrect context for: 'set link accept chap-msv2'
SNIPET 2
Code:
Jan 11 21:33:20 VPN mpd5: process 30947 started, version 5.5 (root@localhost 12:52 10-Jan-2011)
Jan 11 21:33:20 VPN mpd5: CONSOLE: listening on 127.0.0.1 5005
Jan 11 21:33:20 VPN mpd5: web: listening on 0.0.0.0 5006
Jan 11 21:33:20 VPN mpd5: PPTP: waiting for connection on 10.1.10.253 1723
Jan 11 21:33:20 VPN mpd5: mpd.conf:37: Incorrect context for: 'set ccp accept encryption'
Jan 11 21:33:20 VPN mpd5: mpd.conf:38: Incorrect context for: 'set ccp accept mpp-stateless'
Jan 11 21:33:20 VPN mpd5: mpd.conf:39: Incorrect context for: 'set ccp accept mpp-e128'
Sample client log:
Code:
Tue Jan 11 22:22:28 2011 : PPTP connecting to server 'XXX.XXX.XXX.XXX' (XXX.XXX.XXX.XXX)...
Tue Jan 11 22:22:28 2011 : PPTP connection established.
Tue Jan 11 22:22:28 2011 : using link 0
Tue Jan 11 22:22:28 2011 : Using interface ppp0
Tue Jan 11 22:22:28 2011 : Connect: ppp0 <--> socket[34]
Tue Jan 11 22:22:28 2011 : sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x242f9213> <pcomp> <accomp>]
Tue Jan 11 22:22:31 2011 : sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x242f9213> <pcomp> <accomp>]
Tue Jan 11 22:22:34 2011 : sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x242f9213> <pcomp> <accomp>]
Tue Jan 11 22:22:37 2011 : sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x242f9213> <pcomp> <accomp>]
Tue Jan 11 22:22:40 2011 : sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x242f9213> <pcomp> <accomp>]
Tue Jan 11 22:22:43 2011 : sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x242f9213> <pcomp> <accomp>]
Tue Jan 11 22:22:46 2011 : sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x242f9213> <pcomp> <accomp>]
Tue Jan 11 22:22:48 2011 : PPTP received Call Disconnect Notify message
Tue Jan 11 22:22:58 2011 : PPTP received unexpected message type = 6699
Tue Jan 11 22:22:58 2011 : sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x242f9213> <pcomp> <accomp>]
Tue Jan 11 22:23:01 2011 : PPTP error when reading socket : EOF
Tue Jan 11 22:23:01 2011 : PPTP error when reading header : read -1, expected 12 bytes
Tue Jan 11 22:23:01 2011 : PPTP hangup
Tue Jan 11 22:23:01 2011 : Connection terminated.
Tue Jan 11 22:23:01 2011 : PPTP disconnecting...
Tue Jan 11 22:23:01 2011 : PPTP disconnected