How can I configure web-management using CLI?

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.

  1. 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.
  2. Enter the configuration mode by typing: configure.
  3. 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. 
  4. Once you arrive at this point you may choose from several options related to management.
  5. Type: management and hit Tab. The available options are:
    • HTTPS
    • Ping
    • SNMP
    • SSH
  6. Type: commit and hit enter.
  7. Type exit and hit enter to leave the configuration session.

    Example: Enabling management on X0 interface:


    Example: Enabling management on MGMT interface:
    Image

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.

  1. Log into the unit using your administrator's account.
  2. Enter configuration mode by typing: configure.
  3. Then type: administration and hit enter.
    puTTY display will show:
    (config-administration)#
  4. 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.
    Image

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.
    Image

Related Articles

  • How to export and import connection profiles in NetExtender
    Read More
  • Unable access High availability idle device using monitoring IP address
    Read More
  • SSL Control enabled with "Detect Certificate signed by an Untrusted CA" causes Windows Update to fail.
    Read More
not finding your answers?
was this article helpful?