From owner-freebsd-current Wed Jul 7 14:17:10 1999 Delivered-To: freebsd-current@freebsd.org Received: from awfulhak.org (dynamic-38.max1-du-ws.dialnetwork.pavilion.co.uk [212.74.8.38]) by hub.freebsd.org (Postfix) with ESMTP id A0EC514DAA for ; Wed, 7 Jul 1999 14:17:03 -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 WAA02969; Wed, 7 Jul 1999 22:02:44 +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 WAA19958; Wed, 7 Jul 1999 22:02:44 +0100 (BST) (envelope-from brian@dev.lan.awfulhak.org) Message-Id: <199907072102.WAA19958@dev.lan.awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: Josef Karthauser Cc: Brian Somers , Mark Thomas , freebsd-current@FreeBSD.org, Wayne Self Subject: Re: userland ppp - startup In-reply-to: Your message of "Wed, 07 Jul 1999 10:37:46 BST." <19990707103746.A30024@pavilion.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 07 Jul 1999 22:02:44 +0100 From: Brian Somers Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > On Mon, Jul 05, 1999 at 08:59:41PM +0100, Brian Somers wrote: > > [-current cc'd - please don't make this a big thread !] > > /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 ;*) > > Something like this should do it. It may be nice to also allow the > authname/authkey to be specified on the command line so that they > can easily be set in rc.conf, by hand or by sysinstall. WRT the authname/authkey stuff, with sppp, you do something like spppcontrol isp0 myauthproto=chap myauthname=fred myauthsecret=guess This is pretty safe as spppcontrol passes the info into the kernel and exits. As this is at startup, we're safe except for the fact that everyone's probably going to leave rc.conf readable. It would be possible to start ppp then use pppctl to set the authname and authkey, but this would be a bit of a PITA IMHO as you'd have to muck around with ``set server'' etc. Of course you can ``set title'' in ppp, but that's not entirely safe as you can unset it too - restoring the original argv contents. This aside, I think there are more bits required for the patches :*1 rc.conf.5 needs to be updated - that's the easy bit. I think we also need a src/etc/ppp/ppp.conf that installs with 0600 permissions at installation time. This file would have a default and a papchap entry in it - that's where the url for Waynes ppp.conf comes in - its contents are probably what we're after. Older versions of src/etc/Makefile installed ppp.conf, so it should be easy to do that side of things. Sysinstall however is also capable of writing ppp.conf. It would need to be smart enough to update the default one with the lines that it wants to use (just appending an ``install'' label with the necessary bits is probably the best thing to do). This answers your other question..... src/release/sysinstall/network.c - search for ppp.conf. That's how sysinstall does it :-) Ha, and you thought it'd be straight forward ;^P > Joe > -- > Josef Karthauser FreeBSD: How many times have you booted today? > Technical Manager Viagra for your server (http://www.uk.freebsd.org) > Pavilion Internet plc. [joe@pavilion.net, joe@uk.freebsd.org, joe@tao.org.uk] [.....] -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message