< Home

web-manager enable

Function

The web-manager enable command enables the web server function on a FW.

The undo web-manager enable command disables the web server function on a FW.

Format

web-manager enable [ port port-number ]

web-manager security enable [ port port-number ]

undo web-manager enable [ port port-number ]

undo web-manager security enable [ port port-number ]

Parameters

Parameter Description Value

security

Indicates the type of packets exchanged between the web browser and the web server. You can configure as follows:

  • If security is not configured, the web browser and server can exchange HTTP packets using the default port number 80.

  • If security is configured, the web browser and server can exchange HTTPS packets using the default port number 8443.

-

port port-number

Specifies the listening port number for the web server.

  • The value is an integer ranging from 1025 to 50000 for HTTP.

  • The value is an integer ranging from 1025 to 50000 and 443 for HTTPS.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

The FW enables ports 80 and 8443 to provide the HTTPS service by default. When you use the web browser to access port 80, the FW automatically redirects the access to port 8443 for you to log in through HTTPS.

For security purposes, to log in to the web UI, you need to run both the web-manager enable and web-manager security enable commands, but not by only running the web-manager enable command.

If web-manager enable and web-manager security enable are run, to disable the web server, you must run both the undo web-manager enable and undo web-manager security enable commands.

In NAT Server and NAT64 scenarios, when you use the web browser to access port 80, the FW does not automatically redirect the access to port 8443. To access port 8443, login through HTTPS is recommended.

Before changing the service port number of the web server, run the undo web-manager [ security ] enable [ port port-number ] command to delete the configured service port. Otherwise, the change will fail.

Example

# Enable the web server function on a FW to allow HTTPS access using port 2000.

<sysname> system-view
[sysname] web-manager security enable port 2000
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >