Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 05 Jul 1999 20:59:41 +0100
From:      Brian Somers <brian@Awfulhak.org>
To:        Mark Thomas <thomas@clark.net>
Cc:        freebsd-questions@FreeBSD.ORG, freebsd-current@FreeBSD.FreeBSD.ORG, org@dev.lan.awfulhak.org, "Josef L. Karthauser" <joe@pavilion.net>, Wayne Self <wself@cdrom.com>
Subject:   Re: userland ppp - startup 
Message-ID:  <199907051959.UAA36719@dev.lan.awfulhak.org>
In-Reply-To: Your message of "Sun, 04 Jul 1999 16:16:54 EDT." <3.0.6.32.19990704161654.00921c20@pop3.clark.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
[-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 <brian@Awfulhak.org>                        <brian@FreeBSD.org>
      <http://www.Awfulhak.org>;                   <brian@OpenBSD.org>
Don't _EVER_ lose your sense of humour !          <brian@FreeBSD.org.uk>




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199907051959.UAA36719>