17553 Commits

Author SHA1 Message Date
Ad Schellevis
a94e08ec66 Squashed commit of the following:
commit a59dc4394043aa5fce060426f13d965ab3c6679f
Author: Ad Schellevis <ad@opnsense.org>
Date:   Mon Nov 18 21:16:13 2024 +0100

    Services: Kea DHCP [new]: Leases DHCPv4 - minor cleanups for https://github.com/opnsense/core/pull/8053

commit 9986eca14c4ee72675bedc31953cefe60a6659cd
Merge: d23170c05 8d0ab40c5
Author: cpalv <13182421+cpalv@users.noreply.github.com>
Date:   Mon Nov 11 23:46:43 2024 -0600

    Merge branch 'opnsense:master' into mac-db

commit d23170c05f3d511000d8302dd2403c0761d757ac
Author: eddie <13182421+cpalv@users.noreply.github.com>
Date:   Mon Nov 11 23:45:16 2024 -0600

    Add MAC formatter, removed unclosed table row tag

    macformatter will include the hardware manufacturer info (if it exists) in the same table cell as MAC address

    removed unclosed 'tr' tag.  linked 'hwaddr' column to macformatter.  adjusted spacing

commit 04e7cf40ee809b3afdcc203d27cd3ed9cd9ff128
Author: eddie <13182421+cpalv@users.noreply.github.com>
Date:   Mon Nov 11 23:39:30 2024 -0600

    add MAC manufacturer info to dhcp lease record
2024-11-18 21:17:39 +01:00
Franco Fichtner
db8005b186 system: ignore monitor status on boot 2024-11-18 16:42:52 +01:00
Ad Schellevis
e40596e16e System: Access: Servers - add "Default groups" option to add standard groups when a radius/ldap user logs in. closes https://github.com/opnsense/core/issues/8065 2024-11-16 20:36:56 +01:00
Franco Fichtner
5f533d4573 src: scrub 2024-11-14 11:48:05 +01:00
Ad Schellevis
89ef336bd9 Trust: flush openssl.cnf to /etc/ssl/openssl.cnf as well (redux) 2024-11-14 11:45:33 +01:00
Franco Fichtner
9c08cd9abd src: style change 2024-11-14 11:42:11 +01:00
Franco Fichtner
d46b8e5766 firmware: debug output 2024-11-14 11:39:26 +01:00
Franco Fichtner
6efafb6d1b firmware: we write /etc/ssl/openssl.cnf now 2024-11-14 11:25:51 +01:00
Ad Schellevis
3f6cec92c4 Trust: flush openssl.cnf to /etc/ssl/openssl.cnf as well 2024-11-14 11:12:21 +01:00
Franco Fichtner
0d067d973a firmware: force CRL check on development deployment 2024-11-14 10:40:25 +01:00
Franco Fichtner
b24dbb8904 firmware: remove unused 2024-11-14 10:37:19 +01:00
Franco Fichtner
8a1965e094 firmware: move bogons fetch to firmware scripts
Be done with the retry and use the launcher.sh -r argument for
the cron-based execution.  Leave the backend commands where they
are.

Since the file had no copyright header looking at the old code
it looks like Bill and Scott worked on the file first in 2005.
Not really concerned with consecutive history here for lack of
creating a copyright header for so long.
2024-11-14 10:36:17 +01:00
Franco Fichtner
4d7f2616dd firmware: generalise the output handling
This also moves the initial output to the start of the script
again which clears and seeds the output file so the GUI picks
up the right operation immediately.  This was a problem during
CRL setup which may delay the execution too much.

Make the output_done() and output_reboot() both never return
which simplifies the code a bit.

There is more potential for improved output handling but for
the time being this should suffice to fix the current glitches.
2024-11-14 09:58:01 +01:00
Franco Fichtner
1a5e4b6922 firmware: changelogs did not take env 2024-11-13 16:23:56 +01:00
Franco Fichtner
567296b476 firmware: seems to make sense 2024-11-13 16:23:00 +01:00
Franco Fichtner
b0fdeae6d2 Revert "firmware: when calling one of the predefined commands via our launcher, the environment should be initialized."
This reverts commit 1ff4c95f115028cd3786f249ef77500767c904bf.

Intended side effect so that the launcher will have access to the vars
published by config.sh -- when the launcher starts the actual script
the script itself will source the config.sh again causing the env_init()
to be called for all participating COMMANDS.  This ensures the env_init()
call is locked by default.
2024-11-13 16:06:31 +01:00
Monviech
3b54ba517f
routing/gateways: Fix ipv4 and ipv6 validation not being displayed in the gateway form (#8060) 2024-11-13 14:54:11 +01:00
Franco Fichtner
41d8cf30c9 src: small audit regarding "pkg" use
Running the grep below lights up a few spots still:

    # git grep 'pkg[^/\[\.a-z'"'"',()_+"]'

Make a few decisions for the future:

* Use "pkg-static" outside the firmware code consistently
  with a full path
* Modify ambiguous code or comments to not be found by the
  grep above
* Firmware uses PKG now if we ever have to pivot to pkg-static
  or when we need to overwise modify the call.

The goal of this excerise was to find all stray package manager
spots that may run their own embedded pkg-update without the
proper environment which should be gone for now.
2024-11-13 11:59:47 +01:00
Franco Fichtner
3849d4cbc5 firmware: use PKG variable for scripting, part 2 2024-11-13 11:43:27 +01:00
Franco Fichtner
2ab6cad193 firmware: use PKG variable for scripting, part 1 2024-11-13 11:34:17 +01:00
Franco Fichtner
70a59f8ad3 firmware: protect details.sh, reboot.sh and query.sh 2024-11-13 11:00:11 +01:00
Franco Fichtner
536166095c test: move opnsense-atf to debug plugin 2024-11-13 08:12:01 +01:00
Ad Schellevis
1ff4c95f11 firmware: when calling one of the predefined commands via our launcher, the environment should be initialized.
While debugging some missing TLS parameters, I noticed the ciphers where different than expected. Digging a bit deeper seemed to indicate env_init() wasn't called on my end.
If SELF should be the command, the intention was likely to pass the parameter instead of the script name (which is always launcher)

cc @fichtner
2024-11-12 18:23:47 +01:00
Franco Fichtner
2ff993ea57 test: improve opnsense-atf to run more pf tests
This needs more restructuring in a plugin perhaps or being
added to os-debug.  Sounds like a useful next step.  :)
2024-11-12 17:03:33 +01:00
Franco Fichtner
c7f9b4b13a test: add a script to run atf-sh based tests 2024-11-12 15:27:08 +01:00
Franco Fichtner
875d31b234 mvc: touchup on ApiMutableServiceControllerBase
If we need to reload only ask once and avoid probing service status
in that case as we do not need it.
2024-11-12 12:28:03 +01:00
Franco Fichtner
8d0ab40c56 mvc: always do stop/start on forced restart
If 'nocheck' is used the service apears running and reload will
do nothing.
2024-11-11 12:32:54 +01:00
Franco Fichtner
c30b46bd27 wireguard: captain obvious left the building 2024-11-11 12:24:31 +01:00
Stephan de Wit
deb097bd67 filter: add 'Action' property to list of retrieved rules 2024-11-11 09:04:23 +01:00
Franco Fichtner
f405b6211a interfaces: refactor a bit more, add a separate log message #7027 2024-11-09 09:56:14 +01:00
Franco Fichtner
a86c7106ed backend: add 'configd environment' to quickly test resulting env
PR: https://forum.opnsense.org/index.php?topic=43474.0
2024-11-08 14:57:41 +01:00
TotalGriffLock
f5c4504a1d Update opnsense-version
Restored pre-2019 default output format
2024-11-08 14:34:32 +01:00
Franco Fichtner
b9b98f12ae interfaces: use Autoconf class to avoid raw ifctl file access 2024-11-08 09:47:47 +01:00
Franco Fichtner
270aac573d interfaces: need the gateway for proper route-to flush #7027 2024-11-07 21:13:37 +01:00
Franco Fichtner
913a5caae3 system: kill the SSL bundles in default locations
Neither OpenSSL base (/etc/ssl) nor ports (/usr/local/openssl) need
the bundle file now that we use the directory trust store.  The downside
is that as soon as the bundle exists OpenSSL library will read both the
directory and the bundle by default defeating the purpose of a single
location and the directory being faster.

Keep the fringe ca_root_nss location /usr/local/etc/ssl since that is
still seeded by the package but controlled and topped up by the user
configured authorities.
2024-11-07 19:38:49 +01:00
Franco Fichtner
a08931c718 system: revert CRLs in bundles, bundles need to die 2024-11-07 19:31:41 +01:00
Franco Fichtner
73e837d7d3 interfaces: state experiment for #7027
PR: https://github.com/opnsense/core/issues/7635#issuecomment-2462066123
2024-11-07 13:20:21 +01:00
Franco Fichtner
671f4d4415 firewall: improve logging message in bogons update
PR: https://forum.opnsense.org/index.php?topic=43881.0
2024-11-07 08:20:32 +01:00
Ad Schellevis
0788dde6d2 System: Access: Groups - in preperation for https://github.com/opnsense/core/issues/7904, add support for comma separated member lists.
If we convert groups to a model, we will switch the nested <member> tags into comma separated fields, e.g.

	<member>1</member>
	<member>12</member>

will convert to:

	<member>1,12</member>

using this commit we support both for areas where these are being read.
2024-11-06 21:47:17 +01:00
Franco Fichtner
60fe414c1e firmware: make the optional CRL functionality obvious
This is not being used yet but is very likely needed to
get this into FreeBSD.
2024-11-05 13:13:51 +01:00
Franco Fichtner
d91c77f633 firmware: stale CRL index if hosts changed 2024-11-05 13:05:19 +01:00
Ad Schellevis
323c094759 System: Trust: Certificates - add user selection in certificate grid. (part of https://github.com/opnsense/core/issues/7904) 2024-11-04 17:46:47 +01:00
Ad Schellevis
b817853383 Authentication: kill some "isset()" conditions in preperation for https://github.com/opnsense/core/issues/7904 2024-11-04 13:27:31 +01:00
Franco Fichtner
160d7c2f50 system: touchup on SSL directories, /usr/local/etc/ssl should be deprecated 2024-11-04 12:23:30 +01:00
Franco Fichtner
f5d6a3a329 system: small issue with previous
It's rebatable how careful we should be reading files from /etc/ssl/certs
but in practice garbage-in-garbage-out is the best approach and just match
a wider variety of files included in the directory.
2024-11-04 12:09:48 +01:00
Franco Fichtner
799909a23a system: bring CRLs into bundles as well 2024-11-04 12:00:11 +01:00
Franco Fichtner
5b6d347c57 system: improve a comment 2024-11-04 11:59:10 +01:00
Franco Fichtner
95c2c2e49b system: garbage collect unused directories in certctl.py
We do not currently use /usr/local/share/certs/untrusted either,
but keep it for future use.  The other directories are not used
by FreeBSD 14 or newer so just remove their use.
2024-11-04 11:48:17 +01:00
Franco Fichtner
7d77f9f134 system: list certificates by subject, not issuer 2024-11-04 11:41:18 +01:00
Franco Fichtner
bf3231ff6b firewall: tweak this help text
No markup, no second paragraph.  This is an inentional design
choice for better or worse so weave it into the existing note.
2024-11-04 11:28:34 +01:00