From owner-freebsd-questions@FreeBSD.ORG Thu Jun 9 06:48:58 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 45EF016A41C for ; Thu, 9 Jun 2005 06:48:58 +0000 (GMT) (envelope-from twelch@thepentagon.org) Received: from mercury.thepentagon.org (adsl-065-007-255-129.sip.jan.bellsouth.net [65.7.255.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id D3C4C43D49 for ; Thu, 9 Jun 2005 06:48:57 +0000 (GMT) (envelope-from twelch@thepentagon.org) Received: from localhost.local (localhost.local [127.0.0.1]) by mercury.thepentagon.org (8.13.3/8.13.3) with ESMTP id j596oDXC079194; Thu, 9 Jun 2005 01:50:13 -0500 (CDT) (envelope-from twelch@thepentagon.org) From: Tim Welch To: freebsd-questions@freebsd.org, joe@gaming-tv.com, ac@centurytel.net In-Reply-To: <000e01c56cbe$68458620$0301a8c0@viper> References: <000e01c56cbe$68458620$0301a8c0@viper> Content-Type: text/plain Date: Thu, 09 Jun 2005 01:50:13 -0500 Message-Id: <1118299813.53692.21.camel@mercury.thepentagon.org> Mime-Version: 1.0 X-Mailer: Evolution 2.2.2 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: Subject: Re: PPPoE Configuration problems 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, 09 Jun 2005 06:48:58 -0000 On Thu, 2005-06-09 at 02:42 -0400, Allyn Cheney wrote: > I'm trying to setup a Freebsd box to act as my router/firewall and as such I've been trying to configure it to connect to my ISP's PPPoE dsl service. It doesn't connect and the errors provided in the log prove don't show me much content as to what is causing the problem. One thing strange is ppp is saying its using tun1, while below you can see its saying its using tun0 and erroring. Error log, ppp.conf and rc.conf are listed below. > > Error log: > ppp[198]: tun0: Phase: deflink: Connected! > ppp[198]: tun0: Phase: deflink: opening -> dial > ppp[198]: tun0: Phase: deflink: dial -> carrier > ppp[198]: tun0: Phase: deflink: Disconnected! > ppp[198]: tun0: Phase: deflink: Connect Time: 5 sec > ppp[198]: tun0: Phase: deflink: hangup - > opening > > ppp.conf > default: > set log Phase chat lcp ipcp ccp tun command > set if addr 10.10.0.1/0 10.10.0.2/0 > set mtu 1492 > set mru 1492 > set device PPPoE:rl0 > > papchap: > set authname name > set authkey key > set dial > set login > add default HISADDR > > rc.conf > ppp_enable="YES" > ppp_mode="ddial" > ppp_nat="YES" > ppp_profile="papchap" > gateway_enabled="YES" > ifconfig_rl0="DHCP" > ifconfig_dc0="inet 10.10.0.1 netmask 255.255.255.248" > hostname="name" I would suggest leaving out ifaddr.. It's not required. Also, it looks like you have your PPPoE device wrong by the rc.conf values you listed. Here's what works for me: default: set device PPPoE:fxp0 set speed sync set ctsrts off set mru 1492 set mtu 1492 provider: set authname "name" set authkey "key" enable dns # this will enable pulling the dns from your provider and sticking them in /etc/resolv.conf add default HISADDR To dial with that I run 'ppp -ddial provider'. Hope it helps. Tim