From owner-freebsd-questions@FreeBSD.ORG Sun Feb 3 00:23:07 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 E528A16A419 for ; Sun, 3 Feb 2008 00:23:07 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from cmail.optima.ua (cmail.optima.ua [195.248.191.121]) by mx1.freebsd.org (Postfix) with ESMTP id 2937713C442 for ; Sun, 3 Feb 2008 00:23:06 +0000 (UTC) (envelope-from mav@FreeBSD.org) X-Spam-Flag: SKIP X-Spam-Yversion: Spamooborona 1.7.0 Received: from [212.86.226.226] (account mav@alkar.net HELO [192.168.3.2]) by cmail.optima.ua (CommuniGate Pro SMTP 5.1.14) with ESMTPA id 72327482; Sun, 03 Feb 2008 01:23:05 +0200 Message-ID: <47A4FB57.40203@FreeBSD.org> Date: Sun, 03 Feb 2008 01:23:03 +0200 From: Alexander Motin User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Reinhold References: <1201922586.00019085.1201909804@10.7.7.3> In-Reply-To: <1201922586.00019085.1201909804@10.7.7.3> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: mpd with a dual pppoe setup 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: Sun, 03 Feb 2008 00:23:08 -0000 Hi. Reinhold wrote: > Here is what I've done so far. > /usr/local/etc/mpd5/mpd.conf The config you have made probably suits to mpd3/4, but not to mpd5. Mpd5 uses alike commands, but general configuration idea is different. There is no mpd.links file in mpd5. Read new examples present in package. > default: > load wan1 > load wan2 Then it would be reasonable to merge "pptpd:" section here. > set ipcp ranges static-ip-0/32 isp-gateway-0/32 If you are connecting to the ISP it would be better not to specify IP to let them be negotiated. > load common_setting > > wan2: > new -i ng1 wan2 PPPoE1 > set iface route default > set iface up-script /usr/local/etc/mpd/script-wan2.sh > set iface down-script /usr/local/etc/mpd/script-wan2.sh > > set bundle authname "username1@provider" > set bundle password "passwd" > > set ipcp ranges static-ip-1/32 isp-gateway-1/32 > load common_setting > > common_setting: > set iface addrs 1.1.1.1 2.2.2.2 > set iface disable on-demand Without "on-demand" "set iface addrs" is useless. > set iface idle 0 This is default. > # PPTP > pt0: > set link type pptp > set pptp enable incoming > set pptp disable originate > set pptp disable windowing > set pptp self 127.0.0.1 It will be difficult to accept incoming while listening on 127.0.0.1. -- Alexander Motin