From owner-freebsd-net@FreeBSD.ORG Mon Jul 11 07:39:06 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org 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 8430816A425 for ; Mon, 11 Jul 2005 07:39:06 +0000 (GMT) (envelope-from olsson@puffy.nu) Received: from mail-srv1.teleservice.net (mail-srv1.teleservice.net [193.109.175.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 02F5B43D55 for ; Mon, 11 Jul 2005 07:39:05 +0000 (GMT) (envelope-from olsson@puffy.nu) Received: from [193.109.175.118] by mail-srv1.sjobo.nu (GMS 11.00.3335/NU2793.00.3c1025a7) with ESMTP id rgkryeaa for freebsd-net@freebsd.org; Mon, 11 Jul 2005 09:39:04 +0200 Message-ID: <42D22214.2060804@puffy.nu> Date: Mon, 11 Jul 2005 09:39:00 +0200 From: Philip Olsson User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050526) X-Accept-Language: en-us, en MIME-Version: 1.0 To: fooler , freebsd-net@freebsd.org References: <42D2151B.4020807@puffy.nu> <02ae01c585e9$b1f64c70$42764eca@ilo.skyinet.net> In-Reply-To: <02ae01c585e9$b1f64c70$42764eca@ilo.skyinet.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: ipfw+dummynet only getting half bandwidth when using routed interfaces. X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jul 2005 07:39:06 -0000 fooler wrote: >----- Original Message ----- >From: "Philip Olsson" >To: >Sent: Monday, July 11, 2005 2:43 PM >Subject: ipfw+dummynet only getting half bandwidth when using >routedinterfaces. > > > > >>This is a typo, sorry! >>Supposed to be 2048Kbit/s >> >> > >ok.... > > > >>This is my conf: >> >>ipfw add pipe 1 ip from 192.168.1.1 to any out >>ipfw add pipe 2 ip from any to 192.168.1.1 in >>ipfw pipe 1 config bw 2048Kbit/s >>ipfw pipe 2 config bw 2048bit/s >> >> > >i think one of the first two lines is only process instead of the two for >incoming and outgoing.... > >please try this configuration first... > >ipfw add pipe 1 ip from any to any out via >ipfw add pipe 2 ip from any to any in via >ipfw pipe 1 config bw 2048Kbit/s >ipfw pipe 2 config bw 2048Kbit/s > >if you getting full instead of half... then going back to your first >configuration by doing an ipfw show determines which line wasnt processed by >looking the number of packets flowing in it... > both counters increase.. and the last one "allow ip from any to any" But I guess that is because it matches the rules two times. I have tried only having one rule but the same problem ( ofcourse only one way. ) I have also experimented with recv and xmit without success.. // Philip