diff --git a/src/main/java/com/nis/domain/restful/NtcAppLog.java b/src/main/java/com/nis/domain/restful/NtcAppLog.java index 6b454e6..8b25735 100644 --- a/src/main/java/com/nis/domain/restful/NtcAppLog.java +++ b/src/main/java/com/nis/domain/restful/NtcAppLog.java @@ -1,6 +1,7 @@ package com.nis.domain.restful; import com.nis.domain.LogEntity; +import com.wordnik.swagger.annotations.ApiModelProperty; /** * @ClassName:NtcAppLog @@ -10,6 +11,64 @@ import com.nis.domain.LogEntity; * @version V1.0 */ public class NtcAppLog extends LogEntity { - + private static final long serialVersionUID = -1186780816038898916L; + + @ApiModelProperty(value = "协议类型ID", required = true) + private Integer labelProtoId; + @ApiModelProperty(value = "协议类型来源", required = true) + private Integer labelProtoSource; + @ApiModelProperty(value = "行为ID", required = true) + private Integer labelBehavId; + @ApiModelProperty(value = "行为来源", required = true) + private Integer labelBehavSource; + @ApiModelProperty(value = "应用ID", required = true) + private Integer labelAppId; + @ApiModelProperty(value = "应用来源", required = true) + private Integer labelAppSource; + + public Integer getLabelProtoId() { + return labelProtoId; + } + public void setLabelProtoId(Integer labelProtoId) { + this.labelProtoId = labelProtoId; + } + public Integer getLabelProtoSource() { + return labelProtoSource; + } + public void setLabelProtoSource(Integer labelProtoSource) { + this.labelProtoSource = labelProtoSource; + } + + public Integer getLabelBehavId() { + return labelBehavId; + } + + public void setLabelBehavId(Integer labelBehavId) { + this.labelBehavId = labelBehavId; + } + + public Integer getLabelBehavSource() { + return labelBehavSource; + } + + public void setLabelBehavSource(Integer labelBehavSource) { + this.labelBehavSource = labelBehavSource; + } + + public Integer getLabelAppId() { + return labelAppId; + } + + public void setLabelAppId(Integer labelAppId) { + this.labelAppId = labelAppId; + } + + public Integer getLabelAppSource() { + return labelAppSource; + } + + public void setLabelAppSource(Integer labelAppSource) { + this.labelAppSource = labelAppSource; + } } diff --git a/src/main/java/com/nis/domain/restful/NtcP2pLog.java b/src/main/java/com/nis/domain/restful/NtcP2pLog.java index ff1e5eb..8583efc 100644 --- a/src/main/java/com/nis/domain/restful/NtcP2pLog.java +++ b/src/main/java/com/nis/domain/restful/NtcP2pLog.java @@ -1,6 +1,7 @@ package com.nis.domain.restful; import com.nis.domain.LogEntity; +import com.wordnik.swagger.annotations.ApiModelProperty; /** * @@ -14,4 +15,47 @@ public class NtcP2pLog extends LogEntity { private static final long serialVersionUID = -8085222950278735219L; + @ApiModelProperty(value = "P2P协议", required = true) + private String p2pProto; + @ApiModelProperty(value = "文件标识", required = true) + private String p2pFileId; + @ApiModelProperty(value = "Emule搜索关键词", required = true) + private String p2pKeyword; + + /** + * @return the p2pProto + */ + public String getP2pProto() { + return p2pProto; + } + /** + * @param p2pProto the p2pProto to set + */ + public void setP2pProto(String p2pProto) { + this.p2pProto = p2pProto; + } + /** + * @return the p2pFileId + */ + public String getP2pFileId() { + return p2pFileId; + } + /** + * @param p2pFileId the p2pFileId to set + */ + public void setP2pFileId(String p2pFileId) { + this.p2pFileId = p2pFileId; + } + /** + * @return the p2pKeyword + */ + public String getP2pKeyword() { + return p2pKeyword; + } + /** + * @param p2pKeyword the p2pKeyword to set + */ + public void setP2pKeyword(String p2pKeyword) { + this.p2pKeyword = p2pKeyword; + } } diff --git a/src/main/java/com/nis/web/dao/DfLogSearchDao.xml b/src/main/java/com/nis/web/dao/DfLogSearchDao.xml index ed3472d..a91c7cf 100644 --- a/src/main/java/com/nis/web/dao/DfLogSearchDao.xml +++ b/src/main/java/com/nis/web/dao/DfLogSearchDao.xml @@ -414,6 +414,13 @@ + + + + + + + @@ -985,6 +992,10 @@ + + + + diff --git a/src/main/resources/applicationConfig-rule.properties b/src/main/resources/applicationConfig-rule.properties index d40408f..50eb242 100644 --- a/src/main/resources/applicationConfig-rule.properties +++ b/src/main/resources/applicationConfig-rule.properties @@ -20,7 +20,7 @@ ##回流 0x60 96 loop ##白名单 0x80 128 whitelist -service=1:128;2:128;16:16;17:16;18:16;19:16;20:16;21:16;22:16;23:16;24:16;26:16;27:16;30:16;31:16;32:16;33:16;34:16;35:16;36:16;37:16;128:1;129:1;130:1;131:1;132:1;133:1;134:1;135:1;136:1;137:1;138:1;139:1;140:1;141:1;142:1;143:1;144:1;145:1;147:1;148:1;149:1;256:16;257:16;258:16;259:16;260:16;267:16;384:1;385:1;386:1;387:1;388:1;395:1;512:1;513:1;514:64;515:64;517:80;521:128;528:48;544:2;560:80;576:16;592:1;750:128;768:96;1024:1;1026:1;1027:1;1028:1;1029:1;1030:1;1031:1;1040:32;1041:32;1042:32;1056:64;1057:64;1058:64;1059:64;1060:64;1152:1 +service=1:128;2:128;16:16;17:16;18:16;19:16;20:16;21:16;22:16;23:16;24:16;26:16;27:16;30:16;31:16;32:16;33:16;34:16;35:16;36:16;37:16;128:1;129:1;130:1;131:1;132:1;133:1;134:1;135:1;136:1;137:1;138:1;139:1;140:1;141:1;142:1;143:1;144:1;145:1;146:1;147:1;148:1;149:1;256:16;257:16;258:16;259:16;260:16;267:16;384:1;385:1;386:1;387:1;388:1;395:1;512:1;513:1;514:64;515:64;517:80;521:128;528:48;544:2;560:80;576:16;592:1;750:128;768:96;1024:1;1026:1;1027:1;1028:1;1029:1;1030:1;1031:1;1040:32;1041:32;1042:32;1056:64;1057:64;1058:64;1059:64;1060:64;1152:1 #0x1E 0x8E 有问题:14:NTC_XMPP_REGION,NTC_XMPP_CONT 无表结构 不确定表是不是字符串类 @@ -279,7 +279,9 @@ unMaatService=3:32;4:96;5:32;25:32;28:32;64;65;261:16;262:16;263:16;264:16;265:1 #0x401 APP内置规则表(文件类) 1025=0:APP_DPKT_FEATURE + ##各业务类型对应的redisdb,业务类型:redisdb,多个业务以“;”分隔,多个db以“,”数量不能超过6个 +##################合并库之后 #系统简称对应的redisDBIndex: NTC+MM:2 MM样例:3 PXY(512-767):4 阀门:5 #APP 0x400-0x420 目前配置入到NTC系统对应的库中 ########## 配置分发 @@ -287,7 +289,6 @@ unMaatService=3:32;4:96;5:32;25:32;28:32;64;65;261:16;262:16;263:16;264:16;265:1 #0x01 全局IP白名单 1:2,3,4,5; #0x02 全局域名白名单 2:2,3,4,5; #0x21 APP阻断 33:2,5; -#0x91 APP监测 145:2,5; #0x200 PXY拦截IP 512:4,5; #0x201 PXY拦截域名 513:4,2,5; #0x400 APP HTTP特征发现 1024:2,5; @@ -306,8 +307,42 @@ unMaatService=3:32;4:96;5:32;25:32;28:32;64;65;261:16;262:16;263:16;264:16;265:1 #0x19 IPSec丢弃 25:5; #0x340 IP复用地址池配置(回调)832:2,4,5 ########## -serviceDBIndex=1:2,3,4,5;2:2,3,4,5;16:2;17:2;18:2;19:2;20:2;21:2;22:2;23:2;24:2;26:2;27:2;30:2;31:2;32:2;33:2,5;34:2;35:2;36:2;37:2;128:2;129:2;130:2;131:2;132:2;133:2;134:2;135:2;136:2;137:2;138:2;139:2;140:2;141:2;142:2;143:2;144:2;145:2,5;147:2;148:2;149:2;256:2;257:2;258:2;259:2;260:2;267:2;384:2;385:2;386:2;387:2;388:2;395:2;512:4,5;513:4,2,5;514:4;515:4;517:4;520:4;521:4;528:4;544:4;560:4;576:4;592:4;608:4;750:4;768:4;1024:2,5;1025:2;1026:2,5;1027:2,5;1028:2,5;1029:2,5;1030:2,5;1031:2,5;1040:2,5;1041:2;1042:2;1152:2;3:5;4:5;5:2;25:5;28:5;64:2;65:2;261:3;262:3;263:3;264:3;265:2;266:2;268:3;269:3;270:3;389:3;390:3;391:3;392:3;393:2;394:2;396:3;397:3;398:3;832:2,4,7; +serviceDBIndex=1:2,3,4,5;2:2,3,4,5;16:2;17:2;18:2;19:2;20:2;21:2;22:2;23:2;24:2;26:2;27:2;30:2;31:2;32:2;33:2,5;34:2;35:2;36:2;37:2;128:2;129:2;130:2;131:2;132:2;133:2;134:2;135:2;136:2;137:2;138:2;139:2;140:2;141:2;142:2;143:2;144:2;145:2,5;146:2;147:2;148:2;149:2;256:2;257:2;258:2;259:2;260:2;267:2;384:2;385:2;386:2;387:2;388:2;395:2;512:4,5;513:4,2,5;514:4;515:4;517:4;520:4;521:4;528:4;544:4;560:4;576:4;592:4;608:4;750:4;768:4;1024:2,5;1025:2;1026:2,5;1027:2,5;1028:2,5;1029:2,5;1030:2,5;1031:2,5;1040:2,5;1041:2;1042:2;1152:2;3:5;4:5;5:2;25:5;28:5;64:2;65:2;261:3;262:3;263:3;264:3;265:2;266:2;268:3;269:3;270:3;389:3;390:3;391:3;392:3;393:2;394:2;396:3;397:3;398:3;832:2,4,7; +##########合库之前 +#系统简称对应的redisDBIndex: NTC(1255):2 MM(256511):3 PXY(512767):4 IR(7681023):5 DK(10241279):6 阀门:7 +########## 配置分发 +##MAAT配置 +#0x01 全局IP白名单 1:2,3,4,6,7; +#0x02 全局域名白名单 2:2,3,4,6,7; +#0x21 APP阻断 33:2,6,7; +#0x23 基础协议阻断 35:2,6; +#0x24 隧道行为阻断 36:2,6; +#0x91 APP监测 145:2,6; +#0x93 基础协议监测 147:2,6; +#0x94 隧道行为监测 148:2,6; +#0x200 PXY拦截IP 512:4,7; +#0x201 PXY拦截域名 513:4,2,7; +#0x400 APP HTTP特征发现 1024:2,6,7; +#0x402 APP DOMAIN特征发现 1026:2,6,7; +#0x403 APP 字节特征 1027:2,6,7; +#0x404 APP IP特征 1028:2,6,7; +#0x405 SSL证书特征 1029:2,6,7; +#0x406 TCP Session特征 1030:2,6,7; +#0x407 Header(L2\L3)特征 1031:2,6,7; +#0x410 APP丢弃 1040:2,6,7; +#0x411 基础协议丢弃 1041:2,6; +#0x412 隧道行为丢弃 1042:2,6; +#0x480 APP 主题网站配置 1152:2,6 +##回调类配置 +#0x03 IP地址丢弃 3:7; +#0x04 IP地址回流 4:7; +#0x1C GRE 丢弃 28:7; +#0x19 IPSec丢弃 25:7; +#0x340 IP复用地址池配置(回调)832:2,4,5,7 + +#serviceDBIndex=1:2,3,4,6,7;2:2,3,4,6,7;16:2;17:2;18:2;19:2;20:2;21:2;22:2;23:2;24:2;26:2;27:2;30:2;31:2;32:2;33:2,6,7;34:2;35:2,6;36:2,6;37:2;128:2;129:2;130:2;131:2;132:2;133:2;134:2;135:2;136:2;137:2;138:2;139:2;140:2;141:2;142:2;143:2;144:2;145:2,6;146:2;147:2,6;148:2,6;149:2;256:3;257:3;258:3;259:3;260:3;267:3;384:3;385:3;386:3;387:3;388:3;395:3;512:4,7;513:4,2,7;514:4;515:4;517:4;520:4;521:4;528:4;544:4;560:4;576:4;592:4;608:4;750:4;768:5;1024:2,6,7;1025:2;1026:2,6,7;1027:2,6,7;1028:2,6,7;1029:2,6,7;1030:2,6,7;1031:2,6,7;1040:2,6,7;1041:2,6,7;1042:2,6,7;1152:2,6;3:7;4:7;5:2;25:7;28:7;64:2;65:2;261:8;262:9;263:10;264:11;265:3;266:3;389:8;390:9;391:10;392:11;393:3;394:3;832:2,4,5,7; +############################################################## ##maat配置入阀门需要将编译中的部分参数写到域配置中,目前最多包含ACTION,SERVICE,USER_REGION三个属性 ##业务ID:域类型1|域类型2@属性1&属性2&属性3 @@ -328,8 +363,6 @@ serviceDBIndex=1:2,3,4,5;2:2,3,4,5;16:2;17:2;18:2;19:2;20:2;21:2;22:2;23:2;24:2; maat2Valve=33:strRegion@ACTION&SERVICE&USER_REGION;35:strRegion@ACTION&SERVICE&USER_REGION;36:strRegion@ACTION&SERVICE&USER_REGION;145:strRegion@ACTION&SERVICE&USER_REGION;147:strRegion@ACTION&SERVICE&USER_REGION;148:strRegion@ACTION&SERVICE&USER_REGION;512:ipRegion@ACTION&SERVICE;513:strRegion@ACTION&SERVICE&USER_REGION;1024:strRegion|strStrRegion@USER_REGION;1026:strRegion|strStrRegion@USER_REGION;1027:strRegion|strStrRegion@USER_REGION;1028:ipRegion@USER_REGION;1029:strStrRegion@USER_REGION;1030:numRegion@USER_REGION;1031:strStrRegion@USER_REGION;1040:strRegion@ACTION&SERVICE&USER_REGION;1041:strRegion@ACTION&SERVICE&USER_REGION;1042:strRegion@ACTION&SERVICE&USER_REGION;1056:strRegion@ACTION&SERVICE&USER_REGION;1057:ipRegion@ACTION&SERVICE&USER_REGION;1058:strRegion@ACTION&SERVICE&USER_REGION;1059:strRegion@ACTION&SERVICE&USER_REGION;1060:strRegion@ACTION&SERVICE&USER_REGION - - ##记录哪些service可以被分组复用(只有maat类配置可以被分组复用) #业务ID:域类型1@表名,表名|域类型2@表名;业务ID:域类型1@表名,表名|域类型2@表名 ##域类型:IP域 =ipRegion 字符串域=strRegion 数值域=numRegion