From owner-freebsd-net Fri May 24 17:10:45 2002 Delivered-To: freebsd-net@freebsd.org Received: from freebsd.schema.ca (freebsd.schema.ca [142.59.253.48]) by hub.freebsd.org (Postfix) with ESMTP id CB09F37B40E for ; Fri, 24 May 2002 17:10:36 -0700 (PDT) Received: from freebsd.schema.ca (localhost [127.0.0.1]) by freebsd.schema.ca (8.12.3/8.12.2) with ESMTP id g4P0AVWs029532; Fri, 24 May 2002 18:10:31 -0600 (MDT) (envelope-from pandaro@freebsd.schema.ca) Received: (from pandaro@localhost) by freebsd.schema.ca (8.12.3/8.12.3/Submit) id g4P0AUBp029531; Fri, 24 May 2002 18:10:30 -0600 (MDT) (envelope-from pandaro@freebsd.schema.ca) Date: Fri, 24 May 2002 18:10:30 -0600 From: "Mike A. Oligny" To: GM GG Cc: net@freebsd.org Subject: Re: mpd: pptp server Message-ID: <20020525001030.GA29518@freebsd.schema.ca> References: <20020524221842.GA29098@freebsd.schema.ca> <20020524224757.5028.qmail@web20701.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020524224757.5028.qmail@web20701.mail.yahoo.com> User-Agent: Mutt/1.3.99i Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org GM GG (gimbolino@yahoo.it) wrote: > Can you suggest a config for mpd used like a > pptp client ? It seems to me there is not such > config sample in the provided mpd.conf default. Sure, I'll include some that I've used successfully - client configs are old and haven't been tested recently - they were last used with mpd 3.6. server configs work very well with W2K/XP clients, however, I think my IP calculations in .secrets may be incorrect. Perhaps this isn't even necessary with 3.7 - my goal was to have one user always get the same IP - this worked fine, except if that user disconnected and someone else connected on same interface, they ended up with the reserved IP. Eventually, I'd end up with a couple clients connected as 192.168.0.210. :( I find the same sort of thing happens if I log in twice with the same username unless I have the client request a specific IP. Probably just need to play with numbers in .secrets file. Any feedback/corrections would be appreciated! -Mike ** `client' mpd.conf ** default: load vpn vpn: new -i ng1 vpn vpn set iface disable on-demand # set iface addrs 192.168.1.1 192.168.2.1 set iface idle 0 set iface route 192.168.1.0/24 set bundle disable multilink set bundle authname "" set bundle password "" set link yes acfcomp protocomp set link no pap # set link yes chap set link enable no-orig-auth set link keep-alive 10 75 set ipcp yes vjcomp set ipcp ranges 0.0.0.0/0 192.168.1.0/24 set bundle enable compression set ccp yes mppc set ccp yes mpp-e40 set ccp yes mpp-e128 set bundle enable crypt-reqd set ccp yes mpp-stateless open ** `client' mpd.links ** vpn: set link type pptp set pptp self set pptp peer set pptp enable originate incoming outcall ** `server' mpd.conf ** default: load client1 load client2 . . . load client9 pptp_common_settings: set iface disable on-demand set iface enable proxy-arp set iface idle 0 set bundle enable multilink set link yes acfcomp protocomp set link no pap chap set link enable chap set link keep-alive 25 60 set ipcp yes vjcomp set ipcp dns 192.168.0.102 set ipcp nbns 192.168.0.102 set bundle enable compression set ccp yes mppc # I've been trying mpp-compress every couple # months... it doesn't work for me. :) # set ccp yes mpp-compress set ccp yes mpp-e40 set ccp yes mpp-e128 set ccp yes mpp-stateless client1: new -i ng0 pptp1 pptp1 set ipcp ranges 192.168.0.101/32 192.168.0.201/32 load pptp_common_settings client2: new -i ng1 pptp2 pptp2 set ipcp ranges 192.168.0.101/32 192.168.0.202/32 load pptp_common_settings . . . client9: new -i ng8 pptp9 pptp9 set ipcp ranges 192.168.0.101/32 192.168.0.209/32 load pptp_common_settings ** `server' mpd.links ** pptp1: set link type pptp set pptp self 192.168.0.101 set pptp enable incoming set pptp disable originate pptp2: set link type pptp set pptp self 192.168.0.101 set pptp enable incoming set pptp disable originate . . . pptp9: set link type pptp set pptp self 192.168.0.101 set pptp enable incoming set pptp disable originate ** `server' mpd.secret ** user1 "password" 192.168.0.210/32 user2 "password" 192.168.0.216/29 user3 "password" 192.168.0.224/29 user4 "password" 192.168.0.232/29 user5 "password" 192.168.0.240/29 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message