From owner-freebsd-stable@FreeBSD.ORG Wed Aug 11 15:14:29 2010 Return-Path: Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 57D68106566B; Wed, 11 Aug 2010 15:14:29 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id B3AFA8FC18; Wed, 11 Aug 2010 15:14:28 +0000 (UTC) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id o7BFECYB037899; Wed, 11 Aug 2010 17:14:27 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id o7BFEBYJ037898; Wed, 11 Aug 2010 17:14:11 +0200 (CEST) (envelope-from olli) Date: Wed, 11 Aug 2010 17:14:11 +0200 (CEST) Message-Id: <201008111514.o7BFEBYJ037898@lurza.secnetix.de> From: Oliver Fromme To: freebsd-stable@FreeBSD.ORG, freebsd-net@FreeBSD.ORG, rizzo@iet.unipi.it In-Reply-To: X-Newsgroups: list.freebsd-stable User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.4 (lurza.secnetix.de [127.0.0.1]); Wed, 11 Aug 2010 17:14:27 +0200 (CEST) Cc: Subject: Re: 8.1R: ppp default route uses wrong Netif (with pppoe) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-stable@FreeBSD.ORG, freebsd-net@FreeBSD.ORG, rizzo@iet.unipi.it List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2010 15:14:29 -0000 Luigi Rizzo wrote: > Hi, > I found the following problem with ppp after upgrading to 8.1 > > I am using ppp -ddial -nat ... over pppoe. The entry in ppp.conf has > these lines (plus others not relevant here): > > my-provider: > set line PPPoE:nfe0 > ... > add default HISADDR > > Up to 7.2 this sufficed to establish a route using 'tun0' as the device > > Destination Gateway Flags Refs Use Netif Expire > default 81.174.0.1 UGS 0 1885 tun0 > > With the upgrade to 8.1R the default route points to 'nfe0', i.e. the > device used to talk pppoe, instead of tun0. > This causes a number of failures which prevent operation. That's strange ... I have a simuilar setup on my router which was upgraded from FreeBSD 6.x to 8.x recently. I don't have any routing problems. So maybe it is a problem with your configuration, not a FreeBSD bug. My rc.conf contains: ifconfig_fxp0="up" ppp_enable="YES" ppp_mode="ddial" ppp_nat="YES" ppp_profile="pppoe_myisp" gateway_enable="YES" And ppp.conf looks like this (few things omitted for brevity): default: set ifaddr 10.0.0.1/0 10.0.0.2/0 set server /var/run/ppp.ctl "" 0177 nat enable yes pppoe_myisp: set device PPPoE:fxp0 set authname myauthname set authkey myauthkey set dial set login add default HISADDR enable dns resolv readonly The default route is set correctly: $ route get default route to: default destination: default mask: default gateway: gateway.myisp.net interface: tun0 flags: recvpipe sendpipe ssthresh rtt,msec mtu weight expire 0 0 0 0 1492 1 0 Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd Blogging: Never before have so many people with so little to say said so much to so few.