17110 Commits

Author SHA1 Message Date
Ad Schellevis
3e99b87cdf Reporting / rrd - start using cron for rrd collection.
This is a temporary solution, but a first step into cleaning up rrd stat collection.

In this first milestone, we keep using the generated script, but remove the loop and sleep construct out of it, offering the posibility to handle service control to cron. To prevent the script being written at the same time we're collecting, we always lock the script before use.

should fix: https://github.com/opnsense/core/issues/7753
2024-08-11 13:17:02 +02:00
Franco Fichtner
805489d1a0 make: remove 'devel' alias as it doesn't work on plugins
The idea was opnsense-"devel" annotation, but there is a "devel" directory
in plugins and since we have "master" or "main" alias (that we want to switch
to some day even) it's better to remove this cruft.
2024-08-09 13:52:31 +02:00
Franco Fichtner
34ab8a6ef3 make: optimize previous 2024-08-09 13:49:00 +02:00
Franco Fichtner
e099299e06 make: rename a var to allow merging the glue to plugins 2024-08-09 13:38:50 +02:00
Stephan de Wit
fb71b9d8dd firewall: categories: force minimum modal-body height to account for color-picker 2024-08-09 10:14:05 +02:00
Franco Fichtner
d35a5f3cfa interfaces: transform this a bit more #7446
Ideally we should really handle an array of parent hardware
devices here.  In some cases IPv6 device is missed as well.
And later on the code will not check if this was a device
node for a modem so wrapping the hardware stuff into a function
for iteration is the way to go.
2024-08-09 09:42:38 +02:00
Franco Fichtner
805120ea78 interfaces: decouple starting PPP from configured IP modes #7446
PR: https://forum.opnsense.org/index.php?topic=42008.0
2024-08-09 09:30:52 +02:00
Franco Fichtner
7c9ba6d785 interfaces: style in previous #7446 2024-08-08 23:31:36 +02:00
Franco Fichtner
58bfdecefa interfaces: backwards compat move of PPP IPv6 to linkup #7446 2024-08-08 23:10:13 +02:00
Franco Fichtner
de96821af8 interfaces: backwards compatible changes #7446 2024-08-08 22:51:09 +02:00
Franco Fichtner
d620f4e53a interfaces: remove 10.64.64.x use and stray $pppid
It's probably someone else's network.  ;)
2024-08-08 22:40:35 +02:00
Ad Schellevis
fd516e8c99 System: Trust: Revocation - CRL import ignored text input and triggered some validations only relevant for internal CRL's. closes https://github.com/opnsense/core/issues/7748
While here, also hide lifetime and serial fields for external crl's
2024-08-08 20:56:39 +02:00
Franco Fichtner
65ccbfc680 interfaces: minor code merge in interface_ppps_configure() for #7446 2024-08-08 15:14:01 +02:00
Franco Fichtner
f879fcd97c interafaces: minor sync/cleanup 2024-08-08 14:29:38 +02:00
Franco Fichtner
4e9c75240d shell: minor cleanup 2024-08-08 14:25:56 +02:00
vivek.panchal
52c1f005bf Captive portal logoff issue fixed 2024-08-08 08:58:05 +02:00
Franco Fichtner
7c9b97ab74 interfaces: 30 could be too slow for backend recofiguration
Take 10 seconds off.  Seen today while testing other PPP changes.
Since I don't have functional PPPoE the full timeout is taken and
the log message is emitted correctly.
2024-08-07 18:51:26 +02:00
Stephan de Wit
cf9da42380 dashboard: also account for removal of rows in non-rotated tables with top headers 2024-08-07 16:04:04 +02:00
Monviech
4694acbfe4
dashboard: Monit.js - Change status code handling to 0 as ok and non 0 as failed. Rewrite widget slightly to implement dataChanged method so the long tick timeout can be removed. This makes the widget respond faster to changes. Remove unused translations. (#7738) 2024-08-07 13:11:29 +02:00
Stephan de Wit
c807cbc3d1 dashboard: apply locked state to newly added widgets as well
Some code duplication as a result here, but the concept of locking and editing needs a revamp anyway as described https://github.com/opnsense/core/issues/7737.
2024-08-07 13:03:03 +02:00
Monviech
670c98fdff
dashboard: Make titles of Swap and Mbuf shorter so there is no line break that increases the size of the widget. (#7736) 2024-08-07 09:16:32 +02:00
Franco Fichtner
a7043565d6 system: (un)lock button style 2024-08-06 15:51:15 +02:00
Stephan de Wit
78453bfa54 dashboard: remove transition from row hover for table widgets 2024-08-06 15:10:43 +02:00
Franco Fichtner
633a3cc3fb firmware: fix mode in previous 2024-08-06 14:59:42 +02:00
Franco Fichtner
039ae3c198 firmware: cleanup prior to upgrade
squid package errors may manifest during major upgrade as well making
it necessary to run the cleanup in advance and not in background mode.

It would be nicer to avoid code duplication, but that can happen the
next time something needs to be adjusted in the actual cleanup routine.
2024-08-06 14:55:50 +02:00
Stephan de Wit
049c8724c2 dashboard: account for string/number types and update openvpn server status color (fixes https://github.com/opnsense/core/issues/7701) 2024-08-06 13:57:27 +02:00
Monviech
f1fa295aeb
wireguard: Change add button to btn-primary (#7733)
PR: https://forum.opnsense.org/index.php?topic=42004.0
2024-08-06 13:33:06 +02:00
tionu
bd3faedadb Skip tentative IPv6 addresses for binding of webgui
IPv6 addresses might be tentative. lighttpd will fail when trying to bind to a tentative address. This commit skips tentative IPv6 addresses for binding.
2024-08-06 11:57:42 +02:00
Stephan de Wit
c8a44c0607 trust: fix API exception on empty CA selection. While here, clear form elements when issuer is empty (which indicates self-signed) 2024-08-06 11:30:55 +02:00
Franco Fichtner
ad0d75cf98 system: PHP warning 2024-08-06 10:48:55 +02:00
Franco Fichtner
6028e38f85 system: debug sysctls are complicated, mock reality 2024-08-06 10:30:40 +02:00
Nicolai Scheer
62a09bfa0a
interfaces: require PPP interface to be in up state (#7692)
Otherwise the check will "approve" an interface that is not yet up, and subsequent
calls to fetch the gateway of that interface might fail if issued to quickly thereafter.
2024-08-06 10:10:16 +02:00
Monviech
6057619805
dashboard: IpsecTunnels.js - Add aggregated information about connected children. (#7720)
* dashboard: IpsecTunnels.js - Add aggregated information about connected children.
2024-08-06 10:09:19 +02:00
Franco Fichtner
c6d8be91a1 interfaces: retire interfaces_bring_up() 2024-08-06 10:07:36 +02:00
Stephan de Wit
70ff925af1 dashboard: floating point input returns undefined, check against zero as well 2024-08-06 09:27:11 +02:00
Monviech
b76b69aacd
dashboard: BaseWidget - Improve _formatBytes function, remove nested if statements, always return size+unit, implement additional null check. (#7729) 2024-08-06 09:07:02 +02:00
Franco Fichtner
4182f19938 webgui: change locking in the webgui restart loosely related to #7649
Emit the new config, but do not write it to the disk yet.
Make sure we can take the config file lock before proceeding.
If we cannot get the lock the work is already being done so
exit in this case.

While here bail early on empty listeners and restructure and
consolidate the config dir path with the resulting config out
of /var/etc.
2024-08-06 08:26:15 +02:00
Franco Fichtner
9539cf27e4 system: part of the revisit-later effort 2024-08-05 21:26:18 +02:00
Franco Fichtner
235a893681 system: chartjs starts smashing the graph on shifting data sets; closes #7657
Instead of fighting with chartjs just make the data set static.  We might
revisit this at some point, but for now it's nicer to have this glitch-free.
2024-08-05 21:17:52 +02:00
Christian Kohlstedde
69d697a0a9 Sort all values in various_flags 2024-08-05 19:47:18 +02:00
Christian Kohlstedde
926d737713 Add OpenVPN float option
In the classic, legacy server variant there was an option called
"dynamic_ip" which injected the options `persist-remote-ip` and `float`
into the generated configuration file. In the modern variant
`persist-remote-ip` is already available, but `float` isn't available
anymore.

The OpenVPN `float` option is used to allow client to change IP
addresses during an ongoing connection to allow roaming e.g. in mobile
networks or changes in the client WiFi.
2024-08-05 19:47:18 +02:00
Stephan de Wit
a99e88086a Revert "Lobby: Dashboard - set short Cache-Control lifetime for widgets, for https://github.com/opnsense/core/issues/7244"
This reverts commit 314d975679afc9cf750a405c143495d551221b0a.

With 36560aa679 we don't need this one anymore
2024-08-05 16:46:22 +02:00
Stephan de Wit
211a4fe10c dashboard: new import missing on gauge and table base classed 2024-08-05 16:40:16 +02:00
Stephan de Wit
36560aa679 dashboard: use importmap to force cache safe imports of base classes (https://github.com/opnsense/core/issues/7244) 2024-08-05 16:35:17 +02:00
Franco Fichtner
cbd97eaccb system: add load average back to system info widget
The API call is not fitting too well, but since it fetches a
sysctl this is the right spot to do it.
2024-08-05 16:05:16 +02:00
Franco Fichtner
52ccee13f5 system: fix help text in widget 2024-08-05 13:33:59 +02:00
Stephan de Wit
31380e4f6d dashboard: remove dots from traffic graphs 2024-08-05 13:23:18 +02:00
Franco Fichtner
929d779b75 system: add publish date to annoucement
Some minor style changes, now clicks date instead of title.

PR: https://forum.opnsense.org/index.php?topic=41972.0
2024-08-05 12:09:07 +02:00
Franco Fichtner
b9f2b5b1e0 system: better change type too #7657 2024-08-05 11:38:36 +02:00
Franco Fichtner
24433b9c1f system: rename "Core" to "CPU" to force ambiguity #7657
The sysctls specify "cpu" so it makes sense to follow that especially
since some systems will report the same temperature for the HT sibling
so it's not a core it's a thread.
2024-08-05 11:30:45 +02:00