From owner-freebsd-questions Sun Oct 31 17: 1: 2 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mail.rdc2.on.home.com (ha1.rdc2.on.home.com [24.9.0.15]) by hub.freebsd.org (Postfix) with ESMTP id D9D1714BC3 for ; Sun, 31 Oct 1999 17:00:59 -0800 (PST) (envelope-from street@iname.com) Received: from mired.eh.local ([24.64.136.188]) by mail.rdc2.on.home.com (InterMail v4.01.01.07 201-229-111-110) with ESMTP id <19991101010058.YLAX3040.mail.rdc2.on.home.com@mired.eh.local>; Sun, 31 Oct 1999 17:00:58 -0800 Received: (from kws@localhost) by mired.eh.local (8.9.3/8.9.3) id UAA44305; Sun, 31 Oct 1999 20:00:58 -0500 (EST) (envelope-from kws) To: "Erik Stainsby" Cc: Subject: Re: reframe of DHCP question References: <007b01bf23fd$83e23000$339fefcc@vpl.vancouver.bc.ca> From: Kevin Street Date: 31 Oct 1999 20:00:58 -0500 In-Reply-To: "Erik Stainsby"'s message of "Sun, 31 Oct 1999 16:10:31 -0800" Message-ID: <87u2n781px.fsf@mired.eh.local> Lines: 25 X-Mailer: Gnus v5.6.45/XEmacs 21.1 - "Biscayne" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Erik Stainsby" writes: > If I am running a FBSD box as a DHCP'd dial-up workstation, where on this > box > might I be able to read the expiry time set when the licence was granted? > > What I wish to do is use this value as a failsafe timeout on the remote ed > of a > temporary-VPN setup. When the workstation dials in to the ISP, I would like > to read my IP and the expirarion time from this machine. I will then > submit > these values to a daemon on my production server, which will establish my > VPN. man dhclient man dhclient-script It's in /var/db/dhclient.leases but better would be to do this when dhclient-script gets run, which happens every time a lease gets renewed. You can hang your local scripts from some hooks in dhclient-script. -- Kevin Street street@iname.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message