From owner-freebsd-net@FreeBSD.ORG Tue Jan 3 10:38:58 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 82C5116A420 for ; Tue, 3 Jan 2006 10:38:58 +0000 (GMT) (envelope-from budiyt@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 20D2643D45 for ; Tue, 3 Jan 2006 10:38:58 +0000 (GMT) (envelope-from budiyt@gmail.com) Received: by zproxy.gmail.com with SMTP id 9so2492288nzo for ; Tue, 03 Jan 2006 02:38:56 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=sE1dUX++Kh4DF8LEKnzrzldFbyctzHLKFDAkPjtuYyq+daNVAevRNs33iCTDqioSm4aL7M5VhNE82aqmmv4+0Y1Ah1VhPKsfc78Mh9xpGhGKp7vlY3Cg1DctDYh346WiQiSLkRzfk2mI332gI7tmSyWQqStSkLpryNlr7JU5zfI= Received: by 10.36.84.18 with SMTP id h18mr3313147nzb; Tue, 03 Jan 2006 02:38:56 -0800 (PST) Received: by 10.36.90.5 with HTTP; Tue, 3 Jan 2006 02:38:56 -0800 (PST) Message-ID: <4d4dc3640601030238r2faf55bua234869c396b76f6@mail.gmail.com> Date: Tue, 3 Jan 2006 17:38:56 +0700 From: budsz To: freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: Need help WFQ 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: Tue, 03 Jan 2006 10:38:58 -0000 Hi, I hope you give me some advice or explaination about Dummynet. I've googling/experiment for three a month to get the right answer how to use WF2Q+ with Dummynet. I've a small internet cafe and after 4 years using FreeBSD+Dummynet with hardlink limiting policy. Here for WF2Q+ implementation in my internet cafe: In /etc/rc.firewall look like: # IP Address variable ip_cl_01=3D"192.168.0.1/32" ip_cl_10=3D"192.168.0.10/32" ip_cl_11=3D"192.168.0.11/32" ip_cl_12=3D"192.168.0.12/32" ip_cl_13=3D"192.168.0.13/32" ip_cl_14=3D"192.168.0.14/32" ip_cl_50=3D"192.168.0.50/32" # Bandwidth variable bw_share=3D"152Kbit/s" ${fwcmd} add 104 queue 1 ip from ${ip_cl_01} to any via ${eth_1} ${fwcmd} add 105 queue 1 ip from any to ${ip_cl_01} via ${eth_1} ${fwcmd} add 106 queue 2 ip from ${ip_cl_10} to any via ${eth_1} ${fwcmd} add 107 queue 2 ip from any to ${ip_cl_10} via ${eth_1} ${fwcmd} add 108 queue 3 ip from ${ip_cl_11} to any via ${eth_1} ${fwcmd} add 109 queue 3 ip from any to ${ip_cl_11} via ${eth_1} ${fwcmd} add 110 queue 4 ip from ${ip_cl_12} to any via ${eth_1} ${fwcmd} add 111 queue 4 ip from any to ${ip_cl_12} via ${eth_1} ${fwcmd} add 112 queue 5 ip from ${ip_cl_13} to any via ${eth_1} ${fwcmd} add 113 queue 5 ip from any to ${ip_cl_13} via ${eth_1} ${fwcmd} add 114 queue 6 ip from ${ip_cl_14} to any via ${eth_1} ${fwcmd} add 115 queue 6 ip from any to ${ip_cl_14} via ${eth_1} ${fwcmd} add 116 queue 7 ip from ${ip_cl_50} to any via ${eth_1} ${fwcmd} add 117 queue 7 ip from any to ${ip_cl_50} via ${eth_1} ${fwcmd} queue 1 config pipe 3 weight 3 mask all ${fwcmd} queue 2 config pipe 3 weight 3 mask all ${fwcmd} queue 3 config pipe 3 weight 3 mask all ${fwcmd} queue 4 config pipe 3 weight 3 mask all ${fwcmd} queue 5 config pipe 3 weight 3 mask all ${fwcmd} queue 6 config pipe 3 weight 3 mask all ${fwcmd} queue 7 config pipe 3 weight 1 mask all ${fwcmd} pipe 3 config bw ${bw_share} With that rule I want to limit every client (IN/OUT) with ratio: for ex: client-01 =3D> 3/19 * 152 Kbit/s =3D 24 Kbit/s client-10 =3D> 3/19 * 153 Kbit/s =3D 24 Kbit/s etc.. I assume all of my client already active using internet. But sometime "client-11" always get 100 Kbit/s. Does my rule is OK? if not, would you give me example the right rule for this situation, of couse with clarification (step by step). FYI, I use FreeBSD 4.10-RELEASE & FreeBSD 4.11-STABLE. Thanks You. -- budsz