Skip site navigation (1)Skip section navigation (2)
Date:      31 Oct 1999 20:00:58 -0500
From:      Kevin Street <street@iname.com>
To:        "Erik Stainsby" <stainsby@lets.net>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: reframe of DHCP question
Message-ID:  <87u2n781px.fsf@mired.eh.local>
In-Reply-To: "Erik Stainsby"'s message of "Sun, 31 Oct 1999 16:10:31 -0800"
References:  <007b01bf23fd$83e23000$339fefcc@vpl.vancouver.bc.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
"Erik Stainsby" <stainsby@lets.net> 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




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