From 1a94c225bc62fb50480cc35e8a4ca304d8342a1a Mon Sep 17 00:00:00 2001 From: duandongmei Date: Tue, 31 Jul 2018 11:13:11 +0800 Subject: [PATCH] =?UTF-8?q?IP/domain=20intercepter=E5=A2=9E=E5=8A=A0whitel?= =?UTF-8?q?ist=20=E4=BF=AE=E6=94=B9=E9=85=8D=E7=BD=AE=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E6=97=A0=E6=95=88=E7=9A=84service=E4=B8=8D?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/messages/message_en.properties | 2 + .../messages/message_zh_CN.properties | 2 + .../sql/add_intercepter_whitelist_service.sql | 11 ++++ .../WEB-INF/views/cfg/common/domainForm.jsp | 48 +++++++++-------- .../cfg/proxy/control/httpRedirectList.jsp | 5 +- src/main/webapp/WEB-INF/views/index.jsp | 52 ++++++++++--------- 6 files changed, 71 insertions(+), 49 deletions(-) create mode 100644 src/main/resources/sql/add_intercepter_whitelist_service.sql diff --git a/src/main/resources/messages/message_en.properties b/src/main/resources/messages/message_en.properties index 3b46aa6fb..9bffdec68 100644 --- a/src/main/resources/messages/message_en.properties +++ b/src/main/resources/messages/message_en.properties @@ -981,6 +981,8 @@ xmpp_monit=XMPP Monitoring xmpp_reject=XMPP Control ip_intercepter_monit=IP Intercepter domain_monit=Domain Intercepter +ip_intercepter_whitelist=IP White List +domain_monit_whitelist=Domain White List dns_strategy_reject=DNS Response Strategy Control proxy_http_req_body_replace=HTTP Request Content Replacement proxy_http_res_body_replace=HTTP Response Content Replacement diff --git a/src/main/resources/messages/message_zh_CN.properties b/src/main/resources/messages/message_zh_CN.properties index d964b03fd..9c1d632cc 100644 --- a/src/main/resources/messages/message_zh_CN.properties +++ b/src/main/resources/messages/message_zh_CN.properties @@ -982,6 +982,8 @@ xmpp_monit=XMPP\u76D1\u6D4B xmpp_reject=xmpp\u7BA1\u63A7 ip_intercepter_monit=IP\u62E6\u622A domain_monit=\u57DF\u540D\u62E6\u622A +ip_intercepter_whitelist=IP\u62E6\u622A\u767D\u540D\u5355 +domain_monit_whitelist=\u57DF\u540D\u62E6\u622A\u767D\u540D\u5355 dns_strategy_reject=DNS\u54CD\u5E94\u7B56\u7565\u7BA1\u63A7 proxy_http_req_body_replace=PXY HTTP\u8BF7\u6C42\u5185\u5BB9\u66FF\u6362 proxy_http_res_body_replace=PXY HTTP\u54CD\u5E94\u5185\u5BB9\u66FF\u6362 diff --git a/src/main/resources/sql/add_intercepter_whitelist_service.sql b/src/main/resources/sql/add_intercepter_whitelist_service.sql new file mode 100644 index 000000000..2d9056607 --- /dev/null +++ b/src/main/resources/sql/add_intercepter_whitelist_service.sql @@ -0,0 +1,11 @@ + INSERT INTO function_service_dict + ( `function_id`, `protocol_id`, `action`, `action_code`, `service_id`, `service_name`, `service_desc`, `is_valid`, `creator_id`, `create_time`, `editor_id`, `edit_time`) +VALUES + ( 200, 0, 128, 'whitelist', 514, 'ip_intercepter_whitelist', '', 1,NULL , NULL,NULL , NULL); + +INSERT INTO function_service_dict + ( `function_id`, `protocol_id`, `action`, `action_code`, `service_id`, `service_name`, `service_desc`, `is_valid`, `creator_id`, `create_time`, `editor_id`, `edit_time`) +VALUES + ( 201, 0, 128, 'whitelist', 515, 'domain_whitelist', '', 1,NULL , NULL, NULL, NULL); + + update function_service_dict set is_valid=0 where dict_id in(66,67); \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/views/cfg/common/domainForm.jsp b/src/main/webapp/WEB-INF/views/cfg/common/domainForm.jsp index e61b261ce..8a3af0d6a 100644 --- a/src/main/webapp/WEB-INF/views/cfg/common/domainForm.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/common/domainForm.jsp @@ -124,30 +124,32 @@ -
-
-
- -
- -
- + + + + +
+
+
+
+
diff --git a/src/main/webapp/WEB-INF/views/cfg/proxy/control/httpRedirectList.jsp b/src/main/webapp/WEB-INF/views/cfg/proxy/control/httpRedirectList.jsp index e737aa1cd..ae89bb17d 100644 --- a/src/main/webapp/WEB-INF/views/cfg/proxy/control/httpRedirectList.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/proxy/control/httpRedirectList.jsp @@ -229,10 +229,11 @@
--%> - + + ${serviceName1 }