OPNSense/core b75dccb. plist, src/etc/rc.syshook.d/start 90-hostwatch

interfaces: add a workaround for one-time sefgault in hostwatch

Seen this during testing but it's hard to debug in that post-update state
during bootup.  In principle nothin g even changed between "50" and "90".
DeltaFile
+4-0src/etc/rc.syshook.d/start/90-hostwatch
+1-0plist
+5-02 files

OPNSense/core 33461a8src/etc/inc/plugins.inc.d hostwatch.inc, src/opnsense/service/conf/actions.d actions_hostwatch.conf

interfaces: get hostwatch status by process name

The PID takes a few ms to materialize, long enough for an apply to
show the service as red while still restarting.

The issue is reproducible via:

    # service hostwatch restart && service hostwatch status

It shows the service as stopped.

(cherry picked from commit 55f34d8feb7a1b2b9af1e24ed46e6029fdaf3455)
DeltaFile
+2-1src/etc/inc/plugins.inc.d/hostwatch.inc
+1-1src/opnsense/service/conf/actions.d/actions_hostwatch.conf
+3-22 files

OPNSense/core 55f34d8src/etc/inc/plugins.inc.d hostwatch.inc, src/opnsense/service/conf/actions.d actions_hostwatch.conf

interfaces: get hostwatch status by process name

The PID takes a few ms to materialize, long enough for an apply to
show the service as red while still restarting.

The issue is reproducible via:

    # service hostwatch restart && service hostwatch status

It shows the service as stopped.
DeltaFile
+2-1src/etc/inc/plugins.inc.d/hostwatch.inc
+1-1src/opnsense/service/conf/actions.d/actions_hostwatch.conf
+3-22 files

OPNSense/core 390f772src/opnsense/mvc/app/models/OPNsense/Hostdiscovery Hostwatch.xml

interfaces: update version of hostwatch model

(cherry picked from commit 5ef22164e475eaedc508ffa903602df50d631cb0)
DeltaFile
+1-1src/opnsense/mvc/app/models/OPNsense/Hostdiscovery/Hostwatch.xml
+1-11 files

OPNSense/core 5ef2216src/opnsense/mvc/app/models/OPNsense/Hostdiscovery Hostwatch.xml

interfaces: update version of hostwatch model
DeltaFile
+1-1src/opnsense/mvc/app/models/OPNsense/Hostdiscovery/Hostwatch.xml
+1-11 files

OPNSense/core 8da4a37src/opnsense/mvc/app/controllers/OPNsense/Hostdiscovery/forms general.xml, src/opnsense/scripts/filter/lib/alias arpcache.py

interfaces: rename two "hostdiscovery" instances

These better reflect that "hostwatch" is used although the
service has been coined "Host discovery" or even "Automatic
Discovery".

(cherry picked from commit 48426a39e6193128fd89da8abc737d2fbe8a0d13)
DeltaFile
+1-1src/opnsense/mvc/app/controllers/OPNsense/Hostdiscovery/forms/general.xml
+1-1src/opnsense/scripts/filter/lib/alias/arpcache.py
+2-22 files

OPNSense/core 48426a3src/opnsense/mvc/app/controllers/OPNsense/Hostdiscovery/forms general.xml, src/opnsense/scripts/filter/lib/alias arpcache.py

interfaces: rename two "hostdiscovery" instances

These better reflect that "hostwatch" is used although the
service has been coined "Host discovery" or even "Automatic
Discovery".
DeltaFile
+1-1src/opnsense/mvc/app/controllers/OPNsense/Hostdiscovery/forms/general.xml
+1-1src/opnsense/scripts/filter/lib/alias/arpcache.py
+2-22 files

OPNSense/core a505fe0src/etc/inc/plugins.inc.d hostwatch.inc

interfaces: fix hostwatch internal service name

(cherry picked from commit 8ab1130f073764e1d32feb8e76b0945b8f724159)
DeltaFile
+1-1src/etc/inc/plugins.inc.d/hostwatch.inc
+1-11 files

OPNSense/core 8ab1130src/etc/inc/plugins.inc.d hostwatch.inc

interfaces: fix hostwatch internal service name
DeltaFile
+1-1src/etc/inc/plugins.inc.d/hostwatch.inc
+1-11 files

OPNSense/core 87a9cb2src/opnsense/mvc/app/controllers/OPNsense/Radvd/forms dialogEntry.xml

radvd: typo via @monviech
DeltaFile
+1-1src/opnsense/mvc/app/controllers/OPNsense/Radvd/forms/dialogEntry.xml
+1-11 files

OPNSense/core ac2fc5a. Makefile

pkg: the script has the benefit of testing at the moment

pluginctl reaches into webgui.inc but the firmware and configd
use rc.restart_webgui which we want to hook into for now.
DeltaFile
+1-1Makefile
+1-11 files

OPNSense/core a571809src/etc rc.restart_webgui, src/etc/rc.syshook.d/upgrade 20-isc-dhcp-plugin.sh

firmware: hook plugin install, third time is the charm?
DeltaFile
+7-1src/etc/rc.syshook.d/upgrade/20-isc-dhcp-plugin.sh
+3-0src/etc/rc.restart_webgui
+10-12 files

OPNSense/core 82af1a6src/etc/inc/plugins.inc.d radvd.inc, src/opnsense/mvc/app/controllers/OPNsense/Radvd/forms dialogEntry.xml

radvd: implement RemoveAdvOnExit override #9616
DeltaFile
+10-0src/opnsense/mvc/app/controllers/OPNsense/Radvd/forms/dialogEntry.xml
+7-0src/opnsense/mvc/app/models/OPNsense/Radvd/Radvd.xml
+3-2src/etc/inc/plugins.inc.d/radvd.inc
+20-23 files

OPNSense/core af9c810src/opnsense/scripts/firmware update.sh

firmware: doesn't work either; time to call it a day
DeltaFile
+0-8src/opnsense/scripts/firmware/update.sh
+0-81 files

OPNSense/core 0fd0daesrc/opnsense/scripts/firmware update.sh

firmware: typo

(cherry picked from commit eef31ec6c064abd68ce5e641af989b3e62006d4d)
DeltaFile
+1-1src/opnsense/scripts/firmware/update.sh
+1-11 files

OPNSense/core eef31ecsrc/opnsense/scripts/firmware update.sh

firmware: typo
DeltaFile
+1-1src/opnsense/scripts/firmware/update.sh
+1-11 files

OPNSense/core 12fa856src/opnsense/scripts/firmware update.sh

firmware: park this code here instead as it should work better
DeltaFile
+8-0src/opnsense/scripts/firmware/update.sh
+8-01 files

OPNSense/core c0e2db4. plist, src/etc/rc.syshook.d/update 20-isc-dhcp-plugin.sh

firmware: ok no safety net then

>>> Invoking update script 'isc-dhcp-plugin.sh'
Installing legacy ISC-DHCP plugin for compatibility...
Strict TLS 1.3 and CRL checking is enabled.
Updating OPNsense repository catalogue...
OPNsense repository is up to date.
All repositories are up to date.
process with pid 7698 still holds the lock
process with pid 7698 still holds the lock
process with pid 7698 still holds the lock
process with pid 7698 still holds the lock
process with pid 7698 still holds the lock
process with pid 7698 still holds the lock
pkg: Cannot get an advisory lock on a database, it is locked by another process
process with pid 7698 still holds the lock
process with pid 7698 still holds the lock
process with pid 7698 still holds the lock
process with pid 7698 still holds the lock

    [3 lines not shown]
DeltaFile
+0-33src/etc/rc.syshook.d/update/20-isc-dhcp-plugin.sh
+0-1plist
+0-342 files

OPNSense/core d6790ec. plist, src/etc/rc.syshook.d/update 20-isc-dhcp-plugin.sh

firmware: on the development side run the isc-dhcp plugin hook too

Since we removed the code make sure the update goes ok since the
imminent reboot can have a bad effect on recovery.
DeltaFile
+33-0src/etc/rc.syshook.d/update/20-isc-dhcp-plugin.sh
+1-0plist
+34-02 files

OPNSense/core 3011417src/opnsense/service/templates/OPNsense/Syslog syslog-ng.conf.in

system: sort to retain order in Syslog source definitions

The files are numbered but the glob will throw the files into
the array like it finds them on the disk.

(cherry picked from commit adc5b7a482d075c11f57e56c033c964506af80a0)
DeltaFile
+1-1src/opnsense/service/templates/OPNsense/Syslog/syslog-ng.conf.in
+1-11 files

OPNSense/core adc5b7asrc/opnsense/service/templates/OPNsense/Syslog syslog-ng.conf.in

system: sort to retain order in Syslog source definitions

The files are numbered but the glob will throw the files into
the array like it finds them on the disk.
DeltaFile
+1-1src/opnsense/service/templates/OPNsense/Syslog/syslog-ng.conf.in
+1-11 files

OPNSense/core 9136078. plist, src/opnsense/service/templates/OPNsense/Syslog/local dhcpd.conf

isc-dhcp: syslog definitions and reshuffling
DeltaFile
+0-6src/opnsense/service/templates/OPNsense/Syslog/local/dhcpd.conf
+1-1plist
+0-2src/opnsense/service/templates/OPNsense/Syslog/sources/001-local.conf
+1-0src/opnsense/service/templates/OPNsense/Syslog/sources/005-unbound.conf
+2-94 files

OPNSense/core dc43ba9src/etc/rc.syshook.d/upgrade 20-isc-dhcp-plugin.sh

firmware: if the file marker for the plugin is found don't do it again (to avoid errors)
DeltaFile
+6-3src/etc/rc.syshook.d/upgrade/20-isc-dhcp-plugin.sh
+6-31 files

OPNSense/core 99c8109src/etc/inc filter.lib.inc, src/opnsense/mvc/app/models/OPNsense/Base/Menu MenuSystem.php

isc-dhcp: move definition and defang menu and rules #9155
DeltaFile
+0-45src/opnsense/mvc/app/models/OPNsense/Core/ACL/ACL.xml
+0-7src/opnsense/mvc/app/models/OPNsense/Core/Menu/Menu.xml
+6-0src/opnsense/mvc/app/models/OPNsense/Base/Menu/MenuSystem.php
+1-1src/etc/inc/filter.lib.inc
+7-534 files

OPNSense/core 729833csrc/opnsense/scripts/dhcp get_leases6.py prefixes.php, src/opnsense/service/conf/actions.d actions_dhcpd.conf

isc-dhcp: more easy files for #9155
DeltaFile
+0-171src/opnsense/scripts/dhcp/get_leases6.py
+0-138src/opnsense/scripts/dhcp/prefixes.php
+0-117src/opnsense/scripts/dhcp/cleanup_leases4.php
+0-108src/opnsense/scripts/dhcp/cleanup_leases6.php
+0-53src/opnsense/scripts/dhcp/get_leases.py
+0-50src/opnsense/service/conf/actions.d/actions_dhcpd.conf
+0-6374 files not shown
+1-73610 files

OPNSense/core fd0c70d. plist, src/opnsense/scripts/dhcp unbound_watcher.py dnsmasq_watcher.py

isc-dhcp: move two scripts to their callers #9155
DeltaFile
+250-0src/opnsense/scripts/unbound/unbound_watcher.py
+0-250src/opnsense/scripts/dhcp/unbound_watcher.py
+134-0src/opnsense/scripts/dnsmasq/dnsmasq_watcher.py
+0-134src/opnsense/scripts/dhcp/dnsmasq_watcher.py
+2-2plist
+1-1src/opnsense/scripts/unbound/start.sh
+387-3871 files not shown
+388-3887 files

OPNSense/core 23589f1src/etc/inc/plugins.inc.d dhcpd.inc, src/opnsense/mvc/app/controllers/OPNsense/DHCPv6/Api LeasesController.php

isc-dhcp: remove main files for #9155

It will probably take more time to remove the loose ends but this
is the working bulk state for the pluginification.
DeltaFile
+0-1,319src/etc/inc/plugins.inc.d/dhcpd.inc
+0-1,218src/www/services_dhcp.php
+0-901src/www/services_dhcpv6.php
+0-509src/www/services_dhcp_edit.php
+0-273src/www/services_dhcpv6_edit.php
+0-272src/opnsense/mvc/app/controllers/OPNsense/DHCPv6/Api/LeasesController.php
+0-4,49211 files not shown
+0-5,29617 files

OPNSense/core 4469cf2. plist, src/etc/rc.syshook.d/upgrade 20-isc-dhcp-plugin.sh

isc-dhcp: very simple migration script #9155

We're going to need this for 99% of the cases in existing installs
so instead of checking for something just install it and ask the
user to let it go if unneeded.
DeltaFile
+28-0src/etc/rc.syshook.d/upgrade/20-isc-dhcp-plugin.sh
+1-0plist
+29-02 files

OPNSense/core 8b9e00csrc/etc config.xml.sample

interfaces: make Dnsmasq the default IPv6 provider (#9595)

* Services: Dnsmasq DNS & DHCP: Add default IPv6 configuration to config.xml.sample

An additional DHCP range constructs RA from the WAN prefix. LAN requires track interface for this to work.
ra-stateless will set the O and A bit, allowing clients to use SLAAC and optionally receive other options via DHCPv6.
Clients will not request a DHCPv6 address which is more inline with most client implementations, as SLAAC is the common supported choice.
The RDNSS option will be offered via eaf7630.

* Fix typo in constructor, an IPv6 address (GUA or ULA) must exist on the interface

* Add DHCPv6 range and change mode to allow client to have SLAAC and IA_NA at same time

* system: adjust dhcpv6 range with isc default

---------

Co-authored-by: Franco Fichtner <franco at opnsense.org>
DeltaFile
+10-0src/etc/config.xml.sample
+10-01 files

OPNSense/core 6d8f1a4src/etc config.xml.sample

system: adjust dhcpv6 range with isc default
DeltaFile
+2-2src/etc/config.xml.sample
+2-21 files