IP/domain intercepter增加whitelist
修改配置统计界面无效的service不显示
This commit is contained in:
@@ -981,6 +981,8 @@ xmpp_monit=XMPP Monitoring
|
|||||||
xmpp_reject=XMPP Control
|
xmpp_reject=XMPP Control
|
||||||
ip_intercepter_monit=IP Intercepter
|
ip_intercepter_monit=IP Intercepter
|
||||||
domain_monit=Domain Intercepter
|
domain_monit=Domain Intercepter
|
||||||
|
ip_intercepter_whitelist=IP White List
|
||||||
|
domain_monit_whitelist=Domain White List
|
||||||
dns_strategy_reject=DNS Response Strategy Control
|
dns_strategy_reject=DNS Response Strategy Control
|
||||||
proxy_http_req_body_replace=HTTP Request Content Replacement
|
proxy_http_req_body_replace=HTTP Request Content Replacement
|
||||||
proxy_http_res_body_replace=HTTP Response Content Replacement
|
proxy_http_res_body_replace=HTTP Response Content Replacement
|
||||||
|
|||||||
@@ -982,6 +982,8 @@ xmpp_monit=XMPP\u76D1\u6D4B
|
|||||||
xmpp_reject=xmpp\u7BA1\u63A7
|
xmpp_reject=xmpp\u7BA1\u63A7
|
||||||
ip_intercepter_monit=IP\u62E6\u622A
|
ip_intercepter_monit=IP\u62E6\u622A
|
||||||
domain_monit=\u57DF\u540D\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
|
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_req_body_replace=PXY HTTP\u8BF7\u6C42\u5185\u5BB9\u66FF\u6362
|
||||||
proxy_http_res_body_replace=PXY HTTP\u54CD\u5E94\u5185\u5BB9\u66FF\u6362
|
proxy_http_res_body_replace=PXY HTTP\u54CD\u5E94\u5185\u5BB9\u66FF\u6362
|
||||||
|
|||||||
11
src/main/resources/sql/add_intercepter_whitelist_service.sql
Normal file
11
src/main/resources/sql/add_intercepter_whitelist_service.sql
Normal file
@@ -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);
|
||||||
@@ -124,30 +124,32 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<c:if test="${fn:length(serviceList)>1}">
|
<c:if test="${fn:length(serviceList)>1}">
|
||||||
<div class="row">
|
<div class="col-md-6">
|
||||||
<div class="col-md-6">
|
<div class="form-group">
|
||||||
<div class="form-group">
|
<label class="control-label col-md-3"><spring:message code="action"/></label>
|
||||||
<label class="control-label col-md-3"><font
|
<div class="col-md-6">
|
||||||
color="red">*</font>
|
<c:forEach items="${serviceList}" var="service"
|
||||||
<spring:message code="action" /></label>
|
varStatus="satus">
|
||||||
<div class="col-md-6">
|
<label class="radio-inline"> <c:if
|
||||||
<c:forEach items="${serviceList}" var="service">
|
test="${_cfg.functionId eq service.functionId}">
|
||||||
<label class="radio-inline"> <c:if
|
<input type="radio" name="action"
|
||||||
test="${_cfg.functionId eq service.functionId}">
|
serviceId="${service.serviceId }"
|
||||||
<input type="radio" name="action"
|
protocolId="${service.protocolId }"
|
||||||
serviceId="${service.serviceId }"
|
value="${service.action }" class="required action"
|
||||||
value="${service.action }" class="required action"
|
<c:if test="${_cfg.action==service.action || (_cfg.action==null && satus.index==0)}">checked</c:if>>
|
||||||
<c:if test="${_cfg.action==service.action}">checked</c:if>>
|
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
|
||||||
<spring:message code="${service.actionCode }" />
|
<c:if test="${dict.itemCode eq service.action }">
|
||||||
|
<spring:message code="${dict.itemValue }"/>
|
||||||
</c:if>
|
</c:if>
|
||||||
</label>
|
</c:forEach>
|
||||||
</c:forEach>
|
</c:if>
|
||||||
</div>
|
</label>
|
||||||
<div for="action"></div>
|
</c:forEach>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div for="action"></div>
|
||||||
</div>
|
</div>
|
||||||
</c:if>
|
</div>
|
||||||
|
</c:if>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
|
|||||||
@@ -229,10 +229,11 @@
|
|||||||
</div> --%>
|
</div> --%>
|
||||||
<c:forEach items="${serviceList }" var="serviceDict">
|
<c:forEach items="${serviceList }" var="serviceDict">
|
||||||
<c:if test="${serviceDict.functionId== cfg.functionId}">
|
<c:if test="${serviceDict.functionId== cfg.functionId}">
|
||||||
<c:set var="serviceName" value="${serviceDict.serviceName }"/>
|
<c:set var="serviceName1" value="${serviceDict.serviceName }"/>
|
||||||
<c:set var="action" value="${serviceDict.action }"/>
|
<c:set var="action" value="${serviceDict.action }"/>
|
||||||
</c:if>
|
</c:if>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
|
${serviceName1 }
|
||||||
<div class="theme-panel hidden-xs hidden-sm">
|
<div class="theme-panel hidden-xs hidden-sm">
|
||||||
<c:if test="${action eq 16 }">
|
<c:if test="${action eq 16 }">
|
||||||
<c:set var="configPermissionName" value="control:httpBlock:config"/>
|
<c:set var="configPermissionName" value="control:httpBlock:config"/>
|
||||||
@@ -277,7 +278,7 @@
|
|||||||
|
|
||||||
<h3 class="page-title">
|
<h3 class="page-title">
|
||||||
|
|
||||||
<spring:message code="${serviceName }"></spring:message>
|
<spring:message code="${serviceName1 }"></spring:message>
|
||||||
<small><spring:message code="date_list"/></small>
|
<small><spring:message code="date_list"/></small>
|
||||||
</h3>
|
</h3>
|
||||||
<h5 class="page-header"></h5>
|
<h5 class="page-header"></h5>
|
||||||
|
|||||||
@@ -95,30 +95,34 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<c:forEach items="${configStatistics }" var="statistics" varStatus="status" step="1">
|
<c:forEach items="${configStatistics }" var="statistics" varStatus="status" step="1">
|
||||||
<tr>
|
<c:set var="serviceName" value=""></c:set>
|
||||||
<td>
|
<c:forEach items="${serviceList }" var="serviceDict" varStatus="status" step="1">
|
||||||
<c:forEach items="${serviceList }" var="serviceDict" varStatus="status" step="1">
|
<c:if test="${serviceDict.serviceId eq statistics.service }">
|
||||||
<c:if test="${serviceDict.serviceId eq statistics.service }">
|
<c:set var="serviceName" value="${serviceDict.serviceName }"></c:set>
|
||||||
<spring:message code="${serviceDict.serviceName }"/>
|
</c:if>
|
||||||
</c:if>
|
</c:forEach>
|
||||||
</c:forEach>
|
<c:if test="${!empty serviceName }">
|
||||||
</td>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
${statistics.approved }
|
<spring:message code="${serviceName }"/>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
${statistics.unapproved }
|
${statistics.approved }
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
${statistics.cancle_approved }
|
${statistics.unapproved }
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
${statistics.created }
|
${statistics.cancle_approved }
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
${statistics.deleted }
|
${statistics.created }
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
<td>
|
||||||
|
${statistics.deleted }
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</c:if>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
Reference in New Issue
Block a user