[Firehol-support] Sharing bandwidth evenly between users

Paolo Prandini prandini at spe.net
Fri Jul 22 09:43:42 BST 2016


Thanks a lot!
Paolo

On 22/07/2016 10:09, Tsaousis, Costa wrote:
> ok, here they are:
>
> To create sub-classes, use something like this:
>
> class group NAME ... # same parameters with other classes
>       match ... # matches for everything all subclasses will need to match
>
>       class NAME ... # a subclass
>           match ... # match traffic for this specific subclass
>
> class group end
>
>
> So, let's assume that you have a class C 10.1.1.0/24 <http://10.1.1.0/24> and you want to balance them. Do this:
>
> class group pcs # add prio, commit or any other options here
>
>      # match the whole class C
>      match net 10.1.1.0/24 <http://10.1.1.0/24>
>
>      for x in {1..255}; do
>          # create a class for each PC
>          # matching the IP of each PC
>          class pc${x} prio 4 # all should have the same priority - add other options you need
>              match ip 10.1.1.${x}
>      done
>
> class group end
>
> Costa
>
>
>
> On Fri, Jul 22, 2016 at 10:55 AM, Paolo Prandini <prandini at spe.net <mailto:prandini at spe.net>> wrote:
>
>     Yes I am using it since 2 years.
>     The hint is about this part:
>     "create a class called pcs and then using a BASH loop, within the pcs class, create subclasses, one for each PC IP, all using the same priority"
>     not about fireqos in general
>     I suppose I have to write something like
>     class pcs
>              match ip xx.xx.xx.xx prio 1
>     The unknown parts are:
>     1) create subclasses
>     2) using a bash loop
>     Both those concepts are not explained in any tutorial or document I could find about fireqos.
>     I am not asking you to write all the configuration for me, but maybe some clarification about
>     those concepts could be useful to many users, and an example helps more than anything!
>     Thanks
>     Paolo
>
>     On 22/07/2016 09:42, Tsaousis, Costa wrote:
>
>         Paolo,
>
>         Have you read the tutorial?
>
>         http://firehol.org/tutorial/fireqos-new-user/
>
>         Costa
>
>
>         On Fri, Jul 22, 2016 at 10:09 AM, Paolo Prandini <prandini at spe.net <mailto:prandini at spe.net> <mailto:prandini at spe.net <mailto:prandini at spe.net>>> wrote:
>
>              Sorry for the question, but maybe you could give me an hint about
>              writing down this kind of code...
>              Thanks a lot,
>              Paolo
>
>              On 21/07/2016 17:42, Tsaousis, Costa wrote:
>
>                  Mikrotik has pcq. In linux I think there is no equivalent, but you can do this easily in fireqos.
>
>                  You should know:
>
>                  1. fireqos supports thousands of queues per interfaces
>                  2. fireqos supported nested queues (any depth is ok)
>                  3. fireqos.conf is a BASH script - you can write in it anything BASH accepts
>
>                  So, create a class called pcs and then using a BASH loop, within the pcs class, create subclasses, one for each PC IP, all using the same priority.
>
>                  This is it. They will be perfectly balanced.
>
>                  Costa
>
>                  On Thu, Jul 21, 2016 at 10:11 AM, Paolo Prandini <prandini at spe.net <mailto:prandini at spe.net> <mailto:prandini at spe.net <mailto:prandini at spe.net>> <mailto:prandini at spe.net <mailto:prandini at spe.net> <mailto:prandini at spe.net <mailto:prandini at spe.net>>>> wrote:
>
>                       Hi everybody, is there a way with fireqos to share bandwidth evenly
>                       between users like what can be done with m0n0wall or mikrotik?
>                       Please have a look at
>         http://mikrotik-academy.com/tutorials/impartire-banda-in-mod-egal/
>                       to better understand my question.
>                       Thanks,
>                       Paolo
>                       _______________________________________________
>                       Firehol-support mailing list
>         Firehol-support at lists.firehol.org <mailto:Firehol-support at lists.firehol.org> <mailto:Firehol-support at lists.firehol.org <mailto:Firehol-support at lists.firehol.org>> <mailto:Firehol-support at lists.firehol.org <mailto:Firehol-support at lists.firehol.org> <mailto:Firehol-support at lists.firehol.org <mailto:Firehol-support at lists.firehol.org>>>
>         http://lists.firehol.org/mailman/listinfo/firehol-support
>
>
>
>
>
>




More information about the Firehol-support mailing list