Date: Sat, 13 Oct 2007 00:17:32 +0200 From: Ovi <ovi@unixservers.us> To: Free BSD Questions list <freebsd-questions@freebsd.org> Subject: PF ALTQ CBQ rules Message-ID: <470FF27C.7050806@unixservers.us>
next in thread | raw e-mail | index | archive | help
Hello guys I have this example from OpenBSD: altq on $br1_if cbq bandwidth 20Mb qlimit 100 tbrsize 1000 queue { std1, customer_1 } queue customer_1 bandwidth 1Mb cbq(red,ecn) { customer_1_bulk, customer_1_ack } queue customer_1_ack priority 7 queue customer_1_bulk priority 0 I want to use CBQ on FreeBSD, with similar rules still I have the following problem: On a 20Mb internet line I have 100 users. I want to limit (cap) bandwidth per user at 1 Mb and to add queues for all 100 users. The problem is that on FreeBSD this rules are not working, instead I must use this: altq on $br1_if cbq bandwidth 20Mb qlimit 100 tbrsize 1000 queue { std1, customer_1 } queue customer_1 bandwidth 1Mb cbq(red,ecn) { customer_1_bulk, customer_1_ack } queue customer_1_ack bandwidth 800Kb priority 7 queue customer_1_bulk bandwidth 128Kb priority 0 This "bandwidth" option does not help me because I must not exceed 1 Mb. My second problem is if I have 100 users, then toal of 1Mb x 100 will be 100Mb and I exceed total bandwidth of 20 Mb. So my question is: how I do bandwidthupper limit with CBQ per user, like no more than 1 Mb, and add rules for 100 users? best regards, ovi
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?470FF27C.7050806>