From owner-freebsd-questions@FreeBSD.ORG Tue Apr 1 23:43:31 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E03401065670 for ; Tue, 1 Apr 2008 23:43:31 +0000 (UTC) (envelope-from LukeD@pobox.com) Received: from sasl.smtp.pobox.com (a-sasl-fastnet.sasl.smtp.pobox.com [207.106.133.19]) by mx1.freebsd.org (Postfix) with ESMTP id B4DDD8FC1D for ; Tue, 1 Apr 2008 23:43:31 +0000 (UTC) (envelope-from LukeD@pobox.com) Received: from localhost.localdomain (localhost [127.0.0.1]) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTP id E6B292BA1; Tue, 1 Apr 2008 19:43:28 -0400 (EDT) Received: from lukas.is-a-geek.org (pool-71-113-78-181.sttlwa.dsl-w.verizon.net [71.113.78.181]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTP id AFF4E2BA0; Tue, 1 Apr 2008 19:43:24 -0400 (EDT) Date: Tue, 1 Apr 2008 16:43:07 -0700 (PDT) From: Luke Dean X-X-Sender: lukas@border.lukas.is-a-geek.org To: freebsd@top-consulting.net In-Reply-To: <20080401181836.13596owuuxf9az48@mail.top-consulting.net> Message-ID: <20080401163754.U40377@border.lukas.is-a-geek.org> References: <20080401181836.13596owuuxf9az48@mail.top-consulting.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD Traffic Shaping X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Luke Dean List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2008 23:43:32 -0000 On Tue, 1 Apr 2008, freebsd@top-consulting.net wrote: > I am trying to limit the bandwidth available to some connections and I'm not > sure FreeBSD can handle this. Maybe some of you can help. Here's what I need > to have exactly. > > No matter what the number of connections, each connection should have at > most/least 50kbps guaranteed outbound on port 80. > > I've tried dummynet but it doesn't do what I need because if I define a pipe > with 1mbps and if I have 1000 connections, each connection will have less > than 50kbps. > > Any way to do this in FreeBSD ? I can't think of any way to dynamically allocate a new pipe for each individual connection with any firewall software I've used. Have you considered getting your web server to do the limiting for you? I think "mod_bandwidth" for Apache is designed to do what you're asking, but I've never used it.