From owner-freebsd-questions@FreeBSD.ORG Wed Aug 10 17:57:04 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 643E916A41F for ; Wed, 10 Aug 2005 17:57:04 +0000 (GMT) (envelope-from youshi10@u.washington.edu) Received: from mxout5.cac.washington.edu (mxout5.cac.washington.edu [140.142.32.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id 119DD43D46 for ; Wed, 10 Aug 2005 17:57:04 +0000 (GMT) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout5.cac.washington.edu (8.13.4+UW05.04/8.13.4+UW05.05) with ESMTP id j7AHv39B020498 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 10 Aug 2005 10:57:03 -0700 X-Auth-Received: from [128.208.4.29] (shiina.dyn.cs.washington.edu [128.208.4.29]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.4+UW05.04/8.13.4+UW05.07) with ESMTP id j7AHv2xt009946 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 10 Aug 2005 10:57:02 -0700 Message-ID: <42FA3FF0.3000103@u.washington.edu> Date: Wed, 10 Aug 2005 10:57:04 -0700 From: Garrett Cooper User-Agent: Mozilla Thunderbird 1.0.6 (Macintosh/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Carstea Catalin , FreeBSD Questions References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: Script - Tentation! ( for experts ) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Aug 2005 17:57:04 -0000 Carstea Catalin wrote: >I want to make a script but i don't know how. Please help me! > 1.I want one script that put MAC address automaticaly to my ruleset of ipfw >and restart at the end of script ipfw - service . >2.In this script ipfw has rules to permit only some MAC addresses and deny >others. > *Ex: /etc/firewall.sh -add "00:23:f3:23:a0:e4" -name "WS1"* > In this script ( /etc/firewall.sh ) are my rules to permit only MAC address >of my LAN users specified with this inputs (*-add 00:23:f3:23:a0:e4 -name >WS1)* >.......................................................................................... >To make this script a must verify if exist "-add" and if exist i must verify >if exist " 02:23...." (the MAC) and after if exist "-name" and "ws#" >................................................................................................................................................................................................ >.....after i must add this MAC adress to ipfw command in the >/etc/firewall.sh >.................................................................................................................................................................................................. > If exist one expert that can helpe me please give me the script! Tks! > >Carstea Catalin > > Based on all of your emails lately, it sounds like you need a consultant more than just answers to some questions :). -Garrett