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

Reminder

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

upgrade

CLI-based Configuration Guide - Security

AR500, AR510, and AR530 V200R007

This document describes the configurations of Security, including AAA, DAA,NAC, BRAS Access, ACL, Firewall, Deep Security Defense, Local Attack Defense;Attack Defense, Traffic Suppression, ARP Security, Port Security, DHCP Snooping, IPSG, URPF, PKI, SSL, HTTPS, Keychain, separating the management plane from the service plane, security risks.
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

Context

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.
[FirewallBlacklist]
IPAddress = 10.10.10.1
VPNName = vpna
[FirewallBlacklist]
IPAddress = 10.10.10.2
VPNName = 

[FirewallWhitelist]
IPAddress = 10.10.10.3
VPNName = vpnb
[FirewallWhitelist]
IPAddress = 10.20.20.1
VPNName = 
NOTE:
A configuration file can contain up to 50000 lines.

Procedure

  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.

Translation
Download
Updated: 2019-05-25

Document ID: EDOC1000097287

Views: 14801

Downloads: 40

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