21259 Commits
Author SHA1 Message Date
Stephen Cox 96524ee684 Interfaces: Wireless: Devices - ignore a posted clone name (#11389) 2026-12-03 21:16:58 +01:00
Monviech 64a9bbfa6a firewall: add source-track rule to max-src-states to ensure max states are tracked per rule, and not globally across all rules using max-src-states (#11375) 2026-12-03 10:48:15 +01:00
Franco Fichtner 6ba5d8e6b0 firmware: add parse_line() helper because the heredoc annoys me 2026-12-03 10:00:43 +01:00
Franco Fichtner d803fd36d2 firmware: rewrite package change line parser 2026-12-03 10:00:43 +01:00
Franco Fichtner 35f8e7e630 firmware: merge the shared MODE parsing while reusing the append_update() operand 2026-12-03 10:00:43 +01:00
Franco Fichtner 8025543db6 firmware: switch direction check in append_update()
This way > means upgrade and < means downgrade.  It's a bit easier to
follow and needed for the next refactor.
2026-12-03 10:00:43 +01:00
Stephen Cox 137885a4f8 VPN: WireGuard: Peers - drop every deleted peer from its instances (#11379) 2026-12-03 09:26:04 +01:00
Stephen Cox bd63d54ae8 VPN: OpenVPN: Instances - ask for both keepalive values before comparing them (#11380) 2026-12-03 09:24:49 +01:00
Franco Fichtner f4c21000ce interfaces: add prefix to ifctl for blackhole route in 6rd and 6to4
PR: https://forum.opnsense.org/index.php?topic=53359.0
2026-12-02 21:08:37 +01:00
Franco Fichtner 1df39f6748 firmware: speed up packages read by removing expr calls 2026-12-02 16:18:34 +01:00
Franco Fichtner 85cfa21548 firmware: speed up package parsing by removing tr calls 2026-12-02 16:06:14 +01:00
Monviech 9ee4e0335a Services: Kea DHCPv4: Add a migration for fca582f (#11373) 2026-12-02 15:53:37 +01:00
Franco Fichtner ed748e8746 interfaces: only up IPv6 devices #11057 #10529
This builds on 9473c8a62a which is almost the same.  Through point
3 we know that up is issued through the IPv4 address add.  Since most
of the configured IPv6 spots use 'up' already patch in the remaining
two.

Boots fine in a VM with DHCP WAN and static LAN.
2026-12-02 15:29:47 +01:00
Franco Fichtner 3bee753a21 firmware: also patch new and removed into append_update()
Was hoping for a bit less code but this unifies the writing of the
packages arrays from the backend.  The parser/parsing still isn't
great but it's unlikely to be much better without a rewrite in another
language (or use an alternative package feed).
2026-12-02 14:58:26 +01:00
Franco Fichtner 8e032da923 firmware: fold package down/upgrades/reinsall into existing helper 2026-12-02 14:47:55 +01:00
Franco Fichtner 5205260f9e firmware: document current layout with sets up/down/reinstall 2026-12-02 14:22:09 +01:00
Franco Fichtner 992576ff73 firmware: read sizes from main package loop 2026-12-02 14:10:09 +01:00
Franco Fichtner 964f0562ff firmware: the - version notation was probably an old remnant
from when we tried to do patch releases like freebsd -p1 or -RELEASE-p1.
1.2.3-p4 might be a bit easier to read but a hotfix 1.2.3-p4_5 adds to the
visual clutter again so 1.2.3p4_5 is somewhat nicer.
2026-12-02 13:28:21 +01:00
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