Configuring the IP blacklist feature

About the IP blacklist feature

The IP blacklist feature filters packets sourced from IP addresses in blacklist entries. If the global blacklist feature is enabled, the blacklist feature is enabled on all interfaces.

IP blacklist entries can be manually added or dynamically learned:

Procedure

  1. Enter system view.

    system-view

  2. (Optional.) Enable the global blacklist feature.

    blacklist global enable

    By default, the global blacklist feature is disabled.

  3. (Optional.) Add an IP blacklist entry.

    • Add an IPv4 blacklist entry.

      blacklist ip source-ip-address [ vpn-instance vpn-instance-name ] [ ds-lite-peer ds-lite-peer-address ] [ timeout minutes ]

    • Add an IPv6 blacklist entry.

      blacklist ipv6 source-ipv6-address [ vpn-instance vpn-instance-name ] [ timeout minutes ]

  4. (Optional.) Enable logging for the blacklist feature.

    blacklist logging enable

    By default, logging is disabled for the blacklist feature.