From owner-freebsd-ipfw Tue Apr 16 8:51:19 2002 Delivered-To: freebsd-ipfw@freebsd.org Received: from opensrs.saignon.net (211.saignon.net [63.210.176.211]) by hub.freebsd.org (Postfix) with ESMTP id A046037B405 for ; Tue, 16 Apr 2002 08:51:15 -0700 (PDT) Received: from frankenmobl (opensrs.saignon.net [63.210.176.211]) by opensrs.saignon.net (8.11.6/8.11.3) with ESMTP id g3G5uUj16069 for ; Mon, 15 Apr 2002 22:56:30 -0700 (PDT) (envelope-from tony@saign.com) From: "Tony Saign" To: Subject: Limiting bw w/ dummynet question. Date: Mon, 15 Apr 2002 22:55:32 -0700 Message-ID: <000001c1e50b$521826c0$1401a8c0@frankenmobl> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Sender: owner-freebsd-ipfw@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG After reading the man page for dummynet, I'm confused! xeon# ipfw pipe 1 config bw 384Kbit/s xeon# ipfw pipe 2 config bw 384Kbit/s xeon# ipfw add pipe 1 ip from 192.168.1.19 to any out 00400 pipe 1 ip from 192.168.1.19 to any out xeon# ipfw add pipe 2 ip from any to 192.168.1.19 in 00450 pipe 2 ip from any to 192.168.1.19 in xeon# ipfw show 00050 827195 473961009 divert 8668 ip from any to any via fxp0 00100 0 0 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 00400 0 0 pipe 1 ip from 192.168.1.19 to any out 00450 4283 4567749 pipe 2 ip from any to 192.168.1.19 in 65000 1732420 1009118949 allow ip from any to any 65535 0 0 deny ip from any to any xeon# ipfw pipe list 00001: 384.000 Kbit/s 0 ms 50 sl. 0 queues (1 buckets) droptail mask: 0x00 0x00000000/0x0000 -> 0x00000000/0x0000 00002: 384.000 Kbit/s 0 ms 50 sl. 0 queues (1 buckets) droptail mask: 0x00 0x00000000/0x0000 -> 0x00000000/0x0000 System is a router/dhcpd box. fxp0 is inet, fxp1 is internal Shouldn't the above "cap" both directions @ 384? It appears to only cap download, but not upload. -Tony To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ipfw" in the body of the message