From owner-freebsd-net@FreeBSD.ORG Sun Aug 15 10:45:01 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BFBBD16A4CE for ; Sun, 15 Aug 2004 10:45:01 +0000 (GMT) Received: from shellma.zin.lublin.pl (shellma.zin.lublin.pl [212.182.126.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id E296743D45 for ; Sun, 15 Aug 2004 10:45:00 +0000 (GMT) (envelope-from pawmal-posting@freebsd.lublin.pl) Received: by shellma.zin.lublin.pl (Postfix, from userid 1018) id E4B943474C1; Sun, 15 Aug 2004 12:42:43 +0200 (CEST) Date: Sun, 15 Aug 2004 12:42:43 +0200 From: Pawel Malachowski To: Fargo Holiday Message-ID: <20040815104243.GA43915@shellma.zin.lublin.pl> References: <4a1299a404081414287a9ecbc@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4a1299a404081414287a9ecbc@mail.gmail.com> User-Agent: Mutt/1.4.2i cc: freebsd-net@freebsd.org Subject: Re: [FreeBSD 5.2] Bandwith and packet throttling X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Aug 2004 10:45:01 -0000 On Sat, Aug 14, 2004 at 02:28:36PM -0700, Fargo Holiday wrote: > Here are the rules I've been trying, let me know if this not correct: > > ipfw pipe 1 config bw 50Kbit/s queue 10 delay 2000ms #outbound > ipfw pipe 2 config bw 150Kbit/s queue 10 delay 2000ms #inbound > ipfw add deny icmp from any to any Blocking all ICMP traffic is a Very Bad Thing. > ipfw add pipe 1 all from 10.0.0.8 to any > ipfw add pipe 2 all from any to 10.0.0.8 > > The painful delay was to test if the pipes were actually working, but > never seemed to make a difference. Try: ipfw show ipfw pipe show 1 ipfw pipe show 2 and look at counters. -- Paweł Małachowski