OPNsense Forum

Archive => 18.1 Legacy Series => Topic started by: namezero111111 on February 02, 2018, 01:24:05 pm

Title: Traffic Shaper Pipes - expose packet loss & delay
Post by: namezero111111 on February 02, 2018, 01:24:05 pm
Dear folks,

As far as I can see creating artificial delay and packet loss is not exposed via the WebGUI for pipes.
Would those parameters be terribly difficult to add?

This is useful in test environments to simulate network conditions.

Do you think this would be useful?
Title: Re: Traffic Shaper Pipes - expose packet loss & delay
Post by: franco on February 03, 2018, 08:35:05 pm
Hi there,

Yes, they would be nice to have. :)

The configuration model needs tweaks, the ui (form) needs to know about them and then the last step is writing these into the rule template...

Not sure if they belong to pipes queues or rules, but we should hide them under "advanced" to make clear they are not for normal setups.

Step 1:

https://github.com/opnsense/core/blob/master/src/opnsense/mvc/app/models/OPNsense/TrafficShaper/TrafficShaper.xml

Step 2:

https://github.com/opnsense/core/blob/master/src/opnsense/mvc/app/controllers/OPNsense/TrafficShaper/forms/dialogRule.xml

Step 3:

https://github.com/opnsense/core/blob/master/src/opnsense/service/templates/OPNsense/IPFW/ipfw.conf

Step 4 (bonus):

https://github.com/opnsense/core/compare

:D


Cheers,
Franco