Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Tunables
« previous
next »
Print
Pages: [
1
]
Author
Topic: Tunables (Read 2775 times)
MagikMark
Newbie
Posts: 39
Karma: 2
Tunables
«
on:
November 02, 2023, 06:05:43 am »
Hi!
I'm new to opnsense. I was making entries in the tunables section. After reboot I noticed that the very same entries were also made in Loader.conf. Isn't this redundant? Can I make the entries in Loader.Local.conf instead?
Logged
Patrick M. Hausen
Hero Member
Posts: 6825
Karma: 573
Re: Tunables
«
Reply #1 on:
November 02, 2023, 07:02:24 am »
If you make the entries in loader.conf only they will be lost after a reboot. The entire text file configuration of OPNsense is generated from what you enter in the UI. Only UI or API settings are persistent.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Tunables
«
Reply #2 on:
November 02, 2023, 07:32:42 am »
It's only redundant for the ones being redundant
It's not that easy to follow all changes and not all tunables (loader environment variables) are even known to sysctl and sometimes between FreeBSD releases that also changes.
Of course you can also manually operate /boot/loader.conf.local
Cheers,
Franco
Logged
Patrick M. Hausen
Hero Member
Posts: 6825
Karma: 573
Re: Tunables
«
Reply #3 on:
November 02, 2023, 07:35:56 am »
Quote from: franco on November 02, 2023, 07:32:42 am
Of course you can also manually operate /boot/loader.conf.local
While technically correct - I would never argue with @franco
- please don't do that. If you do, anyway, these settings will not be part of a configuration backup. So don't come back complaining, later.
Like with TrueNAS everything that can be configured in the UI or API should be configured in the UI or API.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Tunables
«
Reply #4 on:
November 02, 2023, 07:36:34 am »
Hehehe, I never said it was a good idea
Cheers,
Franco
Logged
MagikMark
Newbie
Posts: 39
Karma: 2
Re: Tunables
«
Reply #5 on:
November 02, 2023, 09:32:05 am »
Thanks guys. I just moved from the otherside. Trying to learn things
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Tunables
«
Reply #6 on:
November 02, 2023, 09:49:08 am »
Don't worry. Questions are good. Some things changed over the years for different reasons.
Cheers,
Franco
Logged
MagikMark
Newbie
Posts: 39
Karma: 2
Re: Tunables
«
Reply #7 on:
November 02, 2023, 10:03:39 am »
Hey Franco,
Can you refer me to a site with lisings of all tunables that are still valid for OPNsense. Not so sure if what I'm putting are still working
Thanks
Logged
Patrick M. Hausen
Hero Member
Posts: 6825
Karma: 573
Re: Tunables
«
Reply #8 on:
November 02, 2023, 10:41:51 am »
Documentation that applies to OPNsense:
https://docs.opnsense.org/troubleshooting/performance.html
https://docs.opnsense.org/troubleshooting/hardening.html
Getting a list of all tunables in FreeBSD:
Code:
[Select]
sysctl -a
HTH,
Patrick
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
MagikMark
Newbie
Posts: 39
Karma: 2
Re: Tunables
«
Reply #9 on:
November 02, 2023, 12:37:52 pm »
Thanks Patrick.
Does it mean if the entry is not found on that list, it has been deprecated
Logged
Patrick M. Hausen
Hero Member
Posts: 6825
Karma: 573
Re: Tunables
«
Reply #10 on:
November 02, 2023, 01:10:19 pm »
If an entry does not exist in the list generated directly on the command line - yes, that means this particular entry does not exist anymore.
The documented list specifically for OPNsense is of course by no means exhaustive but simply tries to cover the two most common areas in which one might want to set certain kernel related parameters differently from the default.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: Tunables
«
Reply #11 on:
November 02, 2023, 01:19:32 pm »
> that means this particular entry does not exist anymore.
Unfortunately that's not true for early boot environment variables such as "hw.uart.console".
Also kernel modules not loaded will also not have their sysctls present.
Cheers,
Franco
Logged
MagikMark
Newbie
Posts: 39
Karma: 2
Re: Tunables
«
Reply #12 on:
November 02, 2023, 08:17:08 pm »
Thank you for your thoughts guys. Greatly appreciated
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Tunables