Project

General

Profile

Actions

Bug #15982

open

Limiters do not change values and disappear after reboot if bandwidth set over 5 Gig

Added by Lev Prokofev about 1 month ago. Updated 2 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Traffic Shaper (Limiters)
Target version:
-
Start date:
Due date:
% Done:

0%

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

Description

Tested on 24.11 and 25.03BETA

Creating a limiter with a bandwidth of 4250

Value at Diagnostics=>Limiter info correct

Changing the value to 5000

Saving and applying new settings but Limiter Info remains the same

after a reboot, I get:

Limiters:
No Limiters were found on this system

Files

Actions #1

Updated by Georgiy Tyutyunnik about 1 month ago

confirmed.
update: after reboot if the test limiter is applied as a pipe in the firewall rule the rule stops working - is unable to generate states
seems to be linked to limiter's bandwidth - 512Mb limiter works fine, 5 gig doesn't

Actions #2

Updated by Lev Prokofev about 1 month ago

Update:

Can confirm the above on 24.03

Logs shows:

Jan 9 13:11:27     php-fpm     56273     /rc.filter_configure_sync: The command '/sbin/dnctl /tmp/rules.limiter' returned exit code '65', the output was 'Line 34: bandwidth too large'
Actions #3

Updated by Jim Pingle about 1 month ago

Lev Prokofev wrote in #note-2:

'Line 34: bandwidth too large'

The bandwidth on a limiter can't be over the maximum value of a 32-bit unsigned integer, which is ~4.3G. The GUI should probably prevent the value from being set that high.

                if (bw > UINT_MAX)
                        errx(EX_DATAERR, "bandwidth too large");

                *bandwidth = (uint32_t)bw;
Actions #4

Updated by Marco Eberhardt about 1 month ago

But we need bandwidth limiter higher than ~4,3G. We need for example 7.5G or 10G
So changing just the UI is not very helpful.
Why not changing from a 32-bit unsigned integer to a 64-bit unsigned integer to allow higher values.
Or any other solution?

Actions #5

Updated by Mike Moore 2 days ago

Running into a similar issue

https://forum.netgate.com/topic/196432/limiter-config-disappered/2

Albiet, my configurated limiter is set to 50Mbps but after a reboot the Limiter configuration is gone.

Actions #6

Updated by Marcos M 2 days ago

Thanks for the report. I've opened a separate issue here: https://redmine.pfsense.org/issues/16051

Actions

Also available in: Atom PDF