Configuring WIDS Attack Detection and Dynamic Blacklist
Context
To identify attacks on a WLAN in a timely manner, you can configure attack detection. Attack detection enables WLAN devices to detect attacks such as flood attacks, weak IV attacks, spoofing attacks, and brute force WPA-PSK/WPA2-PSK/WAPI-PSK/WEP-SK key cracking attacks, and to record information about the attacking devices. If the dynamic blacklist function is enabled, the WLAN devices automatically add the attacking devices to a dynamic blacklist and discard packets sent from the attacking devices.
Procedure
- Run system-view
The system view is displayed.
- Run wlan ac
The WLAN view is displayed.
- Enable attack detection on radios in an AP group
or on a specified AP radio.
You can enable attack detection in the AP group radio view or AP radio view. The configuration in the AP group radio view takes effect on all AP radios in an AP group and that in the AP radio view takes effect only on a specified AP radio. The configuration in the AP radio view has a higher priority than that in the AP group radio view.
- Enable attack detection on radios in an AP group.
- Run the ap-group name group-name command to enter the AP group view.
- Run the radio radio-id command to enter the radio view.
Run the wids attack detect enable { all | flood | weak-iv | spoof | wpa-psk | wpa2-psk | wapi-psk | wep-share-key } command to enable attack detection on radios in an AP group.
By default, attack detection is disabled on radios in an AP group.
Run the quit command to return to the AP group view.
- Enable attack detection on a specified AP radio.
- Run the ap-id ap-id, ap-mac ap-mac, or ap-name ap-name command to enter the AP view.
- Run the radio radio-id command to enter the radio view.
Run the wids attack detect enable { all | flood | weak-iv | spoof | wpa-psk | wpa2-psk | wapi-psk | wep-share-key } command to enable attack detection on a specified AP radio.
By default, attack detection is disabled on an AP radio.
Run the quit command to return to the AP view.
- Enable attack detection on radios in an AP group.
- Run quit
Return to the WLAN view.
- Run wids-profile name profile-name
The WIDS profile view is displayed.
- Configure parameters according to the attack detection
type set in 3.
Flood attack detection
Run the flood-detect interval interval command to set the flood attack detection interval.
By default, the flood attack detection interval is 60 seconds.
Run the flood-detect threshold threshold command to set the flood attack detection threshold.
By default, the flood attack detection threshold is 300 seconds.
Run the flood-detect quiet-time quiet-time-value command to set the quiet time for an AP to report the detected flood attacks to the AC.
By default, the quiet time is 600 seconds for an AP to report the detected flood attacks to the AC.
Weak IV attack detection
Run the weak-iv-detect quiet-time quiet-time-value command to set the quiet time for an AP to report the detected weak IV attacks to the AC.
By default, the quiet time is 600 seconds for an AP to report the detected weak IV attacks to the AC.
Spoofing attack detection
Run the spoof-detect quiet-time quiet-time-value command to set the quiet time for an AP to report the detected spoofing attacks to the AC.
By default, the quiet time is 600 seconds for an AP to report the detected spoofing attacks to the AC.
Detection of brute force key cracking attacks
Run the brute-force-detect interval interval command to set the interval for detecting brute force key cracking attacks.
By default, the interval for brute force key cracking detection is 60 seconds.
Run the brute-force-detect threshold threshold command to set the maximum number of key negotiation failures allowed within the period of the detection of brute force key cracking attacks.
By default, an AP allows a maximum of 20 key negotiation failures within a brute force key cracking attack detection period.
Run the brute-force-detect quiet-time quiet-time-value command to set the quiet time for an AP to report the detected brute force key cracking attacks to the AC.
By default, the quiet time for an AP to report brute force key attacks to an AC is 600 seconds.
- Run dynamic-blacklist enable
The dynamic blacklist function is enabled.
By default, the dynamic blacklist function is disabled.
The dynamic blacklist is saved on APs. After the dynamic blacklist function is enabled, the detected attacking devices are added to the dynamic blacklist. Within the aging time of the dynamic blacklist, the device discards packets sent from the blacklisted devices. You can run the dynamic-blacklist aging-time command to set the aging time of the dynamic blacklist.