Commit Graph
1027 Commits
Author SHA1 Message Date
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
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
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
Greelan fee22402a1 services: OpenDNS moves to plugin #10108 (#11324) 2026-11-26 10:01:45 +01:00
Franco Fichtner 123b75b189 src: style sweep 2026-11-25 16:15:54 +01:00
Franco Fichtner 0c6c257b8b src: sweep 2026-11-25 08:59:12 +01:00
Konstantinos Spartalis 6293084bee monit: fix 6.1 incompatibilities and substitute depreciations (#11285) 2026-11-23 14:40:00 +01:00
Monviech 4451c20180 firewall: replace firewall_rule_lookup.php with ruleLookupAction() (#11292) 2026-11-23 10:04:57 +01:00
Monviech 92301af702 Services: Kea DHCPv6: Waste less Prefix space when calculating IA_NA and IA_PD (#11234)
* 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.
2026-11-20 08:24:17 +01:00
Konstantinos Spartalis f549392ee4 unbound: safesearch: seperate provider selection (#10914) 2026-11-18 08:53:31 +01:00
Monviech e17827d576 Services: Kea DHCPv4/6: Remove Kea control agent as it is deprecated (#11183)
* 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
2026-11-12 09:37:06 +01:00
Ad Schellevis 4f440c2109 plist 2026-11-10 15:13:29 +01:00
4164ea6595 users: api: add descriptions (#11167)
* 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>
2026-11-10 09:21:14 +01:00
Monviech 47af9eeb08 firewall: migrate remaining miscellaneous advanced settings
Remove the legacy advanced firewall settings page, but retain the
original ACL name.  For good reasons this wasn't introduced in
stable/26.7 yet.
2026-11-04 11:00:37 +01:00
Monviech 61cf0acf23 firewall: migrate miscellaneous advanced settings (automatic rules) 2026-11-04 09:36:24 +01:00
Stephan de Wit 53ec2ef976 firmware: strict CRL and TLS 1.3 checking for product_feed (#11144) 2026-11-04 09:02:13 +01:00
Monviech 6e03947579 firewall: migrate logging advanced settings to new settings page 2026-11-03 15:42:31 +01:00
Stephan de Wit f5973c1fc5 pkg: fix plist 2026-11-03 15:38:52 +01:00
Monviech 0ed857f481 Firewall: migrate schedules advanced settings to new settings page 2026-11-03 15:32:02 +01:00
Monviech ef0046343d make plist-fix 2026-11-03 15:23:46 +01:00
Monviech 3426e83530 firewall: migrate multi-WAN advanced settings to new settings page 2026-11-03 15:21:15 +01:00
Monviech 08a12d4403 firewall: migrate gateway monitoring advanced settings to new settings page 2026-11-03 14:43:13 +01:00
Monviech 54ec734d2b firewall: migrate bogon advanced settings to new settings page 2026-11-03 14:12:03 +01:00
Monviech 05053e3e69 firewall: migrate NAT advanced settings to new settings page 2026-11-03 13:46:57 +01:00
Stephan de Wit 701d3ce765 pkg: fix plist 2026-11-03 11:03:29 +01:00
Ad Schellevis 167c468a93 plist 2026-10-29 16:30:24 +01:00
Franco Fichtner e03622cc6b pkg: fix plist 2026-10-23 16:22:46 +02:00
Monviech 47fc15355f Services: Kea DHCPv6: Add setup.sh that creates /var/log/kea so kea_prefix_watcher.py doesn't fail to daemonize on RAM disks during boot (#11053) 2026-10-19 11:46:24 +02:00
Stephan de Wit 0dc265cb73 dashboard: refactor widget system and introduce cloneable widget types (#11015) 2026-10-19 08:58:54 +02:00
Ad Schellevis 31082fb68f System: Routes: Configuration - further refactor current static route updates for https://github.com/opnsense/core/issues/10569
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.
2026-10-17 18:10:04 +02:00
Stephan de Wit 188678814e monit: fetch status through configd for strict security mode (#11037) 2026-10-16 08:34:22 +02:00
Franco Fichtner 0564668c44 system: run file and configuration selfchecks
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.
2026-10-14 12:00:45 +02:00
Franco Fichtner d111374705 ipsec: move ping_hosts.sh to legacy plugin and harden
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
2026-10-13 11:00:42 +02:00
Franco Fichtner 3e63c1cbf8 interfaces: remove the PPP uptime option
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
2026-10-09 13:06:43 +02:00
Konstantinos Spartalis 8837a247fc VPN: IPsec: Deprecate IKEv1 (#10925) 2026-10-07 16:05:03 +02:00
Franco Fichtner 1177021c22 interfaces: backend call for interfaces_ppps_configure(); closes #9352 2026-10-06 15:29:45 +02:00
Franco Fichtner dfc07590e9 interfaces: priv-sep script for interface apply the legacy way #9352 2026-10-06 14:57:48 +02:00
Franco Fichtner c4ebe6d086 system: add webgui PAM config to test with opnsense-login 2026-09-29 10:11:37 +02:00
Franco Fichtner cd3b5670ae firewall: outbound NAT moves to legacy plugin
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.
2026-09-23 09:55:45 +02:00
Jorio 4eb1e9ec9d system: diag.disk rework (#10875)
changes diag.disk to return total bytes as well as formatted bytes so the API returns more info but keeps functionality the same.
2026-09-18 13:16:07 +02:00
Franco Fichtner a41cc16182 openvpn: remove legacy carp hook 2026-09-10 13:12:35 +02:00
Franco Fichtner e65b15173d openvpn: legacy CARP hook abort on empty interface
This can be moved to the plugin.  Before we do that, however,
rename the file to make this more obvious since it was missed
up until now.
2026-09-09 20:46:36 +02:00
Monviech 325ec4a606 Firewall: migrate normalization to MVC rules and establish new settings menu (#10826)
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.
2026-09-04 08:22:26 +02:00
Ad Schellevis 6e4dab1042 Interfaces: Assignments - next round of attributes, closes https://github.com/opnsense/core/issues/10568 (#10802)
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.
2026-08-27 18:06:02 +02:00
Franco Fichtner 66baf88de1 pkg: fix plist 2026-08-26 14:47:03 +02:00
Ad Schellevis 6d98acdf17 Interfaces: Wireless: Devices - Migrate to MVC code, second phase, move settings from Interfaces into Wireless. closes https://github.com/opnsense/core/issues/10751 (#10796)
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.
2026-08-26 10:32:24 +02:00
MonviechandAd Schellevis 27ced6a6d2 mvc: add JsonAuditField and implement in firewall (#10726)
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>
2026-08-25 10:47:42 +02:00
Ad Schellevis 11012eb422 Interfaces: Wireless: Devices - Migrate to MVC code, first phase for https://github.com/opnsense/core/issues/10751 (#10782)
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.
2026-08-24 16:05:54 +02:00
Ad Schellevis 92cb28a669 Interfaces: Assignments - add interface configuration settings in new assignments page. for https://github.com/opnsense/core/issues/10568 (#10740)
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.
2026-08-20 20:10:19 +02:00
Roy Orbitson 8966c55702 Clean QR codes (#10737)
- Update Kazuhiko Arase's QR Code generation library
- Use built-in image generation for accurate renders
- Simpler jQuery plugin
2026-08-19 16:47:59 +02:00