From owner-freebsd-questions@FreeBSD.ORG Mon Jan 3 18:45:25 2005 Return-Path: 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 E873716A4CE for ; Mon, 3 Jan 2005 18:45:25 +0000 (GMT) Received: from knife.dreamhost.com (knife.dreamhost.com [66.33.219.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id AF39343D2F for ; Mon, 3 Jan 2005 18:45:25 +0000 (GMT) (envelope-from lists@tntluoma.com) Received: from [192.168.2.102] (unknown [68.254.13.39]) by knife.dreamhost.com (Postfix) with ESMTP id 5F1C8E4B08; Mon, 3 Jan 2005 10:45:14 -0800 (PST) In-Reply-To: <06DDB71C-5DB4-11D9-B56F-000D9333E43C@secure-computing.net> References: <06DDB71C-5DB4-11D9-B56F-000D9333E43C@secure-computing.net> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <8B357427-5DB7-11D9-89A5-000D93AD26C8@tntluoma.com> Content-Transfer-Encoding: 7bit From: Timothy Luoma Date: Mon, 3 Jan 2005 13:44:48 -0500 To: Eric F Crist X-Mailer: Apple Mail (2.619) cc: FreeBSD-Questions Questions Subject: Re: my lame attempt at a shell script... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jan 2005 18:45:26 -0000 On Jan 3, 2005, at 1:19 PM, Eric F Crist wrote: > I'm trying to create a shell script for firewalling. What I'm hoping > to do is create a generic script that looks for variables in > /etc/rc.conf. I've tried looking at other scripts that use variables > placed there, but don't understand how to pull the information from > the file. Ah, now I may be a FreeBSD newbie, but I've been doing shell scripts for a long time. What specifically are you trying to pull out of /etc/rc.conf? TjL ps - that said, why aren't you setting firewall configuration once and leaving it alone?