From owner-freebsd-questions@FreeBSD.ORG Sun Feb 3 18:51:56 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 5574616A41A for ; Sun, 3 Feb 2008 18:51:56 +0000 (UTC) (envelope-from freebsd@violetlan.net) Received: from mail.violetlan.net (www.violetlan.net [80.81.242.8]) by mx1.freebsd.org (Postfix) with ESMTP id DF87E13C46A for ; Sun, 3 Feb 2008 18:51:55 +0000 (UTC) (envelope-from freebsd@violetlan.net) Received: from mail.violetlan.net (localhost [127.0.0.1]) by mail.violetlan.net (Postfix) with ESMTP id AA28311439; Sun, 3 Feb 2008 18:17:21 +0000 (GMT) Received: from www.violetlan.net (mbali.violetlan.net [10.0.100.150]) by mail.violetlan.net (Postfix) with ESMTP id 8917D1142B; Sun, 3 Feb 2008 18:17:21 +0000 (GMT) Received: from 89.240.61.114 (SquirrelMail authenticated user freebsd@violetlan.net) by www.violetlan.net with HTTP; Sun, 3 Feb 2008 18:20:49 -0000 (GMT) Message-ID: <1256.89.240.61.114.1202062849.squirrel@www.violetlan.net> In-Reply-To: <47A4FB57.40203@FreeBSD.org> References: <1201922586.00019085.1201909804@10.7.7.3> <47A4FB57.40203@FreeBSD.org> Date: Sun, 3 Feb 2008 18:20:49 -0000 (GMT) From: "Reinhold" To: "Alexander Motin" User-Agent: SquirrelMail/1.5.1 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP Cc: Reinhold , 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 18:51:56 -0000 Thanks for the reply. >> 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. Thanks for that, I have added my new config file below. >> 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. How will I go ahead and set the static ips for both my wan connections? For wan1 I have one ip and for wan2 I have 5 ips I was orginally thinking of seting up proxy-arp to add the extra 4 ips on wan2 after connecting using the first ip, but now I'm not to sure anymore. We need these ips because some of the websites and servers that we manage are ip restricked for added security, this is also the reason why I have a pptp server for the people thats not in our office. Here is my new conf file. default: load wan1 load wan2 load pptp wan1: create bundle static WAN1 set iface route default set iface up-script /usr/local/etc/mpd/script-wan1.sh set iface down-script /usr/local/etc/mpd/script-wan1.sh set ipcp ranges 0.0.0.0/0 0.0.0.0/0 create link static L1 pppoe set link action bundle WAN1 set auth authname "username0@provider" set auth password "passwd" set pppoe iface fxp0 set pppoe service "BTConnect1" load common_setting wan2: create bundle static WAN2 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 ipcp ranges 0.0.0.0/0 0.0.0.0/0 create link static L2 pppoe set link action bundle WAN2 set auth authname "username1@provider" set auth password "passwd" set pppoe iface fxp1 set pppoe service "BTConnect2" load common_setting common_setting: set bundle disable multilink set link disable pap chap set link accept chap set link max-redial -1 set link mtu 1492 set link mru 1492 set link keep-alive 10 60 set ipcp yes vjcomp set ipcp enable req-sec-dns open pptp: set ippool add pool1 192.168.1.220 192.168.1.240 create bundle template B set iface enable proxy-arp set iface idle 1800 set iface enable tcpmssfix set ipcp yes vjcomp set ipcp ranges 192.168.1.1/32 ippool pool1 set ipcp dns 192.168.1.5 set bundle enable compression set ccp yes mppc set mppc yes e40 set mppc yes e128 set mppc yes stateless create link template L pptp set link action bundle B set link enable multilink set link yes acfcomp protocomp set link no pap chap set link enable chap set link keep-alive 10 60 set link mtu 1460 set pptp self wan1-static-ip set link enable incoming How does mpd5 assign the ng interfaces, in my previose cong there was a line new -i ng0 provider PPPoE0, does mpd5 do this automatically? Thanks again for the help. Reinhold