diff --git a/src/main/java/com/nis/domain/LogEntity.java b/src/main/java/com/nis/domain/LogEntity.java index ccde226..ba8899a 100644 --- a/src/main/java/com/nis/domain/LogEntity.java +++ b/src/main/java/com/nis/domain/LogEntity.java @@ -73,12 +73,18 @@ public abstract class LogEntity implements Serializable { @ApiModelProperty(value = "嵌套地址列表", required = true) protected String addrList; @ApiModelProperty(value = "用户自定义域", required = true) - private String userRegion; + protected String userRegion; @ApiModelProperty(value = "服务端地址定位信息", required = true) protected String serverLocate; @ApiModelProperty(value = "客户端地址定位信息", required = true) - private String clientLocate; - + protected String clientLocate; + @ApiModelProperty(value = "客户端ASN", required = true) + protected String sAsn; + @ApiModelProperty(value = "服务端ASN", required = true) + protected String dAsn; + @ApiModelProperty(value = "用户名", required = true) + protected String subscribeId; + protected String searchCfgId;//配置id protected String searchTransProto;//协议类型 protected String searchDIp;//服务端ip地址 @@ -451,5 +457,40 @@ public abstract class LogEntity implements Serializable { public void setClientLocate(String clientLocate) { this.clientLocate = clientLocate; } - + /** + * @param sAsn the sAsn to set + */ + public void setsAsn(String sAsn) { + this.sAsn = sAsn; + } + /** + * @return the sAsn + */ + public String getsAsn() { + return sAsn; + } + /** + * @param dAsn the dAsn to set + */ + public void setdAsn(String dAsn) { + this.dAsn = dAsn; + } + /** + * @return the dAsn + */ + public String getdAsn() { + return dAsn; + } + /** + * @param subscribeId the subscribeId to set + */ + public void setSubscribeId(String subscribeId) { + this.subscribeId = subscribeId; + } + /** + * @return the subscribeId + */ + public String getSubscribeId() { + return subscribeId; + } } diff --git a/src/main/java/com/nis/domain/restful/NtcHttpLog.java b/src/main/java/com/nis/domain/restful/NtcHttpLog.java index ed6c08f..db3517a 100644 --- a/src/main/java/com/nis/domain/restful/NtcHttpLog.java +++ b/src/main/java/com/nis/domain/restful/NtcHttpLog.java @@ -24,7 +24,9 @@ public class NtcHttpLog extends LogEntity { @ApiModelProperty(value="应答体转储文件", required=true) protected String resBodyFile; - + + @ApiModelProperty(value="网站域名", required=true) + protected String website; public String getUrl() { return url; @@ -66,4 +68,17 @@ public class NtcHttpLog extends LogEntity { this.resBodyFile = resBodyFile; } + /** + * @param website the website to set + */ + public void setWebsite(String website) { + this.website = website; + } + + /** + * @return the website + */ + public String getWebsite() { + return website; + } } diff --git a/src/main/java/com/nis/web/dao/DfLogSearchDao.xml b/src/main/java/com/nis/web/dao/DfLogSearchDao.xml index 8e8e91f..b8b2e45 100644 --- a/src/main/java/com/nis/web/dao/DfLogSearchDao.xml +++ b/src/main/java/com/nis/web/dao/DfLogSearchDao.xml @@ -41,6 +41,9 @@ + + + @@ -63,12 +66,16 @@ + + + + @@ -91,6 +98,9 @@ + + + @@ -127,6 +137,9 @@ + + + @@ -157,6 +170,9 @@ + + + @@ -186,6 +202,9 @@ + + + @@ -213,6 +232,9 @@ + + + @@ -239,6 +261,9 @@ + + + @@ -267,6 +292,9 @@ + + + @@ -293,6 +321,9 @@ + + + @@ -322,6 +353,9 @@ + + + @@ -347,6 +381,9 @@ + + + @@ -369,6 +406,9 @@ + + + @@ -399,6 +439,9 @@ + + + @@ -426,6 +469,9 @@ + + + @@ -455,6 +501,9 @@ + + + @@ -484,6 +533,9 @@ + + + @@ -513,6 +565,9 @@ + + + @@ -543,6 +598,9 @@ + + + @@ -579,6 +637,9 @@ + + + @@ -616,6 +677,9 @@ + + + @@ -646,6 +710,9 @@ + + + @@ -675,6 +742,9 @@ + + + @@ -704,6 +774,9 @@ + + + @@ -733,6 +806,9 @@ + + + @@ -763,6 +839,9 @@ + + + @@ -799,6 +878,9 @@ + + + @@ -834,5 +916,8 @@ + + + \ No newline at end of file diff --git a/src/main/resources/applicationConfig-rule.properties b/src/main/resources/applicationConfig-rule.properties index 9af2180..4c891c3 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;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;256:16;257:16;258:16;259:16;260:16;384:1;385:1;386:1;387:1;388:1;512:1;513:1;521:128;528:48;544:2;560:80;576:16;592:1;750:128;768:96;1024:1;1026:1;1027:1;1028:1;1040:32;1056:64;1057:64;1058:64; +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;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;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;521:128;528:48;544:2;560:80;576:16;592:1;750:128;768:96;1024:1;1026:1;1027:1;1028:1;1040:32;1056:64;1057:64;1058:64; #0x1E 0x8E 有问题:14:NTC_XMPP_REGION,NTC_XMPP_CONT 无表结构 不确定表是不是字符串类 @@ -110,8 +110,10 @@ 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; 258=10:MM_COMPILE;11:MM_GROUP;12:MM_PIC_IP;18:NTC_IP_RANGE #0x103 基于图片传输的URL阻断 259=10:MM_COMPILE;11:MM_GROUP;14:MM_PIC_URL;18:NTC_IP_RANGE -#0x104 基于VOIP阻断 -260=10:MM_COMPILE;11:MM_GROUP;12:MM_VOIP_IP;14:MM_VOIP_ACCOUNT;18:NTC_IP_RANGE +#0x104 基于VOIP-IP阻断 +260=10:MM_COMPILE;11:MM_GROUP;12:MM_VOIP_IP;18:NTC_IP_RANGE +#0x10B 基于VOIP-ACCOUNT阻断 +267=10:MM_COMPILE;11:MM_GROUP;14:MM_VOIP_ACCOUNT;18:NTC_IP_RANGE #0x180 基于音视频传输的IP PORT监测 384=10:MM_COMPILE;11:MM_GROUP;12:MM_AV_IP;18:NTC_IP_RANGE @@ -121,8 +123,10 @@ 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; 386=10:MM_COMPILE;11:MM_GROUP;12:MM_PIC_IP;18:NTC_IP_RANGE #0x183 基于图片传输的URL监测 387=10:MM_COMPILE;11:MM_GROUP;14:MM_PIC_URL;18:NTC_IP_RANGE -#0x184 基于VOIP监测 -388=10:MM_COMPILE;11:MM_GROUP;12:MM_VOIP_IP;14:MM_VOIP_ACCOUNT;18:NTC_IP_RANGE +#0x184 基于VOIP-IP监测 +388=10:MM_COMPILE;11:MM_GROUP;12:MM_VOIP_IP;18:NTC_IP_RANGE +#0x18B 基于VOIP-ACCOUNT监测 +395=10:MM_COMPILE;11:MM_GROUP;14:MM_VOIP_ACCOUNT;18:NTC_IP_RANGE #0x200 PXY拦截IP 512=10:PXY_INTERCEPT_COMPILE;11:PXY_INTERCEPT_GROUP;12:PXY_INTERCEPT_IP;18:NTC_IP_RANGE @@ -241,7 +245,7 @@ unMaatService=3:32;4:96;5:32;25:32;28:32;64:16;65:16;261:16;262:16;263:16;264:16 #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;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,7;256:3;257:3;258:3;259:3;260:3;384:3;385:3;386:3;387:3;388:3;512:4,7;513:4,2,7;521:4;528:4;544:4;560:4;576:4;592:4;750:4;768:5;1024:2,6,7;1026:2,6,7;1027:2;1028:2,6,7;1040:2,6,7;1056:2,6,7;1057:6,7;1058:6,2,7;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:3;390:3;391:3;392:3;393:3;394:3;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;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,7;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;521:4;528:4;544:4;560:4;576:4;592:4;750:4;768:5;1024:2,6,7;1026:2,6,7;1027:2;1028:2,6,7;1040:2,6,7;1056:2,6,7;1057:6,7;1058:6,2,7;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:3;390:3;391:3;392:3;393:3;394:3;832:2,4,5,7 ##maat配置入阀门需要将编译中的部分参数写到域配置中,目前最多包含ACTION,SERVICE,USER_REGION三个属性 diff --git a/src/main/resources/maatXml/applicationConfig-maatRedis.xml b/src/main/resources/maatXml/applicationConfig-maatRedis.xml index 425e4ee..15cd348 100644 --- a/src/main/resources/maatXml/applicationConfig-maatRedis.xml +++ b/src/main/resources/maatXml/applicationConfig-maatRedis.xml @@ -138,7 +138,7 @@ + service="1;2;16;17;18;19;20;21;22;23;24;26;27;30;31;32;33;34;128;129;130;131;132;133;134;135;136;137;138;139;140;141;142;143;144;145;256;257;258;259;260;267;384;385;386;387;388;395;512;513;521;528;544;560;576;592;750;768;848;1024;1025;1026;1027;1028;1040;1056;1057;1058"> EFFECTIVE_RULE;:;{compile_table_name};,;[compile_id] [compile_id];\t;[service];\t;[action];\t;[do_blacklist];\t;[do_log];\t;[effective_range];\t;[user_region];\t;[is_valid];\t;[group_num];\t;[father_cfg_id];\t;[op_time]; 0;\n