No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


CLI-based Configuration Guide - Security

AR100, AR120, AR150, AR160, AR200, AR1200, AR2200, AR3200, and AR3600 V200R010

This document provides the basic concepts, configuration procedures, and configuration examples in different application scenarios of the network management feature supported by the device.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring Blacklist or Whitelist Entries in Batches

Configuring Blacklist or Whitelist Entries in Batches


You can configure blacklist and whitelist entries in a batch by loading a configuration file. The configuration file for storing the blacklist and whitelist must be available.

The entries in the whitelist take effect immediately, and you do not need to enable the whitelist function.

The configuration file must be in txt format and contain the following fields:
[FirewallBlacklist]        # A blacklist entry
IPAddress =                # An IP address in the blacklist, in dotted decimal notation
VPNName =                  # (Optional) VPN instance of the blacklist entry
[FirewallWhitelist]        # A whitelist entry
IPAddress =                # An IP address in the whitelist, in dotted decimal notation
VPNName =                  # (Optional) VPN instance of the whitelist entry
A configuration file can contain multiple entries, but each entry must be edited separately. Blank lines are allowed between lines.
IPAddress =
VPNName = vpna
IPAddress =
VPNName = 

IPAddress =
VPNName = vpnb
IPAddress =
VPNName = 
A configuration file can contain up to 50000 lines.


  1. Run system-view

    The system view is displayed.

  2. Run firewall black-white-list load configuration-file configuration-file-name

    A blacklist and whitelist configuration file is loaded.

  3. Run firewall blacklist enable

    The blacklist function is enabled.

  4. (Optional) Run firewall black-white-list save configuration-file configuration-file-name

    The blacklist and whitelist are saved to the specified configuration file.

Updated: 2019-08-07

Document ID: EDOC1100034077

Views: 128691

Downloads: 231

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Previous Next