From owner-freebsd-questions@FreeBSD.ORG Tue Mar 18 17:53:11 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 004501065670 for ; Tue, 18 Mar 2008 17:53:10 +0000 (UTC) (envelope-from jontheil@gmail.com) Received: from el-out-1112.google.com (el-out-1112.google.com [209.85.162.180]) by mx1.freebsd.org (Postfix) with ESMTP id B94C88FC18 for ; Tue, 18 Mar 2008 17:53:10 +0000 (UTC) (envelope-from jontheil@gmail.com) Received: by el-out-1112.google.com with SMTP id v27so13054ele.12 for ; Tue, 18 Mar 2008 10:53:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=X6zpPGS2Y62mwotBx0+H4lghcVnwT5B1Des5sGPhjEY=; b=SNwUAjZ08nYcT7HnHeiJZOtwIEPfd8iwesIQV5zmCX3nfcojfEo/ZVVUSEoAQgsj9qoRPygjWlJVGRDytDTF7q70yjcUs7874SXNvzQmwLwwoVxmJl+6CMcZwew6Y0PyWPl3ZBA+bFnrkfGXXlk0FHZOjnyYvKRU15NW6F2Anxg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=cuvokrin706J0BTeM2SgYadDHZ2ael92ggL31Yz3doyH7k7J3ZR8HhpdrYgDTtHki4mKzHcee4iEKsfiUWwfoxwSOh8ksgTWg56BEPvlWlPZz0X+5uDI5NKEaM8vd7VaXN5N05ijE079JwaXVY59kkI4u1xhwBJNoYF6Wpe5Fws= Received: by 10.115.77.1 with SMTP id e1mr2114805wal.103.1205862789137; Tue, 18 Mar 2008 10:53:09 -0700 (PDT) Received: by 10.114.168.6 with HTTP; Tue, 18 Mar 2008 10:53:08 -0700 (PDT) Message-ID: <8f82c35c0803181053l7328f9fauf35c87a994cd0060@mail.gmail.com> Date: Tue, 18 Mar 2008 18:53:08 +0100 From: "Jon Theil Nielsen" To: "Nikos Vassiliadis" In-Reply-To: <200803181630.48688.nvass@teledomenet.gr> MIME-Version: 1.0 References: <8f82c35c0803180528g31ce1280icf2d8fb3f51f52ef@mail.gmail.com> <200803181630.48688.nvass@teledomenet.gr> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: pptpd server on a Samba PDC 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: Tue, 18 Mar 2008 17:53:11 -0000 > > > Yes, this configuration guide you've read is for Linux, thus it will > use pppd by Paul Mackeras. pppd is in the base system(/usr/sbin/pppd), > but it's an older version than the Linux one, since most people on FreeBSD > use user-ppp(/usr/sbin/ppp). So, bad news first: > pppd probably won't work(at least won't work by copying > a configuration file you've found on the internet). I have many > doubts that FreeBSD's pppd can be used with pptp. > > The good news are, that poptop is supported(it's in the ports), > you just have to use user-ppp(which you seem to already use, since > the name of the process above is ppp). Isn't the pptp entry on > /etc/ppp/ppp.conf, installed from the port??? > Did you search the package for configuration samples? > > > > > > Does anyone have a working example of poptop-based vpn server > > > The pptp server/client of preference for a FreeBSD system, is in my humble > opinion net/mpd. I suggest you to use that. There many guides on "pptp > and mpd" lying around on the net. > > HTH, Nikos > Okay, I tried to install mpd, but now i doesn't seem to work ===============/usr/local/etc/mpd/mpd.conf======== default: load pptp1 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/mpd/mpd.linksf======== 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 ===============/etc/rc.conf======== .... mpd_enable="YES" gateway_enable="YES" .... And a /usr/local/etc/mpd/mpd.secret is also there. I can start the service, but don't see any port 1793 by typing netstat -an And ifconfig doesn't show any pptp1 Are there any obvious errors in this configuration? Regards, Jon