Traffic Shaper - Queues and Rules

Started by remonboonstra, June 17, 2015, 04:38:53 PM

Previous topic - Next topic
Hi,

is there a good hint on getting the following done in the Traffic Shaper (I expect with queues and rules hence the title).

LAN: 20 users (allowed only 2Mbit down / 300Kbit up)
WAN: 2 x 8Mbit / 1Mbit (should be equally spread across 50 users)

Currently on another thread trying to get the first part working, now I'm looking to get the second part working also.

Meaning: if 8 users are downloading at 2Mbit, the nineth user should still get 1.77Mbit (16/9). The other should also go down to 1.77Mbit.

Result everybody has internet always, but never more than 2Mbit down. At busy moment the speed might go down.

Thank you for any of the hints you might give me!

Remon

June 17, 2015, 05:21:06 PM #1 Last Edit: June 17, 2015, 05:23:21 PM by jschellevis
Alow me to explain that for a simple single WAN solution and one pipe of 10Mbps both directions (already made screenshots with those settings..).
You can create 2 pipes and 2 rules as you already know how that works..

Goal: Each user will get a maximum download of 10Mbps, shared equally.

STEP 1
Create a pipe:
  Set it to 10 Mbit/s
  And a Mask on destination (this will share on the destination/wan)
Save



STEP 2
Create a rule:
  Interface = WAN
  Interface 2  = LAN
  target = pipe_10Mb_mask_destination
Save



STEP 3
Apply

That is all.. the only key part is mask on destination.

J,

Thank you for your reply, I've set it up as you said.
I let the other 2 rules there, it seems it never reaches the new rules when testing.

I want to max the connection to 2Mbit/300kbit: this works with the first 2 rules.
The 3rd and 4th rule don't get applied as far as I can see now.

I need a combination of rule 1,2 and 3 to get what I would like, am I correct?


Screenshots are attached,

Thanks,

Remon

The issue with traffic shaping on the wan side has been found and fixed.
If you want to try, install the new kernel:

from the cli invoke:
opnsense-update -kr 15.1.12_dummynet