Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Jan 2013 14:51:07 +0200
From:      Sami Halabi <sodynet1@gmail.com>
To:        =?ISO-8859-1?Q?=D6zkan_KIRIK?= <ozkan.kirik@gmail.com>
Cc:        freebsd-ipfw <freebsd-ipfw@freebsd.org>, Luigi Rizzo <rizzo@iet.unipi.it>
Subject:   Re: Limit Session Bandwidth
Message-ID:  <CAEW%2BogbMZ7vmO0Jp%2BBHO4NmfDbbGHZai09RwG9aE1bQ_jwHswg@mail.gmail.com>
In-Reply-To: <CAAcX-AFC9zBdGax71OM_YGqtczyYB_G2GUMbVymEsRHB8rYzxQ@mail.gmail.com>
References:  <CAEW%2BogbGVYLiuPesyR5qTcjhMVFvbzU-yYX8CRbJ_Hs3C6RpMQ@mail.gmail.com> <20130103082937.GB54360@onelab2.iet.unipi.it> <CAAcX-AFC9zBdGax71OM_YGqtczyYB_G2GUMbVymEsRHB8rYzxQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <ozkan.kirik@gmail.com> 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 <rizzo@iet.unipi.it> wrote:
>
>> ipfw sched 789 config mask all pipe 123
>
>
>


--=20
Sami Halabi
Information Systems Engineer
NMS Projects Expert
FreeBSD SysAdmin Expert



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAEW%2BogbMZ7vmO0Jp%2BBHO4NmfDbbGHZai09RwG9aE1bQ_jwHswg>