IPsec connection cloning issues

Started by schnipp, October 07, 2025, 06:04:45 PM

Previous topic - Next topic
For renewing a IPsec S2S connection I tried to clone the connection (just in case if something goes wrong).

But cloning of the IPsec connection in Opnsense 25.7.4 fails with the following error message. The new connection is partially created (Local/Remote authentication and children are missing).

PHP-Error:
[07-Oct-2025 17:55:13 Europe/Berlin] OPNsense\Base\ValidationException: [OPNsense\IPsec\Swanctl:locals.local.0977c3df-a3e1-4fd7-bc3a-9675c163c8c2.connection] Option not in list.{21ff4ad2-57d4-417b-8ee7-b3efd5c1327a}
[OPNsense\IPsec\Swanctl:remotes.remote.6bee0d82-f55d-40a9-8ba4-88706e84772b.connection] Option not in list.{21ff4ad2-57d4-417b-8ee7-b3efd5c1327a}
[OPNsense\IPsec\Swanctl:children.child.865d0565-290a-4d9a-9e38-761797b9f123.connection] Option not in list.{21ff4ad2-57d4-417b-8ee7-b3efd5c1327a}
[OPNsense\IPsec\Swanctl:children.child.eb152ed1-c641-4b72-9883-b0ac8014f658.connection] Option not in list.{21ff4ad2-57d4-417b-8ee7-b3efd5c1327a}
[OPNsense\IPsec\Swanctl:children.child.ad84fad2-87f9-44ed-9c5f-0303a535e563.connection] Option not in list.{21ff4ad2-57d4-417b-8ee7-b3efd5c1327a}
[OPNsense\IPsec\Swanctl:children.child.4ed1a40b-d996-4b33-b1ad-3f2c20b404dd.connection] Option not in list.{21ff4ad2-57d4-417b-8ee7-b3efd5c1327a}
 in /usr/local/opnsense/mvc/app/models/OPNsense/Base/BaseModel.php:802
Stack trace:
#0 /usr/local/opnsense/mvc/app/controllers/OPNsense/Base/ApiMutableModelControllerBase.php(319): OPNsense\Base\BaseModel->serializeToConfig(false, false)
#1 /usr/local/opnsense/mvc/app/controllers/OPNsense/IPsec/Api/ConnectionsController.php(127): OPNsense\Base\ApiMutableModelControllerBase->save()
#2 /usr/local/opnsense/mvc/app/library/OPNsense/Mvc/Dispatcher.php(166): OPNsense\IPsec\Api\ConnectionsController->setConnectionAction()
#3 /usr/local/opnsense/mvc/app/library/OPNsense/Mvc/Router.php(156): OPNsense\Mvc\Dispatcher->dispatch(Object(OPNsense\Mvc\Request), Object(OPNsense\Mvc\Response), Object(OPNsense\Mvc\Session))
#4 /usr/local/opnsense/mvc/app/library/OPNsense/Mvc/Router.php(139): OPNsense\Mvc\Router->performRequest(Object(OPNsense\Mvc\Dispatcher))
#5 /usr/local/opnsense/www/api.php(36): OPNsense\Mvc\Router->routeRequest('/api/ipsec/conn...', Array)
#6 {main}

Does anybody know what exactly went wrong?
OPNsense 24.7.11_2-amd64