From owner-freebsd-questions Mon Jul 5 13: 0:25 1999 Delivered-To: freebsd-questions@freebsd.org Received: from awfulhak.org (dynamic-83.max1-du-ws.dialnetwork.pavilion.co.uk [212.74.8.83]) by hub.freebsd.org (Postfix) with ESMTP id 4D2021510A for ; Mon, 5 Jul 1999 13:00:20 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from dev.lan.awfulhak.org (dev.lan.awfulhak.org [172.16.0.5]) by awfulhak.org (8.9.3/8.9.3) with ESMTP id UAA11505; Mon, 5 Jul 1999 20:59:54 +0100 (BST) (envelope-from brian@lan.awfulhak.org) Received: from dev.lan.awfulhak.org (localhost [127.0.0.1]) by dev.lan.awfulhak.org (8.9.3/8.9.3) with ESMTP id UAA36719; Mon, 5 Jul 1999 20:59:44 +0100 (BST) (envelope-from brian@dev.lan.awfulhak.org) Message-Id: <199907051959.UAA36719@dev.lan.awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: Mark Thomas Cc: freebsd-questions@FreeBSD.ORG, freebsd-current@FreeBSD.FreeBSD.ORG, org@dev.lan.awfulhak.org, "Josef L. Karthauser" , Wayne Self Subject: Re: userland ppp - startup In-reply-to: Your message of "Sun, 04 Jul 1999 16:16:54 EDT." <3.0.6.32.19990704161654.00921c20@pop3.clark.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 05 Jul 1999 20:59:41 +0100 From: Brian Somers Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [-current cc'd - please don't make this a big thread !] > What is the accepted method for starting/shutting down userland ppp at > system startup? > > This is on a 3.2-stable box. > > rc.local seems to have vanished. > > A script in /usr/local/etc/rc.d? > > My ppp invocation: > > /usr/sbin/ppp -auto -alias demand The way I've always suggested (after jkh originally suggested it) is to add ``tun0'' to your interface list in rc.conf and then create /etc/start_if.tun0 with an ``exec ppp ...''. This starts things up at the correct point. However, maybe it's time for a knob in rc.conf ? Something like ppp_enable="NO" # Start user-ppp ppp_alias="YES" # Packet aliasing (NAT/masquerading) ppp_mode="auto" # Usually auto or ddial ppp_profile="papchap" # Which profile to read from /etc/ppp/ppp.conf We'd also need a default /etc/ppp/ppp.conf that contains a papchap profile as this seems to be what most ISPs give you these days. I'd also include a commented-out ``set login'' with an appropriate comment. Sysinstall may need to be adjusted too... Suggestions/objections ? If not, I'll commit soon (unless you want to do the work Joe ;*) > Mark > --- > thomas@clark.net ---> http://www.clark.net/pub/thomas > PBEM Eldritch --------> http://www.pmpro.com/eldritch -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message