REM:
1. 更新集中抗D攻击类型和迪普设备攻击类型对应关系
This commit is contained in:
HuangXin 2020-09-23 14:13:10 +08:00
parent 7caeecaebe
commit 7754b775cd
1 changed files with 9 additions and 22 deletions

View File

@ -104,7 +104,7 @@ public enum DpTechAttackType implements BaseEnum {
public static Long formDdosAttackTypeMaks(Long ddosAttackMask) { public static Long formDdosAttackTypeMaks(Long ddosAttackMask) {
List<DpTechAttackType> dpTechAttackTypes = new ArrayList<>(); List<DpTechAttackType> dpTechAttackTypes = new ArrayList<>();
for(DDoSAttackType a : DDoSAttackType.maskToDdosAttackType(ddosAttackMask)) { for (DDoSAttackType a : DDoSAttackType.maskToDdosAttackType(ddosAttackMask)) {
dpTechAttackTypes.addAll(DpTechAttackType.fromDdosAttackTypeValue(a)); dpTechAttackTypes.addAll(DpTechAttackType.fromDdosAttackTypeValue(a));
} }
@ -140,36 +140,29 @@ public enum DpTechAttackType implements BaseEnum {
switch (type) { switch (type) {
case HOST_TOTAL_TRAFFIC: case HOST_TOTAL_TRAFFIC:
case WIN_NUKE:
case SIP_FLOOD:
case DNS_FLOOD:
case IPV4_PROTOCOL0:
case IP_PRIVATE:
case LAND_FLOOD:
case IGMP_FLOOD:
attackList.add(HOST_TOTAL_TRAFFIC); attackList.add(HOST_TOTAL_TRAFFIC);
break; break;
case RST_FLOOD: case RST_FLOOD:
case FIN_FLOOD:
case SIP_FLOOD:
attackList.add(TCP_FIN_FLOOD);
break;
case SYN_FLOOD: case SYN_FLOOD:
attackList.add(TCP_SYN_FLOOD);
break;
case ACK_FLOOD: case ACK_FLOOD:
attackList.add(TCP_ACK_FLOOD);
break;
case TCP_NULL: case TCP_NULL:
case SYN_ACK_AMPLIFICATION: case SYN_ACK_AMPLIFICATION:
case TCP_MISUSE: case TCP_MISUSE:
case FIN_FLOOD:
attackList.add(TCP_SYN_ACK_FLOOD); attackList.add(TCP_SYN_ACK_FLOOD);
break; break;
case TCP_FRAGMENT: case TCP_FRAGMENT:
case WIN_NUKE:
case UDP_FRAGMENT: case UDP_FRAGMENT:
case ICMP_FRAGMENT: case ICMP_FRAGMENT:
case IPV4_PROTOCOL0:
case IP_PRIVATE:
case LAND_FLOOD:
attackList.add(IP_FRAGMENT_FLOOD); attackList.add(IP_FRAGMENT_FLOOD);
break; break;
@ -178,11 +171,6 @@ public enum DpTechAttackType implements BaseEnum {
attackList.add(HTTP_FLOOD); attackList.add(HTTP_FLOOD);
break; break;
case DNS_FLOOD:
attackList.add(DNS_REPLY_FLOOD);
attackList.add(DNS_QUERY_FLOOD);
break;
case CHARGED_AMPLIFICATION: case CHARGED_AMPLIFICATION:
case L2TP_AMPLIFICATION: case L2TP_AMPLIFICATION:
case MDNS_AMPLIFICATION: case MDNS_AMPLIFICATION:
@ -204,7 +192,6 @@ public enum DpTechAttackType implements BaseEnum {
case SENTINEL_AMPLIFICATION: case SENTINEL_AMPLIFICATION:
case FRAGGLE_FLOOD: case FRAGGLE_FLOOD:
case UDP_FLOOD: case UDP_FLOOD:
case IGMP_FLOOD:
attackList.add(UDP_FLOOD); attackList.add(UDP_FLOOD);
break; break;