I encountered the same issue but deleting/re-adding the wgX assignment didn't solve it for me.
In my case, it turned out there was a
Root cause for the error message:
Back in the days when I used ISC-DHCPD, one of my networks was configured on the
It appears that when attempting to enable the new Wireguard interface, OPNsense still evaluated the old ISC-DHCPD configuration for the
The solution was to SSH into the OPNsense box, manually edit
With this fix in place, I was able to enable the Wireguard interface.
In my case, it turned out there was a
Code Select
<dhcpd>...</dhcpd> section in the Code Select
/conf/config.xml file that contained a legacy ISC-DHCPD configuration from waaaay back when I used that - despite having migrated to Kea DHCP already ages ago. It seems OPNsense does not delete configuration for services/tools that are being disabled/uninstalled - maybe that's for a restore scenario where you re-install/re-enable that service... who knows.Root cause for the error message:
Back in the days when I used ISC-DHCPD, one of my networks was configured on the
Code Select
opt4 identifier, which later got freed up by a network redesign and then got re-used when I set up Wireguard.It appears that when attempting to enable the new Wireguard interface, OPNsense still evaluated the old ISC-DHCPD configuration for the
Code Select
opt4 identifier - which (obviously) had DHCP enabled and therefore threw the error:Code Select
The following input errors were detected:
The DHCP Server is active on this interface and it can be used only with a static IP configuration. Please disable the DHCP Server service on this interface first, then change the interface configuration.The solution was to SSH into the OPNsense box, manually edit
Code Select
/conf/config.xml and remove the Code Select
<opt4>...</opt4> section that was nested inside the Code Select
<dhcpd>...</dhcpd> section of the XML code.With this fix in place, I was able to enable the Wireguard interface.
"