From owner-freebsd-questions@FreeBSD.ORG Tue Feb 13 23:21:33 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9D24816A400 for ; Tue, 13 Feb 2007 23:21:33 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 618A913C4B2 for ; Tue, 13 Feb 2007 23:21:33 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HH6xi-0007Ol-4P for freebsd-questions@freebsd.org; Wed, 14 Feb 2007 00:21:26 +0100 Received: from c-67-188-32-116.hsd1.ca.comcast.net ([67.188.32.116]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 14 Feb 2007 00:21:26 +0100 Received: from jsd by c-67-188-32-116.hsd1.ca.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 14 Feb 2007 00:21:26 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Jon Drukman Date: Tue, 13 Feb 2007 15:20:52 -0800 Lines: 31 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: c-67-188-32-116.hsd1.ca.comcast.net User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Sender: news Subject: Bandwidth limiting with ipfw and dummynet X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Feb 2007 23:21:33 -0000 I'd like to limit him to 384Kbit/sec.Can someone help me get bandwidth limiting working? I've tried all the examples I could find via google but none of them work. My roomate is frequently uploading stuff to his office, and when he does, it completely saturates our outbound link and makes everything very pokey. His IP address is 10.0.2.195 and we've got FreeBSD set up as a router for our cable modem, with natd. I added the pipe to limit the bw: ipfw pipe 1 config bw 384Kbit I added a rule for his IP: ipfw add 10 pipe 1 tcp from 10.0.2.195 to any Doing ipfw show doesn't show any packets ever matching that rule. # ipfw show 00010 0 0 pipe 1 tcp from 10.0.2.195 to any 00015 0 0 pipe 1 tcp from any to 10.0.2.195 00050 21745 18784920 divert 8668 ip from any to any via dc0 00100 8 1036 allow ip from any to any via lo0 00200 0 0 deny ip from any to 127.0.0.0/8 00300 0 0 deny ip from 127.0.0.0/8 to any 65000 44051 37589386 allow ip from any to any 65535 0 0 deny ip from any to any Is the natd divert rule somehow interfering? -jsd-