VPN with MPD
dlr at rhinointernet.com
dlr at rhinointernet.com
Mon Aug 18 08:01:11 PDT 2003
I am trying to get MPD working on one of my freebsd machines to enable VPN
using PPTP. I have followed all of the instructions that I have found, but
continue to get an error during the setup of the connection. Any help, or
pointing to infromation would be appreciated.
Thanks,
david
FreeBSD Version: 4.7-Stable
MPD Version: 3.2, installed from the ports package on freebsd.org
Client Machine: w2K sp3
mpd.conf:
---------------
default:
load pptp
# PPTP Server
pptp:
new -i ng1 pptp pptp <<<-- I have had this as ng0 also
set iface disable on-demand
set iface enable proxy-arp
set iface idle 1800
set bundle disable multilink
#set link yes acfcomp protocomp
set link enable pap
set link enable chap
set link keep-alive 10 60
set ipcp yes vjcomp
set ipcp ranges 10.1.1.1/32 10.1.1.219/32
set ipcp dns 10.1.1.1 10.1.1.10
set ipcp nbns 10.1.2.250
#
# The five lines below enable Microsoft Point-to-Point encryption
# (MPPE) using the ng_mppc(8) netgraph node type.
#
set bundle enable compression
set bundle enable crypt-reqd
set ccp enable mppc
set ccp enable mpp-e40
set ccp enable mpp-e128
set ccp enable mpp-stateless
=======================================
mpd.links
--------------
pptp:
set link type pptp
set pptp self 12.x.x.x <- a real ip address is here
set pptp enable incoming
set pptp disable originate
========================================
mpd.secret
-----------------
mylogin mypassword
=========================================
output from mpd when ran in foreground:
Multi-link PPP for FreeBSD, by Archie L. Cobbs.
Based on iij-ppp, by Toshiharu OHNO.
mpd: pid 2247, version 3.2 (root at hellcat.itga.com.au 09:53 6-Apr-2001)
[pptp] ppp node is "mpd2247-pptp"
[pptp] using interface ng1
mpd: local IP address for PPTP is 12.x.x.x
[pptp:pptp] mpd: PPTP connection from 12.x.x.x:33451
pptp0: attached to connection with 12.x.x.x:33451
[pptp] IFACE: Open event
[pptp] IPCP: Open event
[pptp] IPCP: state change Initial --> Starting
[pptp] IPCP: LayerStart
[pptp] IPCP: Open event
[pptp] bundle: OPEN event in state CLOSED
[pptp] opening link "pptp"...
[pptp] link: OPEN event
[pptp] LCP: Open event
[pptp] LCP: state change Initial --> Starting
[pptp] LCP: LayerStart
[pptp] device: OPEN event in state DOWN
[pptp] attaching to peer's outgoing call
[pptp] can't connect ksocket node: Operation now in progress <<<-------
this looks like the error that is the problem
pptp0-0: killing channel
[pptp] PPTP call cancelled in state CONNECTING
pptp0: closing connection with 12.159.68.29:33451
[pptp] IFACE: Close event
[pptp] IPCP: Close event
[pptp] IPCP: state change Starting --> Initial
[pptp] IPCP: LayerFinish
[pptp] device is now in state OPENING
[pptp] bundle: CLOSE event in state OPENED
[pptp] closing link "pptp"...
[pptp] device: DOWN event in state OPENING
[pptp] device is now in state DOWN
[pptp] link: CLOSE event
[pptp] LCP: Close event
[pptp] LCP: state change Starting --> Initial
[pptp] LCP: LayerFinish
[pptp] device: DOWN event in state DOWN
[pptp] device is now in state DOWN
[pptp] link: DOWN event
[pptp] LCP: Down event
[pptp] device: CLOSE event in state DOWN
[pptp] device is now in state DOWN
[pptp] link: DOWN event
[pptp] LCP: Down event
[pptp] device: OPEN event in state DOWN
[pptp] pausing 9 seconds before open
[pptp] device is now in state DOWN
pptp0: invalid length 16 for type 4
pptp0: killing connection with 12.159.68.29:33451
[pptp] device: OPEN event in state DOWN
[pptp] pptp originate option is not enabled
[pptp] device is now in state OPENING
[pptp] device: DOWN event in state OPENING
[pptp] device is now in state DOWN
[pptp] link: DOWN event
[pptp] LCP: Down event
=====================================
output from kldstat:
Id Refs Address Size Name
1 9 0xc0100000 202b08 kernel
2 1 0xc1305000 3000 ng_socket.ko
3 7 0xc1309000 9000 netgraph.ko
4 1 0xc1316000 3000 ng_iface.ko
5 1 0xc1319000 6000 ng_ppp.ko
6 1 0xc1321000 4000 ng_bpf.ko
7 1 0xc1325000 4000 ng_vjc.ko
8 1 0xc1336000 4000 ng_pptpgre.ko
9 1 0xc133b000 4000 ng_ksocket.ko
More information about the freebsd-net
mailing list