How can I configure web-management using CLI?
10/09/2024 156 People found this article helpful 485,951 Views
Description
This article provides information on how to configure management options over the command line interface (CLI).
Resolution
Here's how to enable web-management from CLI.
- Log in to the SonicWall appliance via SSH or console port using your administrator account. You may use a terminal application like puTTY to access the CLI.
- Enter the configuration mode by typing: configure.
- Type: interface X0 in order to start configuring the interface.
puTTY display will show:
(edit-interface[X0])#
NOTE: If you have NSA or higher end firewall model there is a dedicated interface [MGMT] for management purpose.
- Once you arrive at this point you may choose from several options related to management.
- Type: management and hit Tab. The available options are:
- Type: commit and hit enter.
- Type exit and hit enter to leave the configuration session.
Example: Enabling management on X0 interface:
Example: Enabling management on MGMT interface:
Here's other types of commands to disable management or to enable SSH management.
- In order to disable HTTPS management on the X0 interface type:
no management HTTPS and hit enter, then type: commit and hit enter. - In order to enable SSH management on the X0 interface type:
management SSH and hit enter, then type: commit and hit enter. - Type exit and hit enter to leave the configuration session.
If you would like to manage your device over a non-standard HTTPS port you need to access the administration section.
- Log into the unit using your administrator's account.
- Enter configuration mode by typing: configure.
- Then type: administration and hit enter.
puTTY display will show:
(config-administration)# - Next, you need to specify the custom port (in our case 44433) by typing:
web-management https-port 44433 and hit enter, then type commit and hit enter.
From now on you will be able to access your unit's GUI and manage it over HTTPS port 44433.
- While you are in administration configuration section you may enable management over HTTP. type:
web-management allow-http and hit enter, then type: commit and hit enter again. - In order to disable management over HTTP type:
no web-management allow-http and hit enter, then type commit and hit enter again.
Related Articles
Categories
Was This Article Helpful?
YESNO