Project

General

Profile

Actions

Bug #12579

closed

Utilize ``dnctl(8)`` to apply limiter changes without a filter reload

Added by Viktor Gurov almost 3 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Viktor Gurov
Category:
Traffic Shaper (Limiters)
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
22.05
Release Notes:
Default
Affected Version:
All
Affected Architecture:

Description

FreeBSD 12.3 introduced a new dnctl(8) utility, which can be used to change limiter parameters without reloading filter

see https://www.freebsd.org/cgi/man.cgi?query=dnctl&sektion=8&format=html:

PIPE, QUEUE AND SCHEDULER CONFIGURATION
     The pipe, queue and scheduler configuration commands are the following:

       pipe    number config pipe-configuration

       queue number    config queue-configuration

       sched number    config sched-configuration


Related issues

Blocks Regression #13026: Limiters do not workResolvedMarcos M

Actions
Blocks Bug #13027: Input validation requires a gateway for floating ``match out`` rulesResolvedMarcos M

Actions
Actions #1

Updated by Viktor Gurov almost 3 years ago

1) #12003 should be merged first

2) Converting ipfw -> dnctl is not that difficult, but dnctl(8) needs the "-f" option to load limiter rules ("dnctl -f /tmp/rules.limiter")

Actions #2

Updated by Viktor Gurov over 2 years ago

  • Assignee set to Kristof Provost
Actions #3

Updated by Kristof Provost over 2 years ago

With https://gitlab.netgate.com/pfSense/FreeBSD-src/-/merge_requests/57 (a cherry pick of an upstream main commit) dnctl can read commands from files just like ipfw. That is, if the argument starts with '/' it's treated as a file. So `dnctl /foo/bar/dnctl.conf` will load commands from /foo/bar/dnctl.conf.

Actions #4

Updated by Kristof Provost over 2 years ago

  • Status changed from New to Feedback
Actions #5

Updated by Viktor Gurov over 2 years ago

  • Tracker changed from Feature to Bug
  • Status changed from Feedback to New
  • Assignee changed from Kristof Provost to Viktor Gurov
Actions #6

Updated by Jim Pingle over 2 years ago

Actions #7

Updated by Jim Pingle over 2 years ago

  • Blocks Bug #13027: Input validation requires a gateway for floating ``match out`` rules added
Actions #8

Updated by Viktor Gurov over 2 years ago

  • Status changed from New to Feedback
  • Target version set to 2.7.0
  • Plus Target Version set to 22.05
  • Affected Version set to All
Actions #9

Updated by Jim Pingle over 2 years ago

  • Subject changed from Utilize dnctl(8) to apply changes without reloading filter to Utilize ``dnctl(8)`` to apply limiter changes without a filter reload
Actions #10

Updated by Marcos M over 2 years ago

  • Status changed from Feedback to Resolved

No issues with this in testing.

Actions

Also available in: Atom PDF