From owner-freebsd-questions@FreeBSD.ORG Mon Feb 14 14:02:25 2005 Return-Path: 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 7945E16A4CE for ; Mon, 14 Feb 2005 14:02:25 +0000 (GMT) Received: from lorna.circlesquared.com (host217-45-219-85.in-addr.btopenworld.com [217.45.219.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 43BEE43D46 for ; Mon, 14 Feb 2005 14:02:24 +0000 (GMT) (envelope-from peter@circlesquared.com) Received: from localhost.circlesquared.com (localhost.circlesquared.com [127.0.0.1])j1EE2WRI084184; Mon, 14 Feb 2005 14:02:32 GMT (envelope-from peter@circlesquared.com) From: Peter Risdon To: Hiram Abiff In-Reply-To: <1108389001.4210ac89766a6@mail.online.ie> References: <1108389001.4210ac89766a6@mail.online.ie> Content-Type: text/plain Date: Mon, 14 Feb 2005 14:02:32 +0000 Message-Id: <1108389752.23699.216.camel@lorna.circlesquared.com> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit cc: "freebsd-questions@freebsd.org" Subject: Re: ppp_mode and ipfw X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Feb 2005 14:02:25 -0000 On Mon, 2005-02-14 at 14:50 +0100, Hiram Abiff wrote: > Hi! > > I've been trying to set up ipfw on my FreeBSD box > which I use as a gateway to the Internet on my LAN. > > I compiled the kernel with options IPFIREWALL and IPDIVERT, > edited rc.conf and some other files. > > Now I have 2 problems: > > 1.) Each time FreeBSD boots ppp automatically establishes > a connection via ISDN. I do not want it to do that, I want > the connection to be established when some of the other > 2 boxes I have on my LAN run software that demands an > internet connection. > > For Example, if I run firefox on my linux box, i want > the FreeBSD box to receive the linux boxes request > for a connection and dial my ISP via ISDN. > > In rc.conf I set ppp_mode="auto" because in ppp's man > page it says that this is the correct mode for > on-demand connection. > A quick note on this first problem: The auto setting is correct for ppp. This will connect whenever anything seeks a route for which the ppp link is necessary. When your machine boots, several things, potentially, will want an internet connection. sendmail is one example. To prevent this from happening, you'll have to disable all the processes that want to do any, for example, dns lookups as they start. So ppp is behaving correctly, but not as you expected. Peter.