Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Apr 2001 17:19:00 +1000 (EST)
From:      root@bytecraft.au.com (Charlie Root)
To:        freebsd-net@freebsd.org
Subject:   MPD setup problem
Message-ID:  <20010419071900.4D7BEBA27@spyder.bytecraft.au.com>

next in thread | raw e-mail | index | archive | help
Help ... What am I missing?

Given the attached mpd.conf & mpd.links files I create
the following netgraph. There is an obvious ommission
here.... there is no input to the ppp node ID 0000003f.

I am running a netgraph frame relay interface as ng0.

The mpd files create a ng1 node OK, but ngctl shows
no inputs to the ppp node.

The full map (frame and mpd) that develops is as follows


_FRAME RELAY INTERFACE_

[  sync_sr0  ]                  [  <unnamed>  ](dlci0) ------ (annexD)[ <unnamed> ]
[            ](rawdata) ------- [             ]                       [           ]
[  00000001  ]                  [  00000004   ]                       [ 00000006  ]
[  sync_sr   ]                  [ frame_relay ](dlci16) ----+         [    lmi    ]
                                                            |
                                                            |
                     +--------------------------------------+
                     |
                     |
                     +---- (rawdata)[ <unnamed> ]                       [   ng0    ]
                                    [           ](inet) --------- (inet)[          ]
                                    [  00000008 ]                       [ 0000000a ]
                                    [  rfc1490  ]                       [  iface   ]
                                                                      ip addr w.x.y.z



_MPD INTERFACE_

           [ mpd47081-frame- ](vjc_vjip) -------------- (vjip)[ <unnamed> ]
           [                 ](vjc_vjuncomp) ------ (vjuncomp)[           ]
           [                 ](vjc_vjcomp) ---------- (vjcomp)[ 00000041  ]
           [                 ](vjc_ip) ------------------ (ip)[    vjc    ]
           [    000003f      ](inet) ---------+
           [      ppp        ](bypass) ---+   |
                                          |   |
                                          |   |
     +------------------------------------+   |
     |                                        +--- (ppp)[ <unnamed> ]
     |                                                  [           ](iface) ----+
     +--- (bypass)[ <unnamed> ](demand) ---------- (mpd)[ 00000040  ]            |
                  [           ]                         [    bpf    ]            |
                  [ 0000003d  ]                                                  |
                  [  socket   ]                                                  |
                                                         +-----------------------+
                                                         |
                                                         |               [   ng1    ]
                                                         +-------- (inet)[          ]
                                                                         [ 0000003e ]
                                                                         [  iface   ]


Interface ng0 is IP address w.x.y.z and is the end of hte frame relay point-to-point
link to the internet.

The address a.b.c.d used in 'set pptp self a.b.c.d' is the registered IP of spyder
on its fxp0 interface.

This is the IP address of the target name used in the M$oft DUN VPN setup. 


The files

#################################################################
#
#	MPD configuration file
#
# This file defines the configuration for mpd: what the
# bundles are, what the links are in those bundles, how
# the interface should be configured, various PPP parameters,
# etc. It contains commands just as you would type them
# in at the console. A blank line ends an entry. Lines
# starting with a "#" are comments and get completely
# ignored.
#
#################################################################

#
# Default configuration is "pptp1"

default:
	load pptp1


#
# mpd as a PPTP server for M$ dial up networking clients
#
pptp1:
	new -i ng1 frame-pptp frame-pptp
	set iface disable on-demand
	set iface enable proxy-arp
	set iface idle 1800
	set bundle disable multilink
#	set bundle authname taylorm
	set log pptp3
	set link yes acfcomp protocomp
	set link no pap chap
	set link enable chap
	set link keep-alive 10 60
	set ipcp yes vjcomp
# require server to be .176 and remote laptop user to be .180
	set ipcp ranges 10.1.2.176/32 10.1.2.180/32
# our dns server
#	set ipcp dns 10.1.2.52
# our WINS servers
	set ipcp nbns 10.1.2.3 10.1.2.7
#
# The five lines below enable Microsoft Point-to-Point encryption
# (MPPE) using the ng_mppc(8) netgraph node type.
#
	set bundle enable compression
	set ccp yes mppc
	set ccp yes mpp-e40
	set ccp yes mpp-e128
	set ccp yes mpp-stateless


#################################################################
#
#	MPD links file
#
# In this file you define the various "links" that comprise
# a bundle. Each link corresponds to a single serial device.
# These are commands that could be typed into the console directly.
#
# This file should only contain configuration for a link if
# that configuration is specific to that particular link. That
# is, things like device name and bandwidth. Other generic link
# options # like LCP paramters belong in "mpd.conf".
#
# The first command for each link should be "set link type ..."
#
#################################################################

#
# Analog modem on COM1.
#   not in use yet

modem:
	set link type modem
	set modem device /dev/cuaa0


#
# For our PPTP server
#

frame-pptp:
        set link type pptp
        set pptp self a.b.c.d
        set pptp enable incoming
        set pptp disable originate


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010419071900.4D7BEBA27>