From owner-freebsd-questions@FreeBSD.ORG Sat Mar 12 09:50:59 2005 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 E168416A4CE for ; Sat, 12 Mar 2005 09:50:59 +0000 (GMT) Received: from hotmail.com (bay16-f40.bay16.hotmail.com [65.54.186.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC71C43D2F for ; Sat, 12 Mar 2005 09:50:59 +0000 (GMT) (envelope-from psps2@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 12 Mar 2005 01:50:59 -0800 Message-ID: Received: from 80.84.141.22 by by16fd.bay16.hotmail.msn.com with HTTP; Sat, 12 Mar 2005 09:50:59 GMT X-Originating-IP: [80.84.141.22] X-Originating-Email: [psps2@hotmail.com] X-Sender: psps2@hotmail.com From: "F. Banna" To: freebsd-questions@FreeBSD.org Date: Sat, 12 Mar 2005 09:50:59 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 12 Mar 2005 09:50:59.0721 (UTC) FILETIME=[FEB10790:01C526E8] Subject: Bridge and dummynet 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, 12 Mar 2005 09:51:00 -0000 Good Day Guys. I installed FreeBSD 5.3 and everything worked fine . i recompiled the kernel included options for IPDIVERT IPFIREWALL IPFIREWALL_VERBOSE BRIDGE everything went fine i did the systcl to load the two network cards as should be sysctl net.link.ether.bridge.config=rl0:0,rl1:0 sysctl net.link.ether.bridge.ipfw=1 sysctl net.link.ether.bridge.enable=1 schema client 1 FreeBSD bridge /------------------\ /-----------------------\ /------------------------\ a.b.c.d |----------------------|rl0 - -rl1|-----------------| external network| \------------------/ \-----------------------/ \------------------------/ so far everything is working fine . now my internal network is connected physically to rl0. i want to rate limit ip a.b.c.d from internal network to 32Kbit uplink and 128Kbit downlink ..... in the manual and documention given on the sites it helps but not on the same network card as needed in here ! i was successfull to rate limit uplink but not downlink ! as such ipfw pipe 1 config bw 32Kbit/s queue 4Kbyte ipfw add pipe 1 all from a.b.c.d to any in recv rl0 # uplink limitation works fine ipfw pipe 2 config bw 128Kbit/s queue 4Kbyte ipfw add pipe 2 all from any to a.b.c.d out xmit rl0 # downlink doesn't match if there is something i missed then feel free to guide me . else if its possible for someone parse his/her connfiguration Thanks F. B.