From owner-freebsd-questions Tue Dec 12 18: 0:11 2000 From owner-freebsd-questions@FreeBSD.ORG Tue Dec 12 18:00:08 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mail8.carolina.rr.com (fe8.southeast.rr.com [24.93.67.55]) by hub.freebsd.org (Postfix) with ESMTP id 3039B37B404 for ; Tue, 12 Dec 2000 18:00:08 -0800 (PST) Received: from voodoo ([24.25.86.114]) by mail8.carolina.rr.com with Microsoft SMTPSVC(5.5.1877.537.53); Tue, 12 Dec 2000 20:58:44 -0500 Message-ID: <001301c064a8$1eb2ede0$0200a8c0@digitalavalanche.com> From: "Mike Gruver" To: Cc: Subject: Re: How to use simple firewall with DHCP? Date: Tue, 12 Dec 2000 20:57:57 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thanks for responding to my question. Sorry about the html encoding. I just upgraded my email client and it changed my defaults. Got it fixed. Thank you for the information about the /var/db/dhclient.leases. I think that is the key. Now, If anyone knows how to parse this file and use it as input to the values I can uses it as input to the rc.firewall. I did as much research as I could on dhclient and there did not appear to be a query form of the command to return the network, ip, or subnet mask. These are the precise values I need for the rc.firewall. It looks like the values in dhclient.leases are encapsulated in brackets {} and the modifier "lease". As you might guess, I am not a big shell script afficianado. Any ideas? Thanks, Mike Gruver To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message