Commit Graph
21241 Commits
Author SHA1 Message Date
Franco Fichtner 205d0a34a7 firmware: do revision/patch and .0 version strips where they matter
This moves stripping to the functions it matters.  Also reduces diff
against stable.
2026-12-02 13:21:26 +01:00
Monviech 0a62361682 css: update country flags, partial sync with upstream (https://github.com/lipis/flag-icons), add license (#11370) 2026-12-02 13:05:58 +01:00
Franco Fichtner 82095886cb intrusion detection: bump model version for 92c4354352 2026-12-02 12:28:11 +01:00
Monviech 65dbf16ee4 Firewall: Aliases: Implement base_bootgrid_table and base_dialog (#11369)
We replaced the custom markup with:
layout_partials/base_bootgrid_table
layout_partials/base_dialog

The main simplifications are:
GeoIP: one searchable country selector, grouped by region. Removed continent-wide selection buttons and per-region selection counters.
Refresh frequency: Removed separate Days/Hours inputs and their conversion logic.
Dialog layout: standard width and separate protocol/credential rows instead of custom combined layout.
The content tokenizer remains, but now with 1000 alias preview and scrollable dropdown.

Now the dialog and grid behave like in other standard pages.
2026-12-02 11:03:49 +01:00
tomiczechandClaude Fable 5.2 afb5708cd9 Services: Kea DHCPv4/6: Offer one "Add Reservation" button per lease identifier
A reservation is matched on exactly one identifier (MAC address or
client id for DHCPv4, DUID or MAC address for DHCPv6), but the leases
pages passed both to the reservation dialog, which the model then
refused to save.

Show a button for each identifier the lease has and pass only that one,
so the choice stays with the user and the dialog can be saved as is.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-02 08:49:30 +01:00
Stephan de Wit b4a07e1ded ids: check isLazyLoaded() in PolicyContentField (#11363)
This will prevent boottime rebuilding of the rules.sqlite cache
2026-12-01 16:45:54 +01:00
Stephan de Wit 2dad4049aa system: small regression in a7f4972, use -o instead 2026-12-01 15:55:29 +01:00
Monviech d4e812936d Services: Kea DHCPv4/6: Preselect the subnet when converting a dynamic lease to a reservation (#11362) 2026-12-01 15:03:30 +01:00
MonviechandFranco Fichtner c01cd16faa upgrade: add syshook that installs os-dyndns if the native backend was detected (#11361)
Co-authored-by: Franco Fichtner <franco@opnsense.org>
2026-12-01 14:27:36 +01:00
Konstantinos Spartalis a7f4972b65 system: add kern.boot_id to sysctl values and output (#11279) 2026-12-01 13:50:54 +01:00
Stephan de Wit 7aa1f99463 AGENTS.md: reword slightly 2026-12-01 13:48:29 +01:00
Franco Fichtner 3087dd67fa firewall: finish up the gaps in #10684
The gateway status is read inside the monitor hooks by external
scripts as well as the state kill t the end and should have also
been used in the filter reload.  We should also refrain from state
kills if the rules don't reload.

The solution is to move the status to a temporary file and export
an environment variable so that subsequent reads for the status
all get the same information.  This way we can fix user scripts
without touching them.

While the side effect is not ideal it's narrowly scoped and easily
traceable.
2026-12-01 13:29:42 +01:00
Stephan de Wit 582693dc82 AGENTS.md: require reproducible steps through the web interface in security reports where relevant (#11360) 2026-12-01 13:15:27 +01:00
Patrick MonfetteandPatrick Monfette ccb46fec85 VPN: OpenVPN: Instances - recreate a leftover DCO interface before start (#11344)
* VPN: OpenVPN: Instances - recreate a leftover DCO interface before start

if_ovpn keeps the UDP socket of the first peer until the interface is
destroyed. OpenVPN only destroys interfaces it created itself, and
setup_interface() always creates it first, so after a restart with a
client connected, or a crash, the next bind fails with EADDRINUSE and
the instance stays down until a reboot.

Destroy the interface before creating it again when no process is
using it.

refs https://github.com/opnsense/core/issues/10784

* VPN: OpenVPN: Instances - only set up the interface when the instance is not running

setup_interface() forces the interface down before handing it over to
OpenVPN. A start on an instance that is already running did the same to
the live interface, which stopped all tunnel traffic until the next
restart.

---------

Co-authored-by: Patrick Monfette <13983955+RedVortex@users.noreply.github.com>
2026-12-01 10:51:39 +01:00
Franco Fichtner f5b5714b23 firmware: internalize -f for update_candidate 2026-11-30 17:28:00 +01:00
380e1e129a AGENTS.md: continuation of https://github.com/opnsense/core/pull/11290 (#11355)
---------

Co-authored-by: Stephen Cox <stephencoxmail@gmail.com>
Co-authored-by: Monviech <79600909+Monviech@users.noreply.github.com>
2026-11-30 16:42:57 +01:00
Stephan de Wit d90c86b899 bootgrid: make async data refresh optional, remove redundant tooltip init 2026-11-30 13:23:04 +01:00
Stephan de WitandMonviech 087d512e36 bootgrid: add asyncDataSources option (#11307)
Introduce a generic asyncDataSources option, that allows for auxiliary data to be fetched in parallel to the primary data fetch. Fetching this data does not affect grid rendering performance. While this data is being loaded, columns marked for this data stay in a pending state and show a spinner until it resolves, at which point the grid formatters wil re-run, updating the cells.

This allows for rendering expensive columns such as firewall rule statistics, as well as host discovery statistics and reverse lookups without affecting the main search endpoint speed.

---------

Co-authored-by: Monviech <gitacc@pischem.com>
2026-11-30 11:43:15 +01:00
Franco Fichtner f5eef44146 firmware: add a reusable append_update() helper
For now use it for base and kernel, but eventually also use it for
all the package updates to make the script a bit shorter.
2026-11-30 10:00:01 +01:00
Franco Fichtner 79d6362fb3 firmware: account for downgraded and reinstalled packages in size calculation 2026-11-30 09:42:20 +01:00
Franco Fichtner 52ea47b68b firmware: flatten base/kernel checks
-cf check is spurious since it forces the check to indicate a reinstall.
2026-11-30 09:14:36 +01:00
Skippy 92c4354352 IDS: optional eve QUIC logging (#11350)
Suricata logs QUIC transactions (version, SNI, user agent, JA3 and
JA4) with the quic eve type, but the file output only offers HTTP and TLS.
Add an advanced checkbox like the TLS one. Off by default; the generated
suricata.yaml is unchanged unless it is enabled.
2026-11-30 07:30:45 +01:00
Franco Fichtner 5b2836eab7 firmware: reorder this and add comments 2026-11-29 11:04:24 +01:00
Franco Fichtner 446771fa7f firmware: can replace this safely too 2026-11-29 11:00:45 +01:00
Franco Fichtner 93730fcc58 firmware: introduce and use update_candidate et al helpers 2026-11-29 10:54:49 +01:00
Franco Fichtner 8ee8dc7e4e firewall: move legacy rules ACL and new one is no longer new; closes #11347 2026-11-29 07:53:56 +01:00
Franco Fichtner 4685d0401a firmware: consistency improvement in rquery use in check.sh 2026-11-29 00:42:32 +01:00
Franco Fichtner 3575bda8b5 shell: add read_fp() to fix character trim and simplify callers #11342
With help from: @sopex
2026-11-28 21:35:28 +01:00
Greelan 645e728a0e firmware: fetch the product feed without the firmware lock
The feed held the firmware lock while it fetched, so opening the
firmware page from the dashboard's update link while the Announcements
widget was still loading found the backend busy and reattached to the
last log instead of checking for updates.
2026-11-28 11:49:09 +01:00
Franco Fichtner 64f82d7a07 system: annotate the full gap in the historic assumptions 2026-11-28 11:19:31 +01:00
Franco Fichtner 9a3ef07ac9 mvc: return 405 on wrong method and scrub unused messages
Requested by: @monviech
2026-11-27 15:19:44 +01:00
Milan Davídek 1658e4ff4c monit: allow skipping service checks during a cron window (not every) (#11337)
Monit supports `not every "<cron>"` next to `every "<cron>"`: the
service is skipped while the schedule matches and checked at all other
times, e.g. to pause a check during a nightly job that briefly stalls
the service. Only one of the two can be set per service, so add a
"Poll Time Mode" option to choose how the Cron-style Poll Time is
applied. The default keeps the current `every` behaviour.
2026-11-27 15:09:25 +01:00
Gennaro Cimmino 4bcc2067ee IDS: refuse dropping alert logs to read-only users
Dropping an alert log deletes an archived log or empties the current
one, so like clearing a log (18e6cb5aee) it is now refused to a user
with user-config-readonly.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Gennaro Cimmino <gcimmino@rayonra.net>
2026-11-27 13:47:48 +01:00
Franco Fichtner be26980996 firewall: fix state kill race during monitor alert; closes #10684 2026-11-27 13:35:28 +01:00
Franco Fichtner 59a623b672 wireguard: move configuration into background for boot
Also add the same locks to sync call since they could no overlap.
It would avoid tweaking DNS timeouts then as the system can really
retry in the background while the boot finishes connectivity.

PR: https://forum.opnsense.org/index.php?topic=53344.msg277829#msg277829
2026-11-27 13:18:50 +01:00
Franco Fichtner 80f190d8a6 interfaces: ifctl: remove eval and hash interface names for variable use
Simplify the export and print and use a md5 checksum.  We could still
return garbage names to the caller, but that's only because they do
exist and FreeBSD virtually has no restrictions on the interface name
except when tools prohibit something due to implementation choices.

Reported by: squirt1e, outis, atum (MiniMax Cyber)
2026-11-27 10:06:56 +01:00
jcmdev0 40a071bdb6 Services: Kea DHCPv4: Enable String encoding for DHCP Option 252. (#11335) 2026-11-27 08:35:34 +01:00
Monviech 4d6d047a40 Services: Kea DHCPv4/6: Rather name the subheaders common and other in the DHCP options dialog 2026-11-26 15:38:04 +01:00
Konstantinos Spartalis 053a089535 dashboard: round swap widget values to integer MB (#11277) 2026-11-26 14:53:51 +01:00
Greelan 863c412e97 system: refuse backup provider changes to read-only users (#11326)
A restore is already refused to a user with user-config-readonly, but
provider settings are saved through the MVC config, which does not check
it, so such a user could still change them.
2026-11-26 13:29:30 +01:00
Monviech f1dbb3883d ipsec: Allow Spaces in Split DNS name attribute (x_28675) (#11316) 2026-11-26 11:51:17 +01:00
Monviech efdf9388be Services: Kea DHCPv4/6: Group auto collected DHCP options under subheaders, change auto collection default to 0 for new created subnets (#11327) 2026-11-26 11:17:38 +01:00
Franco Fichtner fdda128dca LICENSE: sync 2026-11-26 11:12:10 +01:00
Greelan fee22402a1 services: OpenDNS moves to plugin #10108 (#11324) 2026-11-26 10:01:45 +01:00
Franco Fichtner a4b837e2a3 firmware: move forum hostname to config.sh
the hosts are also consumed by connection.sh
to which freebsd and the forum is irrelevant
2026-11-25 16:23:39 +01:00
Franco Fichtner 5b86a26d87 firmware: key return moves to -Y for reasons
We want to use -x in opnsense-update for cross-community
installs for the business edition which helps with dev
workflo.
2026-11-25 16:21:13 +01:00
Franco Fichtner 123b75b189 src: style sweep 2026-11-25 16:15:54 +01:00
Monviech b6f7ed86f6 Services: Kea DHCPv4: include the system domain into option data autocollect (#11314) 2026-11-25 15:57:30 +01:00
Ad Schellevis f1c1cde32e configd/templates - extend +TARGETS with chmod support, fixz minor regression 2026-11-25 11:49:14 +01:00
Gennaro Cimmino a155f61909 IDS: search alerts by tokens instead of patterns (#11308)
The alert search text is split into words and every word must appear in
the signature, action or addresses of an alert, like the other log
views. This simplifies the controller and the script. The "filepos"
detail lookup now selects exactly the requested position, and the
filter is passed as --filter=%s so a search starting with "-" works.
2026-11-25 10:36:02 +01:00