From owner-freebsd-questions Thu Oct 18 10:38:46 2001 Delivered-To: freebsd-questions@freebsd.org Received: from tcpns.com (dsl-64-192-239-221.telocity.com [64.192.239.221]) by hub.freebsd.org (Postfix) with ESMTP id E989037B403 for ; Thu, 18 Oct 2001 10:38:39 -0700 (PDT) Received: from bemused.tcpns.com (localhost.tcpns.com [127.0.0.1]) by tcpns.com (8.12.1/8.12.1) with ESMTP id f9IHcXeg033989; Thu, 18 Oct 2001 13:38:36 -0400 (EDT) Received: from localhost (jcborkow@localhost) by bemused.tcpns.com (8.12.1/8.12.1/Submit) with ESMTP id f9IHcWbv033986; Thu, 18 Oct 2001 13:38:32 -0400 (EDT) Date: Thu, 18 Oct 2001 13:38:32 -0400 (EDT) From: Jason Borkowsky To: questions@freebsd.org Cc: josh@bitstream.net Subject: Re: ftp hogging Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I don't know if anybody answered this, but if you use IPFW, you can do this easily as follows: ipfw pipe 10 config bw 16Kbit/s queue 100 where "pipe 10" is the ID of the pipe, bw is the bandwidth of the pipe, and queue is the number of packets this pipe queue will hold while waiting for transmission. The above command defines to the pipe. To use it, add the next line as well: ipfw add pipe 10 tcp from any 22 to any out xmit fxp0 where "pipe 10" is the ID again of the pipe to use, 22 is the ftp TCP protocol number, and fxp0 is the outgoing interface. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message