Date: Mon, 4 Mar 2002 09:48:38 -0500 (EST) From: Ryan Morris <ryan@egate.net> To: <freebsd-net@freebsd.org> Cc: FreeBSD User Questions List <freebsd-questions@freebsd.org> Subject: Re: Multiple connections to MPD-netgraph as PPTP server Message-ID: <Pine.BSF.4.32.0203040936510.25249-100000@odin.egate.net> In-Reply-To: <1015112907.73601.9.camel@shumai.marcuscom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
I solved my own problem... it turns out that my naming conventions caused
an issue when MPD labelled the PPP node. It truncated the bundle names at
8 characters, and since mine were 8 characters plus a number following the
truncated names for all the links were identical, and it refused to load
them.
It was naming them like so:
[pptp0] ppp node is "mpd50391-pptpbund" -- should have been
mpd50391-pptpbundle0
[pptp1] ppp node is "mpd50391-pptpbund" -- should have been
mpd50391-pptpbundle1
Now it names them like so:
"mpd50391-pptp0"
"mpd50391-pptp1"
in my mpd.conf I changed this:
----------
pptp0:
new -i ng0 pptpbundle0 pptplink0
...
pptp1:
new -i ng1 pptpbundle1 pptplink1
...
----------
to this:
----------
pptp0:
new -i ng0 pptp0 pptplink0
...
pptp1:
new -i ng1 pptp1 pptplink1
...
----------
And now it works fine :)
So the moral of the story is: don't make your bundle names identical over
8 characters...
Thanks for everyone's help (especially Julian for his method to simplify
the mpd.conf file!)
Best regards,
Ryan Morris
---
"Some mornings, it's just not worth chewing through the leather straps."
- Emo Philips
On 2 Mar 2002, Joe Clarke wrote:
> On Sat, 2002-03-02 at 18:25, Michele Possamai wrote:
> > What if you change the self ipaddress in mpd.links?
> > they are the same in both connections
>
> In my setup the pptp self address is always the same, but it isn't the
> same address I use as the server VPN endpoint address.
>
> For my setup, I use the following in mpd.conf:
>
> load pptpuser1
> load pptpuser2
>
> pptpuser1:
> new -i ng0 pptp1 pptp1
> 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 no pap chap
> set link enable chap
> set link keep-alive 10 60
> set ipcp yes vjcomp
> set ipcp ranges 192.168.100.1/32 192.168.100.246/32
> set ipcp dns 192.168.100.1
> set ipcp nbns 192.168.100.1
> set bundle enable compression
> set ccp yes mppc
> set ccp yes mpp-e40
> set ccp yes mpp-e128
> set ccp yes mpp-stateless
>
> pptpuser2:
> new -i ng1 pptp2 pptp2
> 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 no pap chap
> set link enable chap
> set link keep-alive 10 60
> set ipcp yes vjcomp
> set ipcp ranges 192.168.100.1/32 192.168.100.247/32
> set ipcp dns 192.168.100.1
> set ipcp nbns 192.168.100.1
> set bundle enable compression
> set ccp yes mppc
> set ccp yes mpp-e40
> set ccp yes mpp-e128
> set ccp yes mpp-stateless
>
> Then, for the .links entries:
>
> pptp1:
> set link type pptp
> set pptp self 63.x.x.x
> set pptp enable incoming
> set pptp disable originate
>
> pptp2:
> set link type pptp
> set pptp self 63.x.x.x
> set pptp enable incoming
> set pptp disable originate
>
> The 63.x.x.x address is the public external address, and 192.168.100.1
> is my server VPN endpoint address as well as my internal IP address on
> my LAN.
>
> Joe
>
> >
> > On Fri, 1 Mar 2002, Ryan Morris wrote:
> >
> > > Hello everyone,
> > >
> > > I recently (successfully) configured MPD-netgraph as a pptp server on my
> > > FreeBSD machine. It works great... for one user. When I change my
> > > configuration to support multiple PPTP bundles/links I get the following
> > > error when starting mpd:
> > >
> > > bsd# mpd
> > > Multi-link PPP for FreeBSD, by Archie L. Cobbs.
> > > Based on iij-ppp, by Toshiharu OHNO.
> > > mpd: pid 518, version 3.7 (root@bsd.imagineering.ca 16:39 28-Feb-2002)
> > > [pptpbundle0] ppp node is "mpd518-pptpbund"
> > > mpd: local IP address for PPTP is 192.168.0.253
> > > [pptpbundle0] using interface ng0
> > > [pptpbundle1] can't name ppp node: Address already in use
> > > [pptpbundle1] netgraph initialization failed
> > >
> > > I have varied the IP address assignments in my configuration files, and
> > > examples on the web have duplicated IP addresses between bundles without
> > > causing this problem.
> > >
> > > Does this make reference to the ppp node name (mpd518-pptpbund)? And if
> > > so, how do I change what the ppp node name will be?
> > >
> > > Best regards,
> > >
> > > Ryan Morris
> > >
> > >
> > > Here are my configuration files:
> > > ---
> > > mpd.conf:
> > >
> > > default:
> > > load pptp0
> > > load pptp1
> > >
> > > pptp0:
> > > new -i ng0 pptpbundle0 pptplink0
> > > 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 no pap chap
> > > set link enable chap
> > > set link keep-alive 10 60
> > > set ipcp yes vjcomp
> > > set ipcp ranges 192.168.0.253/32 192.168.0.128/29
> > > set ipcp dns 192.168.0.1
> > > set ipcp nbns 192.168.0.253
> > > #Enable Microsoft Point-to-Point Encryption:
> > > set bundle enable compression
> > > set ccp yes mppc
> > > set ccp no mpp-e40
> > > set ccp yes mpp-e128
> > > set ccp no mpp-stateless
> > >
> > > pptp1:
> > > new -i ng1 pptpbundle1 pptplink1
> > > 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 no pap chap
> > > set link enable chap
> > > set link keep-alive 10 60
> > > set ipcp yes vjcomp
> > > set ipcp ranges 192.168.0.252/32 192.168.0.128/29
> > > set ipcp dns 192.168.0.1
> > > set ipcp nbns 192.168.0.253
> > > #Enable Microsoft Point-to-Point Encryption:
> > > set bundle enable compression
> > > set ccp yes mppc
> > > set ccp no mpp-e40
> > > set ccp yes mpp-e128
> > > set ccp no mpp-stateless
> > >
> > > # END
> > >
> > > ---
> > > mpd.links:
> > >
> > > pptplink0:
> > > set link type pptp
> > > set pptp self 192.168.0.253
> > > set pptp enable incoming
> > > set pptp disable originate
> > >
> > > pptplink1:
> > > set link type pptp
> > > set pptp self 192.168.0.253
> > > set pptp enable incoming
> > > set pptp disable originate
> > >
> > > #END
> > >
> > > ---
> > > "Some mornings, it's just not worth chewing through the leather straps."
> > > - Emo Philips
> > >
> > >
> > > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > > with "unsubscribe freebsd-net" in the body of the message
> > >
> > >
> >
> >
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-questions" in the body of the message
> >
>
>
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?Pine.BSF.4.32.0203040936510.25249-100000>
