tunables set to unknown values, reset to default does nothing

Started by mr.aksu, March 20, 2026, 08:05:41 AM

Previous topic - Next topic
I've had a look at System : Settings : Tunables the other day and noticed a lot of tunables set to non-default values.
I am pretty sure it was not me setting those tunables.
So I "reset all tunables to default" with the second of the two trashcan buttons, applied, rebooted.
Alas, all the non-default tunables remained in their non-default setting.

Can the "Default" column in the table really be trusted?
Or does the "reset to default" button just do nothing?

Edit: Or should I select all lines in the table and delete them (with the left trashcan button "delete selected") to reset to default values?
What is the difference between "delete selected" (after selecting all) and "reset all tunables to default"?

OPNsense 26.1.4-amd64

I'm not sure we have the concept straight here: the tunables are in the configuration and they are applied to the system. Some have defaults others not. It would be good to check on a sample you can list tunables with "sysctl -a" on the command line. Relatively sure the values set match the command output.


Cheers,
Franco

Are the listed defaults those of the kernel or are they opnsense config defaults?

Quote from: franco on March 20, 2026, 12:17:51 PMI'm not sure we have the concept straight here: the tunables are in the configuration and they are applied to the system. Some have defaults others not. It would be good to check on a sample you can list tunables with "sysctl -a" on the command line. Relatively sure the values set match the command output.

Turns out the "System: Settings: Tunables" output is mostly nonsense for my system, none of the values I checked seem to be correct. :-/

Examples from my system (picked some random entries):

kern.randompid
according to System: Settings: Tunables --> Value = 0, Default = 1
according to sysctl -a --> 456

net.inet.ip.intr_queue_maxlen
according to System: Settings: Tunables --> Value = 256, Default = 1000
according to sysctl -a --> 1000

net.inet.icmp.drop_redirect
according to System: Settings: Tunables --> Value = 0, Default = 1
according to sysctl -a --> 1

Edit: Note that I have not changed any of those settings, and I had just done a "reset to defaults" a few days prior. Where is e.g. kern.randompid coming from, which is neither "Default" nor "Value"?

Hm, no change in 26.1.5, "System: Settings: Tunables" still showing random things for "Value" and "Default".