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.
* Services: Kea DHCPv6: Waste less Prefix space when calculating IA_NA and IA_PD
Reserve only the first delegation-sized block, or a /64 when larger,
for on-link IA_NA use. Make the remaining space available to IA_PD
through multiple non-overlapping CIDR pools instead of using only
the upper half of the interface prefix.
For example, a /57 with /60 delegations now provides seven /60s
instead of four, reserving the first /60 for on-link use.
Add Util tests covering prefix splitting and the resulting PD capacity.
* Services: Kea DHCPv4/6: Remove Kea control agent as it is deprecated and removed upstream
* We don't need ctrl_agent=no anymore as its only started with yes anyway
* Adjust help text so an overlap with captive portal is less likely now that we have the chance
* Use ULA in IPv6 example
* Change case here for @fichtner
* users: api: add descriptions
* v2
* users: api: add descriptions and created timestamps, refactor https://github.com/opnsense/core/pull/11056
(work in progress)
* users: api: add descriptions and created timestamps, refactor https://github.com/opnsense/core/pull/11056
final bits and pieces.
The 27.1 release should remove some actions as mentioned in the comments, rest should work as planned, performance might not be the highest in the world, but given the expected request volume that's unlikely an issue.
* Apply suggestion from @fichtner
Co-authored-by: Franco Fichtner <franco@opnsense.org>
* Apply suggestion from @fichtner
Co-authored-by: Franco Fichtner <franco@opnsense.org>
---------
Co-authored-by: Konstantinos Spartalis <scoon405@gmail.com>
Co-authored-by: Franco Fichtner <franco@opnsense.org>
This code should offer the same functionality as before, but starts with wrapping the "stashed updates" code into its own class, so we can extend that with the rest of the required logic.
In order to change system_routing_configure() to accept multiple targets for a single net, we likely should have a mechanism in place comparing our expected route configuration with the one configured, isolating that inside its own class is likely much easier for future maintenance.
In practice we always marked the networks touched by the UI in order to remove them before apply new ones, we call this action "claiming" now. Our primary issue is that given a running routing table, we can't really know which routes are inserted by us. Following the existing logic (which functioned for single targets), we could state that any network we manually configured (or are configuring) is ours to maintain.
At some point we may consider marking our routes with RTF_PROTO2 (Bird seems to be using RTF_PROTO1) to improve the filtering a bit further, but this is easy to implement later on given the plumning we need anyway.
Execute these just before rc.bootup would start bringing
up the system. This would still have to audit-log, but
syslog-ng has not started yet.
Check for consistency rather than cryptographic correctness.
If the binaries match the cryptography should follow.
Will still need to log these in some way, but that's needs
to to be discussed more.
The script doesn't need to be in core and does not need to be
run by default. Tampering with /tmp/tmpHOSTS without legacy
IPsec running would allow creating the file with a non-root
user which the script would pick up and potentially evaluate.
The fix for ping_hosts.sh will be in the matching plugins commit.
Reported by: Adam Korczynski of Ada Logics using Anrophic
Was modified in 4d495ea6cc, f129c4682b et al. to a state where
the option could still be enabled but never read. The /conf bound historic
log is still filled but nothing reads it. Let's retire it for 27.1.
One other goal here is to reduce the incoming impact of a MVC/API rewrite.
Discussed with: @swhite2
Rules still work, but not visible from DNAT. Migration assistant
will know that these still exist. Will be documented a bit but
low risk move in general.
Add two automatic migrations for the legacy normalization configuration.
The first converts supported scrub entries into non-quick match rules at
the start of the ruleset, and discards rules that only reference defunct interfaces.
The second copies the global scrub controls into model-owned firewall settings.
Introduce the new tabbed Firewall Settings page with filter scrubbing
options and generate modern reassembly, random ID, and interface MSS
rules from these settings. Remove the legacy normalization pages and
rendering code while retaining their configuration for optional cleanup via ConfigMaintenance.
Move the volatile SNAT mode into the shared settings model without
changing its current GUI. This establishes the settings structure for
additional tabs and allows the remaining legacy advanced firewall
settings to move there eventually.
o add media type and options
o most common ipv6 dhcp advanced options
o support "raw", but validated, send and receive options for both dhcp and dhcp6
This should complete the interfaces configuration section.
Move all settings from interface.XXX.wireless to wireless.clone and cleanup code referencing the old spot.
The console menu contained some, likely incomplete, code, which we will remove here as well, it doesn't feel very usefull trying to offer console configuration for wireless anyway.
Not all validations are being migrated, only the most relevant ones, which should be good enough.
Adds a reusable audit field type for model records. Models can opt in with a single JsonAuditField, while ApiMutableModelControllerBase manages some of the created and updated information.
The audit data is stored as JSON so it can be extended later without adding more model fields.
An additionally user supplied note field can store why an item has been changed.
A migration moves legacy created/updated into the new JSON fieldtype.
---------
Co-authored-by: Ad Schellevis <ad@opnsense.org>
This commit just replaces the existing (rather minimal) wireless clone configuration section with an mvc implementation, so we have a landing spot for the actual settings later.
Impact of this change should be relatively low and easy to merge to production as it doesn't change configuration settings.
To not impact the weirdness with "Persist common settings", we currently only overlay the clone property in the wireless container.
Refactor NetworkInterface model to reuse existing property names as much as possible, move from/to legacy logic into a custom fieldtype and store all legacy settings in a container named "pending" to ease reconfiguration and updating legacy configurations.
Skip wireless and other advanced settings for now, only implement a minimal set of validations.