From dburr@DonaldBurr.dyn.ml.org  Thu Sep 18 13:23:45 1997
Received: from DonaldBurr.dyn.ml.org (ppp6213.la.inreach.net [199.107.160.213])
          by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id NAA03562
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 18 Sep 1997 13:23:32 -0700 (PDT)
Received: (from dburr@localhost)
	by DonaldBurr.dyn.ml.org (8.8.5/8.8.5) id NAA03202;
	Thu, 18 Sep 1997 13:23:57 -0700 (PDT)
Message-Id: <199709182023.NAA03202@DonaldBurr.dyn.ml.org>
Date: Thu, 18 Sep 1997 13:23:57 -0700 (PDT)
From: dburr@POBoxes.com
Reply-To: dburr@POBoxes.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: user-ppp (iij-ppp) should use /etc/ppp/ip-{up,down}
X-Send-Pr-Version: 3.2

>Number:         4575
>Category:       bin
>Synopsis:       user-ppp (iij-ppp) should use /etc/ppp/ip-{up,down}
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    brian
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 18 13:30:00 PDT 1997
>Closed-Date:    Fri Sep 19 02:56:20 PDT 1997
>Last-Modified:  Fri Sep 19 02:59:50 PDT 1997
>Originator:     Donald Burr
>Release:        FreeBSD 2.2.2-RELEASE i386
>Organization:
Starfleet Command
>Environment:

	any properly-installed FreeBSD system

>Description:

	iij-ppp (aka userland PPP) should use the /etc/ppp/ip-up and
	/etc/ppp/ip-down scripts when the link goes up and down.  It
	should give these scripts the exact same argument list as pppd
	does.  (for compatibility -- I use both pppd and iij-ppp on the
	same system, and switch whenever it suits me.  Or think of the
	guy who wants to switch FROM pppd TO iij-ppp without having to
	rewrite his scripts!)

	The reason why the ip-up/down script arguments are important is
	that some programs you may want to run in these scripts require
	arguments.  An example (one that I actually use) is with the
	Monolith DYNDNS service (http://www.ml.org/), which allows users
	with dynamically-assigned IP addresses (i.e. a PPP account with
	a ISP) to have their own domain name (e.g. mydom.dyn.ml.org).
	You need to run a client every time you dial in, so that the
	Monolith nameserver knows about what IP address you're using now.
	This client requires, among other data, the IP address of the
	PPP connection to be passed in as the argument.

	Other useful uses for the /etc/ppp/ip-{up,down} script are (some
	of which I actually use): writing all users (wall) when the
	connection goes up and down, starting SUCK (to grab nntp news),
	running 'ping <some_ip>' to keep the connection up all the time,
	etc.

>How-To-Repeat:

	IRRELEVANT.  (RESISTANCE IS FUTILE.)

>Fix:
	
	Don't ask me -- I'm a doctor, not a programmer! :)

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: brian 
State-Changed-When: Fri Sep 19 02:56:20 PDT 1997 
State-Changed-Why:  
This is a non-issue.  For running ip-up, do the following in 
ppp.linkup: 

MYADDR: 
!bg /etc/ppp/ip-up MYADDR HISADDR INTERFACE 

(I don't know what order you want the args) 
Similarly in ppp.linkdown for running ip-down. 


Responsible-Changed-From-To: freebsd-bugs->brian 
Responsible-Changed-By: brian 
Responsible-Changed-When: Fri Sep 19 02:56:20 PDT 1997 
Responsible-Changed-Why:  
Ppp's mine 
>Unformatted:
