OPNsense Forum

English Forums => Tutorials and FAQs => Topic started by: tibere86 on January 24, 2018, 03:08:38 pm

Title: OPNsense User Manual - Setup Traffic Shaping Question
Post by: tibere86 on January 24, 2018, 03:08:38 pm
First time posting here in the forums. I'm in the process of transitioning my home and work firewalls from the dark side to OPNsense, and in preparation, I have been reading the posted OPNsense user manual https://docs.opnsense.org/manual.html (https://docs.opnsense.org/manual.html).
In the SETUP TRAFFIC SHAPING > SHARE BANDWIDTH EVENLY section, in the example on how to setup the upload pipe, the mask is shown set to "destination". Shouldn't the mask be set to "source" as this is upload pipe?
Title: Re: OPNsense User Manual - Setup Traffic Shaping Question
Post by: Dominian on February 13, 2018, 01:49:33 pm
Did you ever get an answer to this?
Title: Re: OPNsense User Manual - Setup Traffic Shaping Question
Post by: Ladeschale on March 17, 2018, 01:16:55 am
I'm not sure why it's called destination/source for mask, maybe a placeholder, cause it means something different like intuitively you would expect.
Mask defines how a given bandwith will affect clients and not their direction.

Destination means share the total bandwidth of this pipe among all connected clients.
Source means provide all connected clients up to a maximum of this pipe configured bandwidth
Title: Re: OPNsense User Manual - Setup Traffic Shaping Question
Post by: jelly-ck on April 27, 2018, 03:02:45 pm
I'm not sure why it's called destination/source for mask, maybe a placeholder, cause it means something different like intuitively you would expect.
Mask defines how a given bandwith will affect clients and not their direction.

Destination means share the total bandwidth of this pipe among all connected clients.
Source means provide all connected clients up to a maximum of this pipe configured bandwidth
I was always wondering this myself.
So to be clear @Ladeschale , masks on both download and upload pipes should be set to "Destination" if we want to evenly share the available bandwidth among connected devices within each pipe?
Title: Re: OPNsense User Manual - Setup Traffic Shaping Question
Post by: mimugmail on April 27, 2018, 03:09:05 pm
No, just check the updated help texts for masks in pipe and queue, they are explaining it very well.
Title: Re: OPNsense User Manual - Setup Traffic Shaping Question
Post by: jelly-ck on April 28, 2018, 06:20:11 pm
No, just check the updated help texts for masks in pipe and queue, they are explaining it very well.
I saw the updated explanations after updating OPNsense to 18.1.6. Thanks
Title: Re: OPNsense User Manual - Setup Traffic Shaping Question
Post by: hutiucip on May 16, 2018, 03:35:28 pm
So, do I understand correctly? There is no way to evenly share the given bandwidth using pipes, you would have to use (also) queues for evenly shared bandwidth? Secondly, if I want to evenly share a given available bandwidth AND, at the same time, no more than a particular bandwidth per client, I would have to use masks in BOTH the pipe(s) and the rule(s)? Mask in pipes would set the maximum bandwidth of a client, and the mask in queues would share it (or a larger one) evenly?

Thank you

LE> What happens if I use masks in both pipe and queue for a single rule? And, conversely, what is the effect of having two rules, one with a mask configured in pipe, and one with the mask configured in queue?

PS I think I need to further read the docs on FreeBSD traffic shaping, rules, and queues and pipes stuff. :)