From owner-freebsd-questions@FreeBSD.ORG Sat Jul 22 17:40:35 2006 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 7FCB116A4DA for ; Sat, 22 Jul 2006 17:40:35 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 18D9F43D4C for ; Sat, 22 Jul 2006 17:40:35 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.4) id k6MHeYQl004499; Sat, 22 Jul 2006 12:40:34 -0500 (CDT) (envelope-from dan) Date: Sat, 22 Jul 2006 12:40:34 -0500 From: Dan Nelson To: Pelekh Volodya Message-ID: <20060722174034.GD22820@dan.emsphone.com> References: <44C24658.5060308@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44C24658.5060308@gmail.com> X-OS: FreeBSD 5.5-PRERELEASE X-message-flag: Outlook Error User-Agent: Mutt/1.5.12-2006-07-14 Cc: freebsd-questions@freebsd.org Subject: Re: IPFW Time-Range 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: Sat, 22 Jul 2006 17:40:35 -0000 In the last episode (Jul 22), Pelekh Volodya said: > Hi > My name is Volodya, i'am from Ukraine > I have a little question, > do you plan to add time-range in ipfw? > Something like in Cisco > thanks > wait for answer One way to do what you want is to put your time-sensitive rules in a separate set: ipfw add 500 set 1 reset ip from any to any dst-port 554 // block realaudio streams Then use cron to enable/disable them during your timerange: 0 8 * * * root ipfw set enable 1 0 18 * * * root ipfw set disable 1 You can run "ipfw -S list" to see which sets are active at any time. It would be nice to have this built into ipfw, though. -- Dan Nelson dnelson@allantgroup.com