OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 18.1 Legacy Series »
  • Traffic Shaper Pipes - expose packet loss & delay
« previous next »
  • Print
Pages: [1]

Author Topic: Traffic Shaper Pipes - expose packet loss & delay  (Read 2400 times)

namezero111111

  • Jr. Member
  • **
  • Posts: 94
  • Karma: 10
    • View Profile
Traffic Shaper Pipes - expose packet loss & delay
« 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?
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13988
  • Karma: 1211
    • View Profile
Re: Traffic Shaper Pipes - expose packet loss & delay
« Reply #1 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
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 18.1 Legacy Series »
  • Traffic Shaper Pipes - expose packet loss & delay
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2