From owner-freebsd-questions@FreeBSD.ORG Tue Jan 4 09:31:31 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 8D1AF16A4CE for ; Tue, 4 Jan 2005 09:31:31 +0000 (GMT) Received: from kenmore.kozy-kabin.nl (fia148-72.dsl.hccnet.nl [62.251.72.148]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B68A43D3F for ; Tue, 4 Jan 2005 09:31:30 +0000 (GMT) (envelope-from colin@kenmore.kozy-kabin.nl) Received: from localhost (colin@localhost) by kenmore.kozy-kabin.nl (8.11.6p2/8.11.6) with ESMTP id j049V0g00583; Tue, 4 Jan 2005 10:31:05 +0100 (CET) Date: Tue, 4 Jan 2005 10:31:00 +0100 From: "Colin J. Raven" To: Timothy Luoma In-Reply-To: <8B357427-5DB7-11D9-89A5-000D93AD26C8@tntluoma.com> Message-ID: References: <06DDB71C-5DB4-11D9-B56F-000D9333E43C@secure-computing.net> <8B357427-5DB7-11D9-89A5-000D93AD26C8@tntluoma.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: Eric F Crist 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: Tue, 04 Jan 2005 09:31:31 -0000 On Jan 3 at 13:44, Timothy Luoma launched this into the bitstream: > > 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. > Take note, he is *really* not exaggerating!! > What specifically are you trying to pull out of /etc/rc.conf? > > > ps - that said, why aren't you setting firewall configuration once and > leaving it alone? Yeah, I wondered about that too, unless there's something particular to that local configuration it sort of seems like reinventing the wheel. BTW, welcome to FreeBSD Tim! You have been assimilated etc. :-)