From 3aa398811af654e2f5789e52e94cb36d2c1ef7c7 Mon Sep 17 00:00:00 2001 From: duandongmei Date: Mon, 15 Oct 2018 19:12:10 +0800 Subject: [PATCH 1/3] =?UTF-8?q?intercept=20domain=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=8B=A6=E6=88=AA=E5=BC=BA=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/nis/util/Constants.java | 5 ++++ .../resources/messages/message_en.properties | 13 +++++++++- .../resources/messages/message_ru.properties | 24 +++++++++++++++++-- .../messages/message_zh_CN.properties | 14 ++++++++++- src/main/resources/nis.properties | 12 ++++++---- .../20181012/update_stream_region.sql | 0 6 files changed, 59 insertions(+), 9 deletions(-) rename src/main/resources/sql/{ => 20181015}/20181012/update_stream_region.sql (100%) diff --git a/src/main/java/com/nis/util/Constants.java b/src/main/java/com/nis/util/Constants.java index 1a1d4b268..2f99eb3e0 100644 --- a/src/main/java/com/nis/util/Constants.java +++ b/src/main/java/com/nis/util/Constants.java @@ -7,6 +7,10 @@ import java.util.Map; import com.google.gson.GsonBuilder; public final class Constants { + /** + * IPSEC协议 + */ + public static Integer IPSEC_PROTOCOL=Configurations.getIntProperty("ipsec_protocol", 8); public static final String GROUP_REUSE_SOURCES=Configurations.getStringProperty("groupReuseSources","groupReuseSources"); public static Integer APP_SPEC_SERVICE_CODE_MIN_VAL=Configurations.getIntProperty("app_spec_service_code_min_val", 300001); public static Integer APP_SPEC_SERVICE_CODE_MAX_VAL=Configurations.getIntProperty("app_spec_service_code_max_val", 268435455); @@ -656,6 +660,7 @@ public final class Constants { public static String INTERCEPT_IP_MONIT_USER_REGION_KEY=Configurations.getStringProperty("keyring_id", "keyring_id"); public static String INTERCEPT_IP_RATELIMIT_DROPRATE_USER_REGION_KEY=Configurations.getStringProperty("Droprate", "Droprate"); public static String INTERCEPT_IP_RATELIMIT_BANDWITH_USER_REGION_KEY=Configurations.getStringProperty("Bandwidth", "Bandwidth"); + public static String INTERCEPT_DOMAN_INTENSITY_USER_REGION_KEY=Configurations.getStringProperty("intercept_domain_intensity", "DOMAIN_INTENSITY"); //大屏统计分析查询接口URL public static final String DASHBOARD_URL = Configurations.getStringProperty("dashboardUrl","dashboardUrl"); diff --git a/src/main/resources/messages/message_en.properties b/src/main/resources/messages/message_en.properties index 8a18b0823..d6300ead7 100644 --- a/src/main/resources/messages/message_en.properties +++ b/src/main/resources/messages/message_en.properties @@ -1237,4 +1237,15 @@ log_user=Operating User log_submission=Submission log_ip=Operator IP log_exception_info=Exception Information -system_log=Log Management \ No newline at end of file +system_log=Log Management +protected_ddos=Protected DDOS +usual_ddos=Usual DDOS +mail_address=Mail Address +mail_address_whitelist=Mail Address Whitelist +mail_address_monit=Mail Address Monit +mail_address_reject=Mail Address Reject +ipsec_protocol=IPSEC Protocol +intercept_intensity=Intercept Intensity +weak_intensity=Weak +stronger_intensity=Strong +strong_intensity=Stronger \ No newline at end of file diff --git a/src/main/resources/messages/message_ru.properties b/src/main/resources/messages/message_ru.properties index 869b28bdb..eb41e619d 100644 --- a/src/main/resources/messages/message_ru.properties +++ b/src/main/resources/messages/message_ru.properties @@ -1216,7 +1216,7 @@ protocol_identify=Protocol Identify NTC_ASN_IP=ASN MM_FILE_DIGEST=\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0414\u0430\u0439\u0434\u0436\u0435\u0441\u0442\u0430 \u0424\u0430\u0439\u043b\u043e\u0432 NTC_STREAMING_MEDIA_URL=Streaming Media URL -NTC_VOIP_ACCOUNT=VoIP \u0410\u043A\u043A\u0430\u0443\u043D\u0442 +NTC_VOIP_ACCOUNT=VoIP \u0410\u043a\u043a\u0430\u0443\u043d\u0442 export_failed=Export Failed user_manage=Client Account Manage ip_reuse_policy_object=IP Reuse Policy Object @@ -1248,4 +1248,24 @@ traffic_ipactive_hour_max=Active IPTOP10 Maximum In Nearly One Hour ip_addr=IP area_id=Area link_num=Link Number -stat_time=Statistical Time +stat_time=Statistical Time +log_menu=Operation Menu +log_management=Log Management +log_date=Date Range +log_exception=Query Exception +log_user=Operating User +log_submission=Submission +log_ip=Operator IP +log_exception_info=Exception Information +system_log=Log Management +protected_ddos=Protected DDOS +usual_ddos=Usual DDOS +mail_address=Mail Address +mail_address_whitelist=Mail Address Whitelist +mail_address_monit=Mail Address Monit +mail_address_reject=Mail Address Reject +ipsec_protocol=IPSEC Protocol +intercept_intensity=Intercept Intensity +weak_intensity=Weak +stronger_intensity=Strong +strong_intensity=Stronger \ No newline at end of file diff --git a/src/main/resources/messages/message_zh_CN.properties b/src/main/resources/messages/message_zh_CN.properties index 736077094..44861e3c5 100644 --- a/src/main/resources/messages/message_zh_CN.properties +++ b/src/main/resources/messages/message_zh_CN.properties @@ -1230,4 +1230,16 @@ log_exception=\u53EA\u67E5\u8BE2\u5F02\u5E38\u4FE1\u606F log_user=\u64CD\u4F5C\u7528\u6237 log_submission=\u63D0\u4EA4\u65B9\u5F0F log_ip=\u64CD\u4F5C\u8005IP -log_exception_info=\u5F02\u5E38\u4FE1\u606F \ No newline at end of file +log_exception_info=\u5F02\u5E38\u4FE1\u606F +system_log=\u65E5\u5FD7\u7BA1\u7406 +protected_ddos=\u4FDD\u62A4DDOS\u653B\u51FB +usual_ddos=\u5E38\u7528DDOS\u653B\u51FB +mail_address=\u90AE\u4EF6\u5730\u5740 +mail_address_whitelist=\u90AE\u4EF6\u5730\u5740\u767D\u540D\u5355 +mail_address_monit=\u90AE\u4EF6\u5730\u5740\u76D1\u6D4B +mail_address_reject=\u90AE\u4EF6\u5730\u5740\u7BA1\u63A7 +ipsec_protocol=IPSEC\u534F\u8BAE +intercept_intensity=\u62E6\u622A\u5F3A\u5EA6 +weak_intensity=\u5F31 +stronger_intensity=\u5F3A +strong_intensity=\u8F83\u5F3A \ No newline at end of file diff --git a/src/main/resources/nis.properties b/src/main/resources/nis.properties index e53b79b14..637f0059d 100644 --- a/src/main/resources/nis.properties +++ b/src/main/resources/nis.properties @@ -219,14 +219,14 @@ clusterBStartTime=1503504000725 isCommit=true ############################################################################################################################################ ############################################################################################################################################ -httpUrl=http://192.168.10.204:7777/galaxy-service/service/cfg/v1/ +httpUrl=http://192.168.10.204:9999/galaxy-service/service/cfg/v1/ maatCfg=configSources fileUploadCfg=fileUploadSources callbackCfg=commonSources fileDigestCfg=fileDigestSources configIdSources=configPzIdSources #logBaseUrl=http://10.0.6.242:8080/galaxy-service/service/log/v1/ -logBaseUrl=http://192.168.10.204:7777/galaxy-service/service/log/v1/ +logBaseUrl=http://192.168.10.204:9999/galaxy-service/service/log/v1/ ntcPzReport=ntcPzReport ntcServiceReport=ntcServiceReport ntcTagReport=ntcTagReport @@ -270,7 +270,7 @@ mmLogoDetectionLog=mmLogoDetectionLogs mmFaceRecognizationLog=mmFaceRecognizationLogs ######################################## #\u5927\u5c4f\u56fe\u8868\u5c55\u793a\u670d\u52a1\u63a5\u53e3 -dashboardUrl=http://192.168.10.204:7777/galaxy-service/service/log/v1/ +dashboardUrl=http://192.168.10.204:9999/galaxy-service/service/log/v1/ trafficIpActive=trafficIpActive trafficProtocol=trafficProtocol trafficApp=trafficApp @@ -367,7 +367,7 @@ user_region_placeholder=0 user_region_split=; #IP\u76f8\u5173\u9a8c\u8bc1\u6b63\u5219 ipv4_ip_subnet_regexp=^(0|1\\d{2}|2[0-4]\\d|25[0-5]|[1-9]\\d|[1-9])\\.(0|1\\d{2}|2[0-4]\\d|25[0-5]|[1-9]\\d|\\d)\\.(0|1\\d{2}|2[0-4]\\d|25[0-5]|[1-9]\\d|\\d)\\.(0|1\\d{2}|2[0-4]\\d|25[0-5]|[1-9]\\d|\\d)/(3[0-2]|1[6-9]|2[0-9])$ -ipv6_ip_subnet_regexp=^((::)|(([0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){1,7}:)|(([0-9A-Fa-f]{1,4}:){6}:[0-9A-Fa-f]{1,4})|(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4]\\d|25[0-5])(\\.(\\d|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])){3}))$ ipv4_ip_regexp=^(0|1\\d{2}|2[0-4]\\d|25[0-5]|[1-9]\\d|[1-9])\\.(0|1\\d{2}|2[0-4]\\d|25[0-5]|[1-9]\\d|\\d)\\.(0|1\\d{2}|2[0-4]\\d|25[0-5]|[1-9]\\d|\\d)\\.(0|1\\d{2}|2[0-4]\\d|25[0-5]|[1-9]\\d|\\d)$ @@ -500,6 +500,7 @@ proto_id_region=PROTO_ID keyring_id=keyring_id droprate=Droprate bandwidth=Bandwidth +intercept_domain_intensity=DOMAIN_INTENSITY #IP\u9ed8\u8ba4\u503c ipv4_default_ip_value=\:\: ipv4_default_ip_subnet_value=0.0.0.0/32 @@ -527,4 +528,5 @@ log_time_end=2018-10-01 00:00:00 area_tag=location isp_tag=isp mmFileDigestLog=mmFileDigestLogs -ntcStreamMediaLog=ntcStreamMediaLogs \ No newline at end of file +ntcStreamMediaLog=ntcStreamMediaLogs +ipsec_protocol=8 \ No newline at end of file diff --git a/src/main/resources/sql/20181012/update_stream_region.sql b/src/main/resources/sql/20181015/20181012/update_stream_region.sql similarity index 100% rename from src/main/resources/sql/20181012/update_stream_region.sql rename to src/main/resources/sql/20181015/20181012/update_stream_region.sql From ab59fbd2cee3f170c4bd35dfedf46ae3261e6e0e Mon Sep 17 00:00:00 2001 From: duandongmei Date: Mon, 15 Oct 2018 19:28:19 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E5=9F=9F=E5=90=8D=E6=8B=A6=E6=88=AA?= =?UTF-8?q?=E5=BC=BA=E5=BA=A6=EF=BC=8C=E5=9B=BD=E9=99=85=E5=8C=96=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/nis/util/Constants.java | 4 ---- src/main/resources/messages/message_en.properties | 2 +- src/main/resources/nis.properties | 3 +-- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/nis/util/Constants.java b/src/main/java/com/nis/util/Constants.java index 2f99eb3e0..f1367e6d9 100644 --- a/src/main/java/com/nis/util/Constants.java +++ b/src/main/java/com/nis/util/Constants.java @@ -7,10 +7,6 @@ import java.util.Map; import com.google.gson.GsonBuilder; public final class Constants { - /** - * IPSEC协议 - */ - public static Integer IPSEC_PROTOCOL=Configurations.getIntProperty("ipsec_protocol", 8); public static final String GROUP_REUSE_SOURCES=Configurations.getStringProperty("groupReuseSources","groupReuseSources"); public static Integer APP_SPEC_SERVICE_CODE_MIN_VAL=Configurations.getIntProperty("app_spec_service_code_min_val", 300001); public static Integer APP_SPEC_SERVICE_CODE_MAX_VAL=Configurations.getIntProperty("app_spec_service_code_max_val", 268435455); diff --git a/src/main/resources/messages/message_en.properties b/src/main/resources/messages/message_en.properties index ab9221784..4b5e0d130 100644 --- a/src/main/resources/messages/message_en.properties +++ b/src/main/resources/messages/message_en.properties @@ -1006,7 +1006,7 @@ browser=Browser trend=Trend traffic_website_list=Website TOP10 traffic_website_type_chart=Website Type -website=Website +website=webSite #===============dashboard end=================================== ratelimit_limit=Limit Rate must between 0 and 1 Maintenance=Policy Object diff --git a/src/main/resources/nis.properties b/src/main/resources/nis.properties index 637f0059d..f500f4750 100644 --- a/src/main/resources/nis.properties +++ b/src/main/resources/nis.properties @@ -528,5 +528,4 @@ log_time_end=2018-10-01 00:00:00 area_tag=location isp_tag=isp mmFileDigestLog=mmFileDigestLogs -ntcStreamMediaLog=ntcStreamMediaLogs -ipsec_protocol=8 \ No newline at end of file +ntcStreamMediaLog=ntcStreamMediaLogs \ No newline at end of file From f73cdd0741bac91356c6e6ade97fbacc72105b6f Mon Sep 17 00:00:00 2001 From: duandongmei Date: Mon, 15 Oct 2018 19:30:04 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E5=9F=9F=E5=90=8D=E6=8B=A6=E6=88=AA?= =?UTF-8?q?=E5=BC=BA=E5=BA=A6=E8=87=AA=E5=AE=9A=E4=B9=89=E5=9F=9F=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../configuration/InterceptCfgService.java | 13 ++++++++ .../20181012/update_stream_region.sql | 1 - .../resources/sql/20181015/add_dictionary.sql | 19 ++++++++++++ .../sql/20181015/update_function_service.sql | 2 ++ .../views/cfg/intercept/interceptForm.jsp | 31 ++++++++++++++++++- .../views/cfg/intercept/interceptList.jsp | 12 +++++++ 6 files changed, 76 insertions(+), 2 deletions(-) delete mode 100644 src/main/resources/sql/20181015/20181012/update_stream_region.sql create mode 100644 src/main/resources/sql/20181015/add_dictionary.sql create mode 100644 src/main/resources/sql/20181015/update_function_service.sql diff --git a/src/main/java/com/nis/web/service/configuration/InterceptCfgService.java b/src/main/java/com/nis/web/service/configuration/InterceptCfgService.java index c38a34674..3b5c7d80b 100644 --- a/src/main/java/com/nis/web/service/configuration/InterceptCfgService.java +++ b/src/main/java/com/nis/web/service/configuration/InterceptCfgService.java @@ -365,6 +365,7 @@ public class InterceptCfgService extends CrudService maatCfg.setUserRegion(userRegion); } + //域名拦截需要增加域名id和域名字符串自定义配置 if(StringUtil.isEmpty(maatCfg.getUserRegion()) || maatCfg.getUserRegion().equals(Constants.USER_REGION_PLACEHOLDER)){ if(doaminFlag){ @@ -378,6 +379,18 @@ public class InterceptCfgService extends CrudService } } + //域名拦截需要增加拦截强度自定义域 + if(doaminFlag){ + if(StringUtil.isEmpty(entity.getUserRegion5()) || maatCfg.getUserRegion().equals(Constants.USER_REGION_PLACEHOLDER)){ + userRegion= Constants.INTERCEPT_DOMAN_INTENSITY_USER_REGION_KEY+"="+entity.getUserRegion5(); + maatCfg.setUserRegion(userRegion); + }else{ + userRegion= maatCfg.getUserRegion(); + userRegion=userRegion+";"+Constants.INTERCEPT_DOMAN_INTENSITY_USER_REGION_KEY+"="+entity.getUserRegion5(); + maatCfg.setUserRegion(userRegion); + } + } + configCompileList.add(maatCfg); maatBean.setConfigCompileList(configCompileList); maatBean.setAuditTime(entity.getAuditTime()); diff --git a/src/main/resources/sql/20181015/20181012/update_stream_region.sql b/src/main/resources/sql/20181015/20181012/update_stream_region.sql deleted file mode 100644 index 9b2a4fb5b..000000000 --- a/src/main/resources/sql/20181015/20181012/update_stream_region.sql +++ /dev/null @@ -1 +0,0 @@ -update function_region_dict set config_region_value ='NTC_SUBSCRIBE_ID' where dict_id='201'; \ No newline at end of file diff --git a/src/main/resources/sql/20181015/add_dictionary.sql b/src/main/resources/sql/20181015/add_dictionary.sql new file mode 100644 index 000000000..0a3ef7633 --- /dev/null +++ b/src/main/resources/sql/20181015/add_dictionary.sql @@ -0,0 +1,19 @@ +INSERT INTO sys_data_dictionary_name + (`id`, `module_name`, `mark`, `remark`, `revision`, `create_time`, `modify_time`, `status`) +VALUES + (116, 'ǿ', 'INTERCEPT_DOMAIN_INTENSITY', '', 'user:Ա,2018-10-15 15:24:55edit|user:Ա,2018-10-15 15:24:37edit', "2018/10/15 15:24:04", "2018/10/15 15:24:55", 1); + +INSERT INTO sys_data_dictionary_item + (`id`, `item_code`, `item_value`, `item_desc`, `item_sort`, `status`, `type`, `dictionary_id`) +VALUES + (2703, '1', 'weak_intensity', '', 0, 1, 1, 116); + +INSERT INTO sys_data_dictionary_item + (`id`, `item_code`, `item_value`, `item_desc`, `item_sort`, `status`, `type`, `dictionary_id`) +VALUES + (2704, '2', 'stronger_strong_intensity', 'ǿ', 0, 1, 1, 116); + +INSERT INTO sys_data_dictionary_item + (`id`, `item_code`, `item_value`, `item_desc`, `item_sort`, `status`, `type`, `dictionary_id`) +VALUES + (2705, '3', 'strong_intensity', 'ǿ', 0, 1, 1, 116); \ No newline at end of file diff --git a/src/main/resources/sql/20181015/update_function_service.sql b/src/main/resources/sql/20181015/update_function_service.sql new file mode 100644 index 000000000..d822b4894 --- /dev/null +++ b/src/main/resources/sql/20181015/update_function_service.sql @@ -0,0 +1,2 @@ +update function_service_dict set is_valid=0 where dict_id=137 ; +update function_service_dict set function_id=5 where dict_id=108 \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/views/cfg/intercept/interceptForm.jsp b/src/main/webapp/WEB-INF/views/cfg/intercept/interceptForm.jsp index e1d7c425b..00a212176 100644 --- a/src/main/webapp/WEB-INF/views/cfg/intercept/interceptForm.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/intercept/interceptForm.jsp @@ -239,8 +239,33 @@ + + +
+
+
+ +
+ +
+
+
+
+
+
<%-- action 为1 监测时 可以选择证书--%>