Date: Wed, 29 Nov 2006 14:37:15 -0600 From: Dan Nelson <dnelson@allantgroup.com> To: "Dan Mahoney, System Admin" <danm@prime.gushi.org> Cc: questions@freebsd.org Subject: Re: IPFW: delete range of rules? Message-ID: <20061129203714.GD69797@dan.emsphone.com> In-Reply-To: <20061129145422.I70323@prime.gushi.org> References: <20061129145422.I70323@prime.gushi.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Nov 29), Dan Mahoney, System Admin said:
> Hey all, the ipfw man page says rules can be deleted individually or
> in groups, but I don't see (other than the sets) an easy way to craft
> deletion of rules in a range (for example, 500-550).
You could expand the rules before calling ipfw:
ipfw delete $(jot - 500 550 1)
or, if you use zsh:
ipfw delete {500..550}
It would also be possible to extend the ipfw 'delete' rule parser to
handle ranges.
--
Dan Nelson
dnelson@allantgroup.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061129203714.GD69797>
