From owner-freebsd-pf@FreeBSD.ORG Thu Nov 16 19:32:58 2006 Return-Path: X-Original-To: freebsd-pf@freebsd.org Delivered-To: freebsd-pf@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 520A716A513 for ; Thu, 16 Nov 2006 19:32:58 +0000 (UTC) (envelope-from linux@giboia.org) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id 90CA843D5A for ; Thu, 16 Nov 2006 19:32:57 +0000 (GMT) (envelope-from linux@giboia.org) Received: by ug-out-1314.google.com with SMTP id o2so485977uge for ; Thu, 16 Nov 2006 11:32:56 -0800 (PST) Received: by 10.78.128.15 with SMTP id a15mr976146hud.1163705576396; Thu, 16 Nov 2006 11:32:56 -0800 (PST) Received: by 10.78.175.17 with HTTP; Thu, 16 Nov 2006 11:32:56 -0800 (PST) Message-ID: <6e6841490611161132t4e5a0f14ne470540f86ded273@mail.gmail.com> Date: Thu, 16 Nov 2006 17:32:56 -0200 From: "Gilberto Villani Brito" To: "FreeBSD (PF)" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Subject: Re: Traffic shapping with pf hfsc and prioritizing based on group X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Nov 2006 19:32:58 -0000 I think somethink like this: altq on em0 hfsc bandwidth 100% queue net_em0 queue net_em0 bandwidth 14Mb hfsc(red realtime 14Mb upperlimit 14Mb) { priority7_em0 priority6_em0 priority5_em0 priority4_em0 priority3_em0 default_em0} queue priority7_em0 bandwidth 10Mb priority 7 hfsc(red realtime 10Mb upperlimit 14Mb) queue priority6_em0 bandwidth 1Mb priority 6 hfsc(red realtime 10Mb upperlimit 14Mb) queue priority5_em0 bandwidth 1Mb priority 5 hfsc(red realtime 10Mb upperlimit 14Mb) queue priority4_em0 bandwidth 1Mb priority 4 hfsc(red realtime 10Mb upperlimit 14Mb) queue default_em0 bandwidth 1Mb priority 1 hfsc(default) Can resolve your problem. Gilberto 2006/11/13, Gloomy Group : > Hi, > > As I'm new in packet filter I will like to get some help in setting > my configuration for bandwidth shapping with altq hfsc. Below will be my > network layout; > > VSAT for uplink only > | > Router > | > -|------Normal Switch------------------| > | > DVB for downlink > | > rl0 interface > | > Freebsd shaper/gateway > | > rl1 interface > | > Switch > > |---------------------|---------|---------|-------------------|----------------------------------| > Dialup users Cable users webserver proxy > servers Wireless users > > > What I want to do here is rl0 interface will be used for shapping uplink > traffic whereas rl1 interface will shape only downlink traffic to my network > group. Cable users will get higher priority than wireless users. Has anyone > got sample configuration with this network layout? > > _________________________________________________________________ > Stay in touch with old friends and meet new ones with Windows Live Spaces > http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us > > _______________________________________________ > freebsd-pf@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-pf > To unsubscribe, send any mail to "freebsd-pf-unsubscribe@freebsd.org" >