OPNsense Forum

Archive => 15.1 Legacy Series => Topic started by: remonboonstra on June 17, 2015, 04:38:53 pm

Title: Traffic Shaper - Queues and Rules
Post by: remonboonstra on June 17, 2015, 04:38:53 pm
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
Title: Re: Traffic Shaper - Queues and Rules
Post by: jschellevis on June 17, 2015, 05:21:06 pm
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

(https://forum.opnsense.org/index.php?action=dlattach;topic=708.0;attach=91)

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

(https://forum.opnsense.org/index.php?action=dlattach;topic=708.0;attach=93)

STEP 3
Apply

That is all.. the only key part is mask on destination.
Title: Re: Traffic Shaper - Queues and Rules
Post by: remonboonstra on June 17, 2015, 08:09:00 pm
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
Title: Re: Traffic Shaper - Queues and Rules
Post by: jschellevis on June 22, 2015, 05:53:34 pm
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:
Code: [Select]
opnsense-update -kr 15.1.12_dummynet