From owner-freebsd-questions Sun Sep 29 19:36: 6 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 947AB37B401 for ; Sun, 29 Sep 2002 19:36:04 -0700 (PDT) Received: from out001.verizon.net (out001pub.verizon.net [206.46.170.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id A0B5643E42 for ; Sun, 29 Sep 2002 19:36:03 -0700 (PDT) (envelope-from leblanc@outgoing.verizon.net) Received: from keyslapper.org ([68.160.3.80]) by out001.verizon.net (InterMail vM.5.01.05.09 201-253-122-126-109-20020611) with ESMTP id <20020930023602.IEOU3265.out001.verizon.net@keyslapper.org> for ; Sun, 29 Sep 2002 21:36:02 -0500 Received: from keyslapper.org (localhost [127.0.0.1]) by keyslapper.org (8.12.3/8.12.3) with ESMTP id g8U2a6Qd004072 for ; Sun, 29 Sep 2002 22:36:06 -0400 (EDT) (envelope-from leblanc@keyslapper.org) Received: (from leblanc@localhost) by keyslapper.org (8.12.3/8.12.3/Submit) id g8U2a6bm004069 for freebsd-questions@FreeBSD.org; Sun, 29 Sep 2002 22:36:06 -0400 (EDT) Date: Sun, 29 Sep 2002 22:36:05 -0400 From: Louis LeBlanc To: FreeBSD Questions Subject: Re: PPP, dynamic IPs, and handling renumbering Message-ID: <20020930023605.GA4000@keyslapper.org> Reply-To: freebsd-questions@FreeBSD.org Mail-Followup-To: FreeBSD Questions References: <20020930002532.GC430@keyslapper.org> <20020929184245.C308-100000@atlas.home> Mime-Version: 1.0 Content-Type: text/plain; charset=unknown-8bit Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20020929184245.C308-100000@atlas.home> User-Agent: Mutt/1.5.1i X-Authentication-Info: Submitted using SMTP AUTH LOGIN at out001.verizon.net from [68.160.3.80] at Sun, 29 Sep 2002 21:36:02 -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 09/29/02 06:50 PM, Mikko Ty?l?j?rvi sat at the `puter and typed: > On Sun, 29 Sep 2002, Louis LeBlanc wrote: > > > I have a new question. I have ppp set up on interface tun0, got my IP > > and all, handling the DSL connection quite nicely - so far. > > > > Now the question: Since the IP is dynamic, I have some things that > > need doing anytime it changes, like update the Apache config and > > restart it, update the zoneedit dns records so I still get my mail, > > etc. Where do I handle this? Is there an exit hook I can specify for > > ppp to call when it gets a new IP? > > The "hooks" go in /etc/ppp/ppp.linkup and /etc/ppp/ppp.linkdown. The > ppp(8) man page is kind of long, but well worth the read. There are > assorted sample files in /usr/share/examples/ppp/ too. Awesome. Any idea where the broadcast address can be found? - for the firewall rules. > > I can't even find the dhcp lease or the network broadcast info. When > > I was with AT&T, it was basic DHCP and it all went into > > /var/db/dhclient.leases. The only place I can get the IP from now is > > ifconfig tun0 > > [...] > > You are not getting your address via DHCP, as you are using PPP which > does its own address negotiation. One of these days I will understand > the point of running PPP over ethernet... Either way, I'm finding the subtle differences a bit confusing. I just need to handle the changes, and kick the appropriate tires when necessary. Thanks a bunch. Lou -- Louis LeBlanc leblanc@keyslapper.org Fully Funded Hobbyist, KeySlapper Extrordinaire :) http://www.keyslapper.org ԿԬ 667: The neighbor of the beast. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message