From owner-freebsd-questions@FreeBSD.ORG Fri Feb 20 12:44:33 2004 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 165E116A4CE for ; Fri, 20 Feb 2004 12:44:33 -0800 (PST) Received: from rdsnet.ro (unknown [62.231.74.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2AF7143D2D for ; Fri, 20 Feb 2004 12:44:32 -0800 (PST) (envelope-from itetcu@apropo.ro) Received: (qmail 32058 invoked from network); 20 Feb 2004 20:44:30 -0000 Received: from unknown (HELO it.buh.cameradicommercio.ro) (81.196.25.19) by mail.rdsnet.ro with SMTP; 20 Feb 2004 20:44:30 -0000 Received: from it.buh.cameradicommercio.ro (localhost.buh.cameradicommercio.ro [127.0.0.1]) by it.buh.cameradicommercio.ro (Postfix) with SMTP id 471F8198; Fri, 20 Feb 2004 22:46:19 +0200 (EET) Date: Fri, 20 Feb 2004 22:46:19 +0200 From: Ion-Mihai Tetcu To: "Marwan Sultan" Message-Id: <20040220224619.6cd9375a@it.buh.cameradicommercio.ro> In-Reply-To: <20040220201619.M35470@kifco.net> References: <20040220201619.M35470@kifco.net> X-Mailer: Sylpheed version 0.9.9claws (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: FreeBSD questions List Subject: Re: cron or ipfw problem! 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: Fri, 20 Feb 2004 20:44:33 -0000 On Fri, 20 Feb 2004 23:33:45 +0300 "Marwan Sultan" wrote: > Hello bsd, > > I have FreeBSD 4.8R, NATd, ipfw enabled. > > I want to add a rule to ipfw which activate from 3AM to 3PM : says: > ipfw 05000 add deny all from 192.168.1.21 to any The following entries in my crontab work: 00 08 * * 1-5 /sbin/ipfw set enable 5 && /sbin/ipfw -dS show 45 18 * * 1-5 /sbin/ipfw set disable 5 6 7 8 && /sbin/ipfw set enable 9 && /sbin/ipfw -dS show maybe you should use the full path for ipfw in your script ? -- IOnut Unregistered ;) FreeBSD user