From owner-freebsd-ipfw@FreeBSD.ORG Sat Jan 5 12:51:14 2013 Return-Path: Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 9128A1EF for ; Sat, 5 Jan 2013 12:51:14 +0000 (UTC) (envelope-from sodynet1@gmail.com) Received: from mail-ie0-f182.google.com (mail-ie0-f182.google.com [209.85.223.182]) by mx1.freebsd.org (Postfix) with ESMTP id 3F538D22 for ; Sat, 5 Jan 2013 12:51:14 +0000 (UTC) Received: by mail-ie0-f182.google.com with SMTP id s9so20754970iec.41 for ; Sat, 05 Jan 2013 04:51:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=9Z9by3GvWIPFRRogt+cgRqlM9lEq4uA8ZZdj3ITu1EE=; b=u8GZypqtBzKVzaVY9HIGbxDRAxPuoaMppPhWQwrh2CmseOQyh6wgmNwT4OpMZEg9W1 UQu6upYM5rOluFSShq+UZPiXwXxBhesOxiFCckvblJTamrEaN2FCJW2uDIxs0B/5cpac a9b4T/IZxQJMT2CTLlZh43kQPhSpAzfPu96KCyZev4pfEu6idVPFwT9/BUno9y9q3kDK bT6ZBRH2a785SLnfwEYR8oJohovLPXXfbu2//RCabKr/oHNOl3T1pGG5c7RcW/CcBIxp bw0bMOgYRQdpeYMCS7uqc+bKZMn2wLHjawOEhnb3dde4YZQa5giRC8jzX04qLTuQ5xpV e+Fw== MIME-Version: 1.0 Received: by 10.50.151.241 with SMTP id ut17mr1365250igb.107.1357390267846; Sat, 05 Jan 2013 04:51:07 -0800 (PST) Received: by 10.64.51.98 with HTTP; Sat, 5 Jan 2013 04:51:07 -0800 (PST) In-Reply-To: References: <20130103082937.GB54360@onelab2.iet.unipi.it> Date: Sat, 5 Jan 2013 14:51:07 +0200 Message-ID: Subject: Re: Limit Session Bandwidth From: Sami Halabi To: =?ISO-8859-1?Q?=D6zkan_KIRIK?= Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-ipfw , Luigi Rizzo X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jan 2013 12:51:14 -0000 Hi Luigi & Ozkan, Thanks for the response. Luigi i saw you said in some list never trust italians :), so i went step by step. first i put: me out from a pipe sysctl net.inet.ip.fw.one_pass=3D0 ipfw pipe 123 config bw 1Mbit/s mask all ipfw add 100 pipe 123 out ipfw add 120 allow ip from any to any Works like a charm. Next Step wil be: ipfw pipe 456 config bw 10Mbit/s ipfw sched 789 config mask all pipe 123 or it should be: ipfw sched 789 config mask all pipe 456 ?? ipfw add 110 queue 789 out whats is the correct configuration ? the mask options isn't well documented, in the handbook its not even mentiond. same goes for scheduler... I got the feeling that only few here know the options very welll... maybe I'm wrong? Sami On Thu, Jan 3, 2013 at 12:46 PM, =D6zkan KIRIK wrot= e: > I think there is a mistake at the sched config line. it should be as > ipfw sched 789 config mask all pipe 456 > > > On Thu, Jan 3, 2013 at 10:29 AM, Luigi Rizzo wrote: > >> ipfw sched 789 config mask all pipe 123 > > > --=20 Sami Halabi Information Systems Engineer NMS Projects Expert FreeBSD SysAdmin Expert