After entering an invalid LAN IP address in the OPNsense wizard (e.g. an IPv6 address) and reloading at the end of the wizard, the LAN interface is left without an IPv4 interface. This practically breaks all connectivity of the LAN interface, including the GUI.
To Reproduce
Steps to reproduce the behavior:
Go to "System: Wizard"
Click "Next" until "System: Wizard: Configure LAN Interface".
Enter something invalid (e.g. "fd00:10::1") into the field "LAN IP Address:".
Click "OK" on the Pop-up "LAN IP Address field is invalid".
Click "Next" until "System: Wizard: Reload Configuration".
Click "Reload".
Expected behavior
The Wizard should prevent the user from proceeding after entering an invalid IP address, instead of only displaying the "LAN IP Address field is invalid" popup, like by graying out the "Next" button. While it is the user's fault for proceeding after the warning, the LAN interface on OPNsense is rendered completely unusable (no DNS, DHCP, routing, GUI, etc.) until the setting is corrected at the command line.
Describe alternatives you considered
Alternatively, if invalid data is entered in the LAN IP Address: field, the wizard could exit to the dashboard to prevent the user from locking themselves out.
Screenshots
Warning popup:
After the reload, the "IPv4 Configuration Type" is changed to "None".
Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
Describe the bug
After entering an invalid LAN IP address in the OPNsense wizard (e.g. an IPv6 address) and reloading at the end of the wizard, the LAN interface is left without an IPv4 interface. This practically breaks all connectivity of the LAN interface, including the GUI.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The Wizard should prevent the user from proceeding after entering an invalid IP address, instead of only displaying the "LAN IP Address field is invalid" popup, like by graying out the "Next" button. While it is the user's fault for proceeding after the warning, the LAN interface on OPNsense is rendered completely unusable (no DNS, DHCP, routing, GUI, etc.) until the setting is corrected at the command line.
Describe alternatives you considered
Alternatively, if invalid data is entered in the LAN IP Address: field, the wizard could exit to the dashboard to prevent the user from locking themselves out.
Screenshots
Warning popup:
After the reload, the "IPv4 Configuration Type" is changed to "None".
Relevant log files
Configuration diff:
Environment
Software version used and hardware type if relevant, e.g.:
OPNsense 23.1.11-amd64 FreeBSD 13.1-RELEASE-p8 OpenSSL 1.1.1u 30 May 2023 Intel® Core™ i5-6500 3.2Ghz Quad Core Network Intel® I350-T4