From owner-freebsd-questions@FreeBSD.ORG Sat Feb 14 10:26:45 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 3F3D716A4CE for ; Sat, 14 Feb 2004 10:26:45 -0800 (PST) Received: from lakemtao07.cox.net (lakemtao07.cox.net [68.1.17.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id C02D143D1D for ; Sat, 14 Feb 2004 10:26:44 -0800 (PST) (envelope-from kitbsdlists@HotPOP.com) Received: from vixen42 ([68.109.49.234]) by lakemtao07.cox.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with SMTP id <20040214182644.FYSW2432.lakemtao07.cox.net@vixen42>; Sat, 14 Feb 2004 13:26:44 -0500 Date: Sat, 14 Feb 2004 12:25:22 -0600 From: Vulpes Velox To: "Markus Kovero" Message-Id: <20040214122522.7c1420ed@vixen42.> In-Reply-To: <200402141319.i1EDJOw22101@nalle.netsonic.fi> References: <200402141319.i1EDJOw22101@nalle.netsonic.fi> X-Mailer: Sylpheed version 0.9.9claws (GTK+ 1.2.10; i386-portbld-freebsd4.9) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: ipfw bandwidth limit 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: Sat, 14 Feb 2004 18:26:45 -0000 here is a example from my ftp server... ipfw add 200 pipe 2 tcp from me to any out gid ftpusersBWL ipfw pipe config 2 bw 16KBps queue 100 this will pipe any thing from that gid into pipe 2... and pipe 2 is bw limited at 16KBps... the only dif is that you will have to change the packet matching setup... On Sat, 14 Feb 2004 15:19:28 +0200 "Markus Kovero" wrote: > I've got 172.16.0.0/24 network that is connected to internet via vpn > gre tunnel. > And now I've had bit hard time doing bandwidth control, maybe I'm > missing something. > > I've set ipfw pipes like this: > ipfw add queue 1 gre from any to 172.16.0.0/24 > ipfw queue 1 config weight 5 pipe 2 mask dst-ip 0x000000ff > ipfw pipe 2 config bw 1500Kbit/s > ipfw add queue 2 gre from 172.16.0.0/24 to any > ipfw queue 2 config weight 20 pipe 3 mask src-ip 0x000000ff > ipfw pipe 3 config bw 256Kbit/s > > net.inet.ip.fw.one_pass: 0 > > 65100 queue 1 gre from any to 172.16.0.0/24 > 65200 queue 2 gre from 172.16.0.0/24 to any > > 00002: 1.500 Mbit/s 0 ms 50 sl. 0 queues (1 buckets) droptail > mask: 0x00 0x00000000/0x0000 -> 0x00000000/0x0000 > 00003: 256.000 Kbit/s 0 ms 50 sl. 0 queues (1 buckets) droptail > mask: 0x00 0x00000000/0x0000 -> 0x00000000/0x0000 > q00001: weight 5 pipe 2 50 sl. 0 queues (64 buckets) droptail > mask: 0x00 0x00000000/0x0000 -> 0x000000ff/0x0000 > q00002: weight 20 pipe 3 50 sl. 0 queues (64 buckets) droptail > mask: 0x00 0x000000ff/0x0000 -> 0x00000000/0x0000 > > It seems to have no effect on network. What I'm missing? > (replacing gre-protocol with ip doesn't help) > > Markus Kovero > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"