into Release-1.2

Conflicts:
	src/main/resources/applicationConfig-rule.properties
This commit is contained in:
RenKaiGe-Office
2018-09-11 18:22:11 +08:00
6 changed files with 78 additions and 11 deletions

View File

@@ -139,6 +139,31 @@ public enum RestBusinessCode {
*/
OpTimeIsNull(4001019, "Maat配置的opTime不能为空"),
/**
* 编译配置的contType不能为空
*/
ContTypeIsNull(4001020, "Maat配置的contType不能为空"),
/**
* 编译配置的attrType不能为空
*/
AttrTypeIsNull(4001021, "Maat配置的attrType不能为空"),
/**
* 编译配置的taskId不能为空
*/
TaskIdIsNull(4001022, "Maat配置的taskId不能为空"),
/**
* 编译配置的contLabel不能为空
*/
ContLabelIsNull(4001023, "Maat配置的contLabel不能为空"),
/**
* 编译配置的affairId不能为空
*/
AffairIdIsNull(4001024, "Maat配置的affairId不能为空"),
//分组配置数据完整性业务码10100~
/**

View File

@@ -469,6 +469,28 @@ public class CompileVal {
throw new RestServiceException("编译配置id为" + compileId + "的编译配置中action不能为空",
RestBusinessCode.ActionIsNull.getValue());
}
if (StringUtil.isEmpty(configCompile.getContType())) {
throw new RestServiceException("编译配置id为" + compileId + "的编译配置中contType不能为空",
RestBusinessCode.ContTypeIsNull.getValue());
}
if (StringUtil.isEmpty(configCompile.getAttrType())) {
throw new RestServiceException("编译配置id为" + compileId + "的编译配置中attrType不能为空",
RestBusinessCode.AttrTypeIsNull.getValue());
}
if (StringUtil.isEmpty(configCompile.getTaskId())) {
throw new RestServiceException("编译配置id为" + compileId + "的编译配置中taskId不能为空",
RestBusinessCode.TaskIdIsNull.getValue());
}
if (StringUtil.isEmpty(configCompile.getContLabel())) {
throw new RestServiceException("编译配置id为" + compileId + "的编译配置中contLabel不能为空",
RestBusinessCode.ContLabelIsNull.getValue());
}
if (StringUtil.isEmpty(configCompile.getAffairId())) {
throw new RestServiceException("编译配置id为" + compileId + "的编译配置中affairId不能为空",
RestBusinessCode.AffairIdIsNull.getValue());
}
if (null == configCompile.getDoBlacklist()) {
throw new RestServiceException("编译配置id为" + compileId + "的编译配置中doBlacklist不能为空",
RestBusinessCode.DoBlacklistIsNull.getValue());

View File

@@ -66,7 +66,11 @@ 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;
#0x24 隧道行为阻断
36=10:APP_COMPILE;11:APP_GROUP;12:NTC_UNIVERSAL_IP;13:NTC_UNIVERSAL_PROTO_TYPE;14:APP_POLICY,APP_SUBSCRIBE_ID;18:NTC_IP_RANGE
#0x25 ASN IP阻断
<<<<<<< HEAD
37=10:NTC_COMPILE;11:NTC_GROUP;12:NTC_ASN_IP;18:NTC_IP_RANGE
=======
37=10:NTC_COMPILE;11:NTC_GROUP;12:NTC_ASN_IP;14:NTC_SUBSCRIBE_ID;18:NTC_IP_RANGE
>>>>>>> branch 'Release-1.2' of http://10.0.6.99/common/maat_service.git
#0x80 IP地址监测
128=10:NTC_COMPILE;11:NTC_GROUP;12:NTC_IP;14:NTC_SUBSCRIBE_ID;18:NTC_IP_RANGE
@@ -107,7 +111,11 @@ 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;
#0x94 隧道行为监测
148=10:APP_COMPILE;11:APP_GROUP;12:NTC_UNIVERSAL_IP;13:NTC_UNIVERSAL_PROTO_TYPE;14:APP_POLICY,APP_SUBSCRIBE_ID;18:NTC_IP_RANGE
#0x95 ASN IP监测
<<<<<<< HEAD
149=10:NTC_COMPILE;11:NTC_GROUP;12:NTC_ASN_IP;18:NTC_IP_RANGE
=======
149=10:NTC_COMPILE;11:NTC_GROUP;12:NTC_ASN_IP;14:NTC_SUBSCRIBE_ID;18:NTC_IP_RANGE
>>>>>>> branch 'Release-1.2' of http://10.0.6.99/common/maat_service.git
#0xA0 通联关系监测 monit 无配置
#0xA1 邮件泛收 monit 无配置
@@ -208,7 +216,7 @@ 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;
1152=10:APP_COMPILE;11:APP_GROUP;14:APP_TOPIC_DOMAIN,APP_SUBSCRIBE_ID;18:NTC_IP_RANGE
#格式业务类型1:动作;业务类型2:动作 用于验证回调类service与action对应关系
unMaatService=3:32;4:96;5:32;25:32;28:32;64;65;261:16;262:16;263:16;264:16;265:16;266:16;389:1;390:1;391:1;392:1;393:1;394:1;520;608;832;1025:1
unMaatService=3:32;4:96;5:32;25:32;28:32;64;65;261:16;262:16;263:16;264:16;265:16;266:16;268:16;269:16;270:16;389:1;390:1;391:1;392:1;393:1;394:1;396:1;397:1;398:1;520;608;832;1025:1
#0x03 IP地址丢弃
3=0:INLINE_IP_CB
#0x04 IP地址回流
@@ -239,6 +247,12 @@ unMaatService=3:32;4:96;5:32;25:32;28:32;64;65;261:16;262:16;263:16;264:16;265:1
265=0:MM_PORN_AUDIO_LEVEL
#0x10A 视频色情阻断
266=0:MM_PORN_VIDEO_LEVEL
#0x10C 说话人识别阻断
268=0:MM_SPEAKER_RECOGNIZATION
#0x10D 台标识别阻断
269=0:MM_LOGO_DETECTION
#0x10E 人脸识别阻断
270=0:MM_FACE_RECOGNIZATION
#0x185 音频样例监测
389=0:MM_SAMPLE_AUDIO
@@ -252,6 +266,12 @@ unMaatService=3:32;4:96;5:32;25:32;28:32;64;65;261:16;262:16;263:16;264:16;265:1
393=0:MM_PORN_AUDIO_LEVEL
#0x18A 视频色情监测
394=0:MM_PORN_VIDEO_LEVEL
#0x18C 说话人识别监测
396=0:MM_SPEAKER_RECOGNIZATION
#0x18D 台标识别监测
397=0:MM_LOGO_DETECTION
#0x18E 人脸识别监测
398=0:MM_FACE_RECOGNIZATION
#0x208 PXY 证书管理
520=0:PXY_OBJ_KEYRING
@@ -272,11 +292,7 @@ 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;
#0x23 基础协议阻断 35:2,5;
#0x24 隧道行为阻断 36:2,5;
#0x91 APP监测 145:2,5;
#0x93 基础协议监测 147:2,5;
#0x94 隧道行为监测 148:2,5;
#0x200 PXY拦截IP 512:4,5;
#0x201 PXY拦截域名 513:4,2,5;
#0x400 APP HTTP特征发现 1024:2,5;
@@ -284,8 +300,6 @@ unMaatService=3:32;4:96;5:32;25:32;28:32;64;65;261:16;262:16;263:16;264:16;265:1
#0x403 APP 字节特征 1027:2,5;
#0x404 APP IP特征 1028:2,5;
#0x410 APP丢弃 1040:2,5;
#0x411 基础协议丢弃 1041:2,5;
#0x412 隧道行为丢弃 1042:2,5;
#0x405 SSL证书特征 1029:2,5;
#0x406 TCP Session特征 1030:2,5;
#0x407 HeaderL2\L3)特征 1031:2,5;
@@ -297,7 +311,7 @@ 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,5;36:2,5;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,5;148:2,5;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,5;1042:2,5;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;389:3;390:3;391:3;392:3;393:3;394: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;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;
##maat配置入阀门需要将编译中的部分参数写到域配置中目前最多包含ACTIONSERVICEUSER_REGION三个属性

View File

@@ -38,8 +38,14 @@
#0x186 视频样例监测 390=0:MM_SAMPLE_VIDEO
#0x187 图片样例监测 391=0:MM_SAMPLE_PIC
#0x188 VOIP样例监测 392=0:MM_SAMPLE_VOIP
#0x10C 说话人识别阻断 268=0:MM_SPEAKER_RECOGNIZATION
#0x10D 台标识别阻断 269=0:MM_LOGO_DETECTION
#0x10E 人脸识别阻断 270=0:MM_FACE_RECOGNIZATION
#0x18C 说话人识别监测 296=0:MM_SPEAKER_RECOGNIZATION
#0x18D 台标识别监测 297=0:MM_LOGO_DETECTION
#0x18E 人脸识别监测 298=0:MM_FACE_RECOGNIZATION
-->
<t:commonSource serviceIds="261,262,263,264,389,390,391,392,1025">
<t:commonSource serviceIds="261,262,263,264,268,269,270,389,390,391,392,396,397,398,1025">
<t:field fieldType="String" srcName="service" dstName="service" isRequired="true"/>
<t:field fieldType="Number" srcName="action" dstName="action" isRequired="true"/>
<t:field fieldType="Number" srcName="cfgId" dstName="cfg_id" isRequired="true" isCfgId="true"/>

View File

@@ -136,7 +136,7 @@ redis.host=10.0.6.249
#redis.host=192.168.10.215
#亦庄演示环境
#redis.host=10.3.34.1
redis.port=6381
redis.port=6379
redis.pass=
redis.maxIdle=5
redis.maxTotal=250

View File

@@ -7,7 +7,7 @@
音频样例监测 389=0:MM_SAMPLE_AUDIO #0x186 视频样例监测 390=0:MM_SAMPLE_VIDEO #0x187 图片样例监测
391=0:MM_SAMPLE_PIC #0x188 VOIP样例监测 392=0:MM_SAMPLE_VOIP -->
<p:maatType service="261;262;263;264;389;390;391;392;1025">
<p:maatType service="261;262;263;264;268;269;270;389;390;391;392;396;397;398;1025">
<p:expressions>
<p:keyExpression>EFFECTIVE_RULE;:;{un_maat_table_name};,;[cfg_id]</p:keyExpression>
<!-- 最开始调整的这个,格式不是\t;[op_time];&amp;nbsp;0;\n,后面的要求都改成这个格式,前端不好该代码,所以这个与其他的有区别 -->