Date: Mon, 12 Nov 2007 16:33:30 +0200 From: Jeremy <mail.listesi@gmail.com> To: "Rob Shepherd" <rob@techniumcast.com> Cc: freebsd-pf@freebsd.org Subject: Re: Giving all hosts on network same bandwidth Message-ID: <c06ee1570711120633n6da5e3bek541895fc84159186@mail.gmail.com> In-Reply-To: <47382493.9040202@techniumcast.com> References: <c06ee1570711120045l3fc72186t8a579e46cf9269b2@mail.gmail.com> <47382493.9040202@techniumcast.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Nov 12, 2007 12:01 PM, Rob Shepherd <rob@techniumcast.com> wrote: > > If the question is: "Can I assign all hosts on a network to a single queue?", > then YES. no, i dont want to assign each addresses to single queue or every addresses to more queues one by one, is there solution in network address rules just like that pass out on dc0 inet proto tcp from $employeehosts to any port 80 keep state queue employees altq on dc0 scheduler cbq bandwidth 10Mb queue { std, http, mail, ssh } queue std bandwidth 10% cbq(default) queue http bandwidth 60% priority 2 cbq(borrow red) { employees, developers } queue developers bandwidth 75% cbq(borrow) queue employees bandwidth 15% queue mail bandwidth 10% priority 0 cbq(borrow ecn) queue ssh bandwidth 20% cbq(borrow) { ssh_interactive, ssh_bulk } queue ssh_interactive bandwidth 100% priority 7 queue ssh_bulk bandwidth 100% priority 0 pass out on dc0 inet proto tcp from $employeehosts to any port 80 keep state queue employees this example qives employeehosts 15% of total bandwidth but i want to give each hosts to same bandwidth ( for example i have 10Mb bandwidth and 20 hosts iwant to give each of hosts to 512 K .if i use 10M in altq rules some hosts' have 9M bandwitdh and some have 1M ) . is that possible writing without all of ip addresses in rules pass out on dc0 inet proto tcp from $employee1 to any port 80 keep state queue employees pass out on dc0 inet proto tcp from $employee2 to any port 80 keep state queue employees pass out on dc0 inet proto tcp from $employee3 to any port 80 keep state queue employees pass out on dc0 inet proto tcp from $employee4 to any port 80 keep state queue employees pass out on dc0 inet proto tcp from $employee5 to any port 80 keep state queue employees pass out on dc0 inet proto tcp from $employee6 to any port 80 keep state queue employees ....... pass out on dc0 inet proto tcp from $employee20 to any port 80 keep state queue employees this is silly > > queue assignment is by pf rules; whatever you can match you can assign to a queue. > > There is an example of matching whole networks and assigning to queues at the > bottom of http://www.openbsd.org/faq/pf/queueing.html > > Rob > > -- > Rob Shepherd BEng PhD | Computer and Network Engineer | CAST Ltd > Technium CAST | LL57 4HJ | http://www.techniumcast.com >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c06ee1570711120633n6da5e3bek541895fc84159186>