From owner-freebsd-ipfw@FreeBSD.ORG Sat Oct 28 20:22:36 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 EBA0516A415 for ; Sat, 28 Oct 2006 20:22:36 +0000 (UTC) (envelope-from listas@itm.net.br) Received: from venom.itm.net.br (venom.itm.net.br [201.30.187.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id F1ECD43D49 for ; Sat, 28 Oct 2006 20:22:35 +0000 (GMT) (envelope-from listas@itm.net.br) Received: (qmail 66735 invoked by uid 89); 28 Oct 2006 20:22:33 -0000 Received: by simscan 1.2.0 ppid: 66722, pid: 66724, t: 3.8483s scanners: attach: 1.2.0 clamav: 0.88.3/m:39/d:1644 spam: 3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on venom.itm.net.br X-Spam-Level: X-Spam-Status: No, score=-4.4 required=7.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.3 Received: from 201-20-160-70.itm.net.br (HELO IRONMAN) (listas@itm.net.br@201.20.160.70) by venom.itm.net.br with ESMTPA; 28 Oct 2006 20:22:29 -0000 Message-ID: <1E0F9590A9E14B4A92C4ECBDD0659B5D@IRONMAN> From: "Cesar Fazan" To: "Odhiambo WASHINGTON" , References: <20061028121914.GA79793@ns2.wananchi.com> In-Reply-To: <20061028121914.GA79793@ns2.wananchi.com> Date: Sat, 28 Oct 2006 17:22:00 -0300 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Windows Mail 6.0.5600.16384 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.5600.16384 Cc: Subject: Re: 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 20:22:37 -0000 What about use ipfw tables? ipfw table 1 add 62.8.64.0/19 ipfw table 1 add 196.200.32.0/20 ipfw add pipe 1 tcp from me to not table'(1)' 25 Cesar ----- Original Message ----- From: "Odhiambo WASHINGTON" To: Sent: Saturday, October 28, 2006 9:19 AM Subject: How do I do this with IPFW2? > > 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. > _______________________________________________ > freebsd-ipfw@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw > To unsubscribe, send any mail to "freebsd-ipfw-unsubscribe@freebsd.org" >