Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Jul 2002 10:22:13 +0200
From:      "Peter J. Blok" <Peter.Blok@inter.NL.net>
To:        freebsd-net@freebsd.org
Subject:   mpd netgraph pptp server
Message-ID:  <200207011022.13398.Peter.Blok@inter.NL.net>

next in thread | raw e-mail | index | archive | help

--------------Boundary-00=_1X9KWS7IL37ZUWTQVY8I
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 8bit

Hi,

I have a gateway/firewall which is the spider in the web for different IP 
segments. From two segments 192.168.2.0/24 and 192.168.10.0/24 I am trying to 
setup PPTP tunnels. I have two different pptp sections (pptp1 and pptp2) in 
both mpd.conf and mpd.links with unique names. Each pptp section has its own 
"pptp self" listen address.

The problem is that the mpd daemon only listens on the first pptp (pptp1) 
section and doesn't listen on the 2nd (pptp2). When I load pptp2 first before 
pptp1 it is the other way around. I am using sockstat -l to confirm where mpd 
is listening on?

Am I doing something wrong here? See attachments

Thx,

Peter
--------------Boundary-00=_1X9KWS7IL37ZUWTQVY8I
Content-Type: text/plain;
  charset="us-ascii";
  name="mpd.conf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="mpd.conf"

default:
	load pptp1
	load pptp2


pptp1:
	new -i ng1 pptp1 pptp1
	log +auth +ccp +chat +fsm +iface +pptp +ipcp +lcp +link +phys
	set iface disable on-demand
	set iface enable proxy-arp
	set iface idle 0
	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.10.1/32 192.168.10.2/32
	set ipcp dns 192.168.1.1
	set ipcp nbns 192.168.1.135
	set bundle enable compression
	set ccp yes mppc

pptp2:
	new -i ng2 pptp2 pptp2
	log +auth +ccp +chat +fsm +iface +pptp +ipcp +lcp +link +phys
	set iface disable on-demand
	set iface enable proxy-arp
	set iface idle 0
	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.2.1/32 192.168.2.2/32
	set ipcp dns 192.168.2.1
	set ipcp nbns 192.168.2.1
	set bundle enable compression
	set ccp yes mppc

--------------Boundary-00=_1X9KWS7IL37ZUWTQVY8I
Content-Type: text/plain;
  charset="us-ascii";
  name="mpd.links"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="mpd.links"

pptp1:
        set link type pptp
        set pptp self 192.168.10.1
        set pptp enable incoming
        set pptp disable originate

pptp2:
        set link type pptp
        set pptp self 192.168.2.1
        set pptp enable incoming
        set pptp disable originate

--------------Boundary-00=_1X9KWS7IL37ZUWTQVY8I--


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?200207011022.13398.Peter.Blok>