From owner-freebsd-bugs Thu Sep 18 13:30:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id NAA04239 for bugs-outgoing; Thu, 18 Sep 1997 13:30:04 -0700 (PDT) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id NAA04221; Thu, 18 Sep 1997 13:30:01 -0700 (PDT) Resent-Date: Thu, 18 Sep 1997 13:30:01 -0700 (PDT) Resent-Message-Id: <199709182030.NAA04221@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, dburr@POBoxes.com 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 ; 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 X-Send-Pr-Version: 3.2 Subject: bin/4575: user-ppp (iij-ppp) should use /etc/ppp/ip-{up,down} Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 4575 >Category: bin >Synopsis: user-ppp (iij-ppp) should use /etc/ppp/ip-{up,down} >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Sep 18 13:30:00 PDT 1997 >Last-Modified: >Originator: Donald Burr >Organization: Starfleet Command >Release: FreeBSD 2.2.2-RELEASE i386 >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 ' 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! :) >Audit-Trail: >Unformatted: