diff --git a/lib/maat-tools-0.0.1-SNAPSHOT.jar b/lib/maat-tools-0.0.1-SNAPSHOT.jar deleted file mode 100644 index b0aa14dac..000000000 Binary files a/lib/maat-tools-0.0.1-SNAPSHOT.jar and /dev/null differ diff --git a/src/main/java/com/nis/web/dao/configuration/DdosCfgDao.xml b/src/main/java/com/nis/web/dao/configuration/DdosCfgDao.xml index ccaa2dc56..c2f3f9e56 100644 --- a/src/main/java/com/nis/web/dao/configuration/DdosCfgDao.xml +++ b/src/main/java/com/nis/web/dao/configuration/DdosCfgDao.xml @@ -37,6 +37,7 @@ + @@ -44,7 +45,7 @@ ,r.protocol,r.protocol_id,r.direction,r.cfg_type,r.action,r.dest_port,r.dest_ip_address ,r.is_valid,r.is_audit,r.creator_id,r.create_time,r.editor_id ,r.edit_time,r.auditor_id,r.audit_time,r.service_id,r.request_id, - r.compile_id,r.is_area_effective,r.classify,r.attribute,r.lable + r.compile_id,r.is_area_effective,r.classify,r.attribute,r.lable,r.do_log ,r.area_effective_ids,r.function_id,r.cfg_region_code,r.antiddos_protocol,r.bps_threadshold,r.pps_threadshold @@ -219,7 +220,8 @@ cfg_region_code, antiddos_protocol, bps_threadshold, - pps_threadshold + pps_threadshold, + do_log )values ( #{cfgDesc,jdbcType=VARCHAR}, #{action,jdbcType=INTEGER}, @@ -254,7 +256,8 @@ #{cfgRegionCode,jdbcType=INTEGER}, #{antiddosProtocol,jdbcType=VARCHAR}, #{bpsThreadshold,jdbcType=BIGINT}, - #{ppsThreadshold,jdbcType=BIGINT} + #{ppsThreadshold,jdbcType=BIGINT}, + #{doLog,jdbcType=INTEGER} ) @@ -348,6 +351,9 @@ cfg_region_code = #{cfgRegionCode,jdbcType=INTEGER}, + + + do_log = #{doLog,jdbcType=INTEGER}, antiddos_protocol = #{antiddosProtocol,jdbcType=VARCHAR}, bps_threadshold = #{bpsThreadshold,jdbcType=BIGINT}, diff --git a/src/main/resources/messages/message_en.properties b/src/main/resources/messages/message_en.properties index 4990fbd35..3ff6693d8 100644 --- a/src/main/resources/messages/message_en.properties +++ b/src/main/resources/messages/message_en.properties @@ -65,7 +65,7 @@ mail_keyword_control=Mail Keyword Block mail_attachment_name_control=Mail Attachment Name Block mail_attachment_content_control=Mail Attachment Content Block file_transfer_control=File Transfer -ftp_address_control=FTP Url Block +ftp_address_control=FTP URL Block ftp_name_control=FTP Filename Block ftp_content_control=FTP File Content Block http_app_feature=Application HTTP Feature @@ -1018,7 +1018,7 @@ domain_intercepter_ratelimit=Domain Intercept Rate Limit app_built_in_features_config=APP Built-in Features PXY_INTERCEPT_PKT_BIN=Packet Payload certificate=Certificate -do_log=Log Option +do_log=Unstructured Log Option file_strategy=File Strategy file_desc=File Desc content_type=Content Type diff --git a/src/main/resources/messages/message_zh_CN.properties b/src/main/resources/messages/message_zh_CN.properties index e198ffa23..dde2b4e0c 100644 --- a/src/main/resources/messages/message_zh_CN.properties +++ b/src/main/resources/messages/message_zh_CN.properties @@ -1017,7 +1017,7 @@ domain_intercepter_ratelimit=\u57DF\u540D\u62E6\u622A\u9650\u901F app_built_in_features_config=APP\u5185\u7F6E\u7279\u5F81\u7EF4\u62A4 PXY_INTERCEPT_PKT_BIN=\u5305\u8F7D\u8377 certificate=\u8BC1\u4E66 -do_log=\u662F\u5426\u8BB0\u5F55\u65E5\u5FD7 +do_log=\u8BB0\u5F55\u975E\u7ED3\u6784\u5316\u65E5\u5FD7 file_strategy=\u6587\u4EF6\u7B56\u7565 file_desc=\u6587\u4EF6\u63CF\u8FF0\t content_type=\u5185\u5BB9\u7C7B\u578B diff --git a/src/main/resources/sql/20181126/alter_ddos_ip_cfg_doLog.sql b/src/main/resources/sql/20181126/alter_ddos_ip_cfg_doLog.sql new file mode 100644 index 000000000..ac0e5dc51 --- /dev/null +++ b/src/main/resources/sql/20181126/alter_ddos_ip_cfg_doLog.sql @@ -0,0 +1 @@ +alter table ddos_ip_cfg add do_log int(11) COMMENT 'do_log:1记录所有日志2只记录结构化日志。默认是2' \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/include/form/areaInfo.jsp b/src/main/webapp/WEB-INF/include/form/areaInfo.jsp index eccf64e27..0d2d07450 100644 --- a/src/main/webapp/WEB-INF/include/form/areaInfo.jsp +++ b/src/main/webapp/WEB-INF/include/form/areaInfo.jsp @@ -23,12 +23,12 @@ var setSelectIndex = function(){
diff --git a/src/main/webapp/WEB-INF/views/cfg/ddosIpCfgForm.jsp b/src/main/webapp/WEB-INF/views/cfg/ddosIpCfgForm.jsp index f5d94ad19..40bd5fba2 100644 --- a/src/main/webapp/WEB-INF/views/cfg/ddosIpCfgForm.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/ddosIpCfgForm.jsp @@ -62,7 +62,6 @@ $(function(){ - @@ -118,7 +117,29 @@ $(function(){
- +
+
+
+
+ + + + + + + + + + + +
+
+
+

@@ -164,6 +185,9 @@ $(function(){ <%@include file="/WEB-INF/include/form/dDosIpInfo.jsp" %> +
+ <%@include file="/WEB-INF/include/form/areaInfo.jsp"%> +
<%@include file="/WEB-INF/include/form/basicInfo.jsp" %>
diff --git a/src/main/webapp/WEB-INF/views/cfg/ddosIpCfgList.jsp b/src/main/webapp/WEB-INF/views/cfg/ddosIpCfgList.jsp index 0e5058a2f..c87e49bc7 100644 --- a/src/main/webapp/WEB-INF/views/cfg/ddosIpCfgList.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/ddosIpCfgList.jsp @@ -323,6 +323,7 @@ + @@ -375,6 +376,13 @@ + + + + + + +