From owner-freebsd-ipfw@FreeBSD.ORG Sat Oct 28 12:19:21 2006 Return-Path: X-Original-To: freebsd-ipfw@freebsd.org Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4FBDB16A403 for ; Sat, 28 Oct 2006 12:19:21 +0000 (UTC) (envelope-from wash@wananchi.com) Received: from ns2.wananchi.com (ns2.wananchi.com [62.8.64.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 03C9F43D5D for ; Sat, 28 Oct 2006 12:19:18 +0000 (GMT) (envelope-from wash@wananchi.com) Received: from wash by ns2.wananchi.com with local (Exim 4.63 #0 (FreeBSD 4.11-STABLE)) id 1Gdn9e-000LbV-Rz by authid for ; Sat, 28 Oct 2006 15:19:14 +0300 Date: Sat, 28 Oct 2006 15:19:14 +0300 From: Odhiambo WASHINGTON To: freebsd-ipfw@freebsd.org Message-ID: <20061028121914.GA79793@ns2.wananchi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Disclaimer: Any views expressed in this message, where not explicitly attributed otherwise, are mine alone!. X-Mailer: Mutt 1.5.13 (2006-08-11) X-Designation: Systems Administrator, Wananchi Online Ltd. X-Location: Nairobi, KE, East Africa. User-Agent: Mutt/1.5.13 (2006-08-11) Sender: Odhiambo Washington Subject: How do I do this with IPFW2? X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Oct 2006 12:19:21 -0000 Here is my network definition, with two IP blocks. my_ip_blocks = "62.8.64.0/19 196.200.32.0/20" I'd like to do something like below: ipfw pipe 1 config bw 1024Kbit/s ipfw add pipe 1 tcp from me to not $my_ip_blocks 25 What I can't find is how to _correctly_ define my_ip_blocks in the rule in a way ipfw2 will accept. Thank you. -- +======================================================================+ |\ _,,,---,,_ | Odhiambo Washington Zzz /,`.-'`' -. ;-;;,_ | Wananchi Online Ltd. www.wananchi.com |,4- ) )-,_. ,\ ( `'-'| Tel: +254 20 313985-9 +254 20 313922 '---''(_/--' `-'\_) | GSM: +254 722 743223 +254 733 744121 +======================================================================+ Beware of self-styled experts: an ex is a has-been, and a spurt is a drip under pressure.