core
core copied to clipboard
Enhance Command-Line Interface Management for Configuring Network Interfaces
Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
- [x] I have read the contributing guide lines at https://github.com/opnsense/core/blob/master/CONTRIBUTING.md
- [x] I am convinced that my issue is new after having checked both open and closed issues at https://github.com/opnsense/core/issues?q=is%3Aissue
Enhance Command-Line Interface Management for Configuring Network Interfaces
Feature Summary
The current command-line interface (CLI) capabilities for configuring network interfaces in OPNsense are limited, particularly when it comes to modifying existing configurations without deleting and recreating them. This limitation becomes particularly cumbersome in scenarios where the management interface is lost or misconfigured, and there is a need to adjust its configuration to regain access to the web UI.
Problem Statement
In the current version of OPNsense, if a user needs to modify the configuration of an interface (e.g., change IP address, VLAN configuration, etc.), the only option through the console is to delete the existing configuration and start over. This approach is not only time-consuming but also prone to errors, especially in critical situations where quick recovery of the management interface is essential for system administration tasks.
Proposed Solution
I propose the development and integration of an enhanced CLI tool or extension of the existing CLI capabilities to allow for the modification of network interface configurations without the need to delete and recreate the interface settings. This tool should support:
- Modification of IP addresses (both IPv4 and IPv6)
- VLAN tagging and untagging
- Enabling or disabling interfaces
- Adjusting MTU settings
- Configuration of DHCP settings (client or server mode)
The tool should be intuitive to use, with clear syntax and help documentation, enabling administrators to quickly make changes to interface configurations, especially in emergency situations where access to the web UI is not available.