From owner-freebsd-net@FreeBSD.ORG Mon Nov 6 12:09:37 2006 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 D9B8116A417 for ; Mon, 6 Nov 2006 12:09:37 +0000 (UTC) (envelope-from beastie@mra.co.id) Received: from mx1.mra.co.id (fw.mra.co.id [202.57.14.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1186C43D77; Mon, 6 Nov 2006 12:09:16 +0000 (GMT) (envelope-from beastie@mra.co.id) Received: from localhost (localhost.mra.co.id [127.0.0.1]) by mx1.mra.co.id (Postfix) with ESMTP id 2F02A72393; Mon, 6 Nov 2006 19:19:38 +0700 (WIT) Received: from mx1.mra.co.id ([127.0.0.1]) by localhost (mx1.mra.co.id [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28777-22; Mon, 6 Nov 2006 19:19:37 +0700 (WIT) Received: from beastie.mra.co.id (unknown [172.16.0.228]) by mx1.mra.co.id (Postfix) with ESMTP id EE8D672461; Mon, 6 Nov 2006 19:19:36 +0700 (WIT) From: Muhammad Reza To: freebsd-net@freebsd.org, freebsd-question@freebsd.org Content-Type: text/plain Date: Mon, 06 Nov 2006 08:15:40 +0700 Message-Id: <1162775740.16879.8.camel@beastie.mra.co.id> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 (2.0.2-8) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at mra.co.id Cc: Subject: pf.conf + altq problem 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, 06 Nov 2006 12:09:37 -0000 Dear All. I start with the simple rule set in my pf bridge machine to limit bandwidth 3Mbps from my server on lan to internet and from internet to my server on lan my_server_on_lan="172.16.0.228" internet="202.x.x.x" lan = "172.16.0.0/16" altq on xl1 bandwidth 100% cbq queue \ {int_out,dflt_out} queue int_out bandwidth 3Mb queue dflt_out bandwidth 16Kb cbq (default) altq on xl2 bandwidth 100% cbq queue {int_in,dflt_in} queue int_in bandwidth 3Mb queue dflt_in bandwidth 16Kb cbq (default) pass in on xl1 from any to $lan pass out on xl1 from $lan to any pass out on xl1 from $my_server_on_lan to $internet \ keep state queue (int_out) pass in on xl2 from $lan to any keep state pass out on xl2 from any to $lan keep state pass out on xl2 from $internet to $my_server_on_lan \ keep state queue (int_in) I have done some test with iperf with no luck. Is there something wrong with this rule set to acompilished my need ? Please help