From owner-freebsd-questions@FreeBSD.ORG Thu Mar 20 03:00:04 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EECDC106566B; Thu, 20 Mar 2008 03:00:04 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from gaia.nimnet.asn.au (nimbin.lnk.telstra.net [139.130.45.143]) by mx1.freebsd.org (Postfix) with ESMTP id 083CE8FC19; Thu, 20 Mar 2008 03:00:02 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from localhost (smithi@localhost) by gaia.nimnet.asn.au (8.8.8/8.8.8R1.5) with SMTP id NAA28553; Thu, 20 Mar 2008 13:59:55 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Thu, 20 Mar 2008 13:59:54 +1100 (EST) From: Ian Smith To: Jon Theil Nielsen In-Reply-To: <20080319035315.BDD211065671@hub.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: mav@freebsd.org, freebsd-questions@freebsd.org Subject: Re: mpd pptp server? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Mar 2008 03:00:05 -0000 On Wed, 19 Mar 2008 00:43:58 +0100 Jon Theil Nielsen wrote: > > I have tried some different ways to make a working VPN server on FreeBSD 7.0. > The main goal is to make it possible for Windows clients to access their > Samba home shares. I'm not sure if mpd is the best solution, but I will give > it a try. > I have installed /usr/ports/mpd4 and have the following configuration: You'll do much better in freebsd-net@ with this. I've copied Alexander Motin, current author/maintainer, as he may not be watching questions@. > ==============/usr/local/etc/mpd4/mpd.conf============ > startup: > Stuff like configuring the console and/or web interface, logging etc. > default: > load pptp1 > I'm not sure whether leading whitespace on non-label lines is still required as with ppp.conf, but it can't hurt to follow the examples. > pptp1: > new -i ng0 pptp1 pptp1 > set iface disable on-demand > set iface enable proxy-arp > set iface idle 0 > set iface enable tcpmssfix > set bundle enable 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.1.4/32 192.168.1.151/32 > set ipcp dns 192.168.1.4 > set ipcp nbns 192.168.1.4 > set link disable pap > set bundle enable compression > set ccp yes mppc > #set ccp yes mpp-e40 > set ccp yes mpp-e128 > set ccp yes mpp-stateless > #set bundle enable crypt-reqd > > ==============/usr/local/etc/mpd4/mpd.linksf============ I assume 'mpd.linksf' is a typo .. > pptp1: > set link type pptp ## define the link type protocol as PPTP > set pptp self 192.168.1.4 ## define the IP address on which MPD will run > set pptp enable incoming ## define the connection as Incoming > set pptp disable originate ## enables PPTP connection for communication with the client > > And then I also have a mpd.secrets file of course. > > I can start the service, but I don't see any pptp interface after an > ifconfig command. And netstat -an does not show any port 1723 listening. > > Do I need to have a customized kernel to make it work? Or are there any > obvious errors in the above configuration? Can't help with pptp, I only use pppoe, but have posted this to bring it to Alexander's attention. He'll most likely want to see some logging .. cheers, Ian