
[Huawei-Vlanif100]
quit
[Huawei]
interface gigabitethernet 0/0/1
[Huawei-GigabitEthernet0/0/1]
ip address 202.39.2.1 24
[Huawei-GigabitEthernet0/0/1]
zone untrust
[Huawei-GigabitEthernet0/0/1]
quit
Step 3
Enable the blacklist function.
[Huawei]
firewall blacklist enable
Step 4
Add an entry to the blacklist.
[Huawei]
firewall blacklist 202.39.1.2
Step 5
Enable the defense against IP address sweeping and port scanning.
[Huawei]
firewall defend ip-sweep enable
[Huawei]
firewall defend port-scan enable
Step 6
Configure the maximum session rate and blacklist timeout for the defense against IP address
sweeping or port scanning.
[Huawei]
firewall defend ip-sweep max-rate 5000
[Huawei]
firewall defend ip-sweep blacklist-expire-time 30
[Huawei]
firewall defend port-scan max-rate 5000
[Huawei]
firewall defend port-scan blacklist-expire-time 30
Step 7
Verify the configuration.
Run the
display firewall interzone
[
zone-name1
zone-name2
] command on the Router , and
the result is as follows:
[Huawei]
display firewall interzone trust untrust
interzone trust untrust
firewall enable
packet-filter default deny inbound
packet-filter default permit
outbound
Run the
display firewall blacklist
all
command on the Router , and the result is as follows:
[Huawei]
display firewall blacklist all
Firewall Blacklist Items :
------------------------------------------------------------------------
IP-Address Reason Expire-Time(m) VPN-Instance
------------------------------------------------------------------------
202.39.1.2 Manual Permanent
------------------------------------------------------------------------
total number is : 1
Run the
display firewall defend
command on the Router , and the result is as follows:
[Huawei]
display firewall defend port-scan
defend-flag : enable
max-rate : 5000 (pps)
blacklist-expire-time : 30 (m)
[Huawei]
display firewall defend ip-sweep
defend-flag : enable
max-rate : 5000 (pps)
blacklist-expire-time : 30 (m)
----End
Configuration Files
#
firewall defend ip-sweep enable
Huawei AR1200-S Series Enterprise Routers
Configuration Guide - Security
3 Firewall Configuration
Issue 02 (2012-03-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
88