策略对象增加SSL协议
This commit is contained in:
@@ -131,6 +131,12 @@ public class ObjectGroupService extends BaseService {
|
|||||||
}else if(entity.getAction().equals(16)){
|
}else if(entity.getAction().equals(16)){
|
||||||
entity.setServiceId(31);
|
entity.setServiceId(31);
|
||||||
}
|
}
|
||||||
|
}else if("SSL".equalsIgnoreCase(protocolType)){
|
||||||
|
if(entity.getAction().equals(1)){
|
||||||
|
entity.setServiceId(131);
|
||||||
|
}else if(entity.getAction().equals(16)){
|
||||||
|
entity.setServiceId(19);
|
||||||
|
}
|
||||||
}else if(StringUtils.isBlank(protocolType)){
|
}else if(StringUtils.isBlank(protocolType)){
|
||||||
if(MapUtils.isNotEmpty(entity.getUserRegion())&&entity.getUserRegion().containsKey("ipGroup")){
|
if(MapUtils.isNotEmpty(entity.getUserRegion())&&entity.getUserRegion().containsKey("ipGroup")){
|
||||||
if(entity.getAction().equals(1)){
|
if(entity.getAction().equals(1)){
|
||||||
|
|||||||
@@ -127,14 +127,14 @@
|
|||||||
<serviceCfg cfgType="2" tableName="ntc_subscribe_id_cfg" maatTable="NTC_SUBSCRIBE_ID"></serviceCfg>
|
<serviceCfg cfgType="2" tableName="ntc_subscribe_id_cfg" maatTable="NTC_SUBSCRIBE_ID"></serviceCfg>
|
||||||
</service>
|
</service>
|
||||||
<service id="131" functionId="34" serviceType="1" tableName="cfg_index_info" className="CfgIndexInfo" desc="SSL监测">
|
<service id="131" functionId="34" serviceType="1" tableName="cfg_index_info" className="CfgIndexInfo" desc="SSL监测">
|
||||||
<serviceCfg cfgType="1" tableName="ip_port_cfg" ></serviceCfg>
|
<serviceCfg cfgType="1" tableName="ip_port_cfg" maatTable="NTC_UNIVERSAL_IP" protocolMaatTable="NTC_UNIVERSAL_PROTO_TYPE"></serviceCfg>
|
||||||
<serviceCfg cfgType="2" tableName="ssl_keyword_cfg" ></serviceCfg>
|
<serviceCfg cfgType="2" tableName="ssl_keyword_cfg" ></serviceCfg>
|
||||||
<serviceCfg cfgType="2" tableName="ntc_subscribe_id_cfg" ></serviceCfg>
|
<serviceCfg cfgType="2" tableName="ntc_subscribe_id_cfg" maatTable="NTC_SUBSCRIBE_ID"></serviceCfg>
|
||||||
</service>
|
</service>
|
||||||
<service id="19" functionId="34" serviceType="1" tableName="cfg_index_info" className="CfgIndexInfo" desc="SSL封堵">
|
<service id="19" functionId="34" serviceType="1" tableName="cfg_index_info" className="CfgIndexInfo" desc="SSL封堵">
|
||||||
<serviceCfg cfgType="1" tableName="ip_port_cfg" ></serviceCfg>
|
<serviceCfg cfgType="1" tableName="ip_port_cfg" maatTable="NTC_UNIVERSAL_IP" protocolMaatTable="NTC_UNIVERSAL_PROTO_TYPE"></serviceCfg>
|
||||||
<serviceCfg cfgType="2" tableName="ssl_keyword_cfg" ></serviceCfg>
|
<serviceCfg cfgType="2" tableName="ssl_keyword_cfg" ></serviceCfg>
|
||||||
<serviceCfg cfgType="2" tableName="ntc_subscribe_id_cfg" ></serviceCfg>
|
<serviceCfg cfgType="2" tableName="ntc_subscribe_id_cfg" maatTable="NTC_SUBSCRIBE_ID"></serviceCfg>
|
||||||
</service>
|
</service>
|
||||||
<service id="67" functionId="6" serviceType="1" tableName="cfg_index_info" className="CfgIndexInfo" desc="URL白名单">
|
<service id="67" functionId="6" serviceType="1" tableName="cfg_index_info" className="CfgIndexInfo" desc="URL白名单">
|
||||||
<serviceCfg cfgType="2" tableName="http_url_cfg" ></serviceCfg>
|
<serviceCfg cfgType="2" tableName="http_url_cfg" ></serviceCfg>
|
||||||
@@ -437,6 +437,6 @@
|
|||||||
<serviceCfg cfgType="3" tableName="http_res_head_cfg" ></serviceCfg>
|
<serviceCfg cfgType="3" tableName="http_res_head_cfg" ></serviceCfg>
|
||||||
<serviceCfg cfgType="2" tableName="ntc_subscribe_id_cfg" ></serviceCfg>
|
<serviceCfg cfgType="2" tableName="ntc_subscribe_id_cfg" ></serviceCfg>
|
||||||
</service>
|
</service>
|
||||||
<service id="0" serviceIds="512,592,128,129,130,132,133,143" functionId="888" serviceType="1" tableName="cfg_index_info" className="CfgIndexInfo" desc="公共分组监测"></service>
|
<service id="0" serviceIds="512,592,128,129,130,131,132,133,143" functionId="888" serviceType="1" tableName="cfg_index_info" className="CfgIndexInfo" desc="公共分组监测"></service>
|
||||||
<service id="-1" serviceIds="576,16,17,18,20,21,31" functionId="888" serviceType="1" tableName="cfg_index_info" className="CfgIndexInfo" desc="公共分组阻断"></service>
|
<service id="-1" serviceIds="576,16,17,18,19,20,21,31" functionId="888" serviceType="1" tableName="cfg_index_info" className="CfgIndexInfo" desc="公共分组阻断"></service>
|
||||||
</serviceList>
|
</serviceList>
|
||||||
@@ -6,4 +6,5 @@ INSERT INTO `sys_data_dictionary_item`(`item_code`, `item_value`, `item_desc`, `
|
|||||||
INSERT INTO `sys_data_dictionary_item`(`item_code`, `item_value`, `item_desc`, `item_sort`, `status`, `type`, `dictionary_id`) select 'intercept', 'intercept', 'HTTPS拦截', 3, 1, 1, sn.id from `sys_data_dictionary_name` sn where sn.mark='OBJ_GROUP_PROTOCOL';
|
INSERT INTO `sys_data_dictionary_item`(`item_code`, `item_value`, `item_desc`, `item_sort`, `status`, `type`, `dictionary_id`) select 'intercept', 'intercept', 'HTTPS拦截', 3, 1, 1, sn.id from `sys_data_dictionary_name` sn where sn.mark='OBJ_GROUP_PROTOCOL';
|
||||||
INSERT INTO `sys_data_dictionary_item`(`item_code`, `item_value`, `item_desc`, `item_sort`, `status`, `type`, `dictionary_id`) select 'https', 'HTTPS', 'HTTPS协议', 2, 1, 1, sn.id from `sys_data_dictionary_name` sn where sn.mark='OBJ_GROUP_PROTOCOL';
|
INSERT INTO `sys_data_dictionary_item`(`item_code`, `item_value`, `item_desc`, `item_sort`, `status`, `type`, `dictionary_id`) select 'https', 'HTTPS', 'HTTPS协议', 2, 1, 1, sn.id from `sys_data_dictionary_name` sn where sn.mark='OBJ_GROUP_PROTOCOL';
|
||||||
INSERT INTO `sys_data_dictionary_item`(`item_code`, `item_value`, `item_desc`, `item_sort`, `status`, `type`, `dictionary_id`) select 'http', 'HTTP', 'HTTP协议', 1, 1, 1, sn.id from `sys_data_dictionary_name` sn where sn.mark='OBJ_GROUP_PROTOCOL';
|
INSERT INTO `sys_data_dictionary_item`(`item_code`, `item_value`, `item_desc`, `item_sort`, `status`, `type`, `dictionary_id`) select 'http', 'HTTP', 'HTTP协议', 1, 1, 1, sn.id from `sys_data_dictionary_name` sn where sn.mark='OBJ_GROUP_PROTOCOL';
|
||||||
INSERT INTO `sys_data_dictionary_item`(`item_code`, `item_value`, `item_desc`, `item_sort`, `status`, `type`, `dictionary_id`) select 'bgp', 'BGP', 'BGP协议', 7, 1, 1, sn.id from `sys_data_dictionary_name` sn where sn.mark='OBJ_GROUP_PROTOCOL';
|
INSERT INTO `sys_data_dictionary_item`(`item_code`, `item_value`, `item_desc`, `item_sort`, `status`, `type`, `dictionary_id`) select 'bgp', 'BGP', 'BGP协议', 7, 1, 1, sn.id from `sys_data_dictionary_name` sn where sn.mark='OBJ_GROUP_PROTOCOL';
|
||||||
|
INSERT INTO `sys_data_dictionary_item`(`item_code`, `item_value`, `item_desc`, `item_sort`, `status`, `type`, `dictionary_id`) select 'ssl', 'SSL', 'SSL协议', 8, 1, 1, sn.id from `sys_data_dictionary_name` sn where sn.mark='OBJ_GROUP_PROTOCOL';
|
||||||
@@ -42,7 +42,7 @@ $(function(){
|
|||||||
$(".domainGroup").addClass("hidden").addClass("disabled");
|
$(".domainGroup").addClass("hidden").addClass("disabled");
|
||||||
$(".subscribeIdGroup").addClass("hidden").addClass("disabled");
|
$(".subscribeIdGroup").addClass("hidden").addClass("disabled");
|
||||||
$(".urlGroup").addClass("hidden").addClass("disabled");
|
$(".urlGroup").addClass("hidden").addClass("disabled");
|
||||||
}else if($("[name=userRegion1]").val()=="mail"||$("[name=userRegion1]").val()=="dns"){
|
}else if($("[name=userRegion1]").val()=="mail"||$("[name=userRegion1]").val()=="dns"||$("[name=userRegion1]").val()=="ssl"){
|
||||||
$(".domainGroup").addClass("hidden").addClass("disabled");
|
$(".domainGroup").addClass("hidden").addClass("disabled");
|
||||||
$(".subscribeIdGroup").removeClass("hidden").removeClass("disabled");
|
$(".subscribeIdGroup").removeClass("hidden").removeClass("disabled");
|
||||||
$(".urlGroup").addClass("hidden").addClass("disabled");
|
$(".urlGroup").addClass("hidden").addClass("disabled");
|
||||||
@@ -110,7 +110,7 @@ $(function(){
|
|||||||
$(".domainGroup").addClass("hidden").addClass("disabled");
|
$(".domainGroup").addClass("hidden").addClass("disabled");
|
||||||
//处理do_log
|
//处理do_log
|
||||||
$(".doLog").removeClass("hidden");
|
$(".doLog").removeClass("hidden");
|
||||||
}else if("mail"==$(this).val()||"dns"==$(this).val()){
|
}else if("mail"==$(this).val()||"dns"==$(this).val()||"ssl"==$(this).val()){
|
||||||
$(".urlGroup").addClass("hidden").addClass("disabled");
|
$(".urlGroup").addClass("hidden").addClass("disabled");
|
||||||
$(".subscribeIdGroup").removeClass("hidden").removeClass("disabled");
|
$(".subscribeIdGroup").removeClass("hidden").removeClass("disabled");
|
||||||
$(".domainGroup").addClass("hidden").addClass("disabled");
|
$(".domainGroup").addClass("hidden").addClass("disabled");
|
||||||
@@ -161,7 +161,9 @@ $(function(){
|
|||||||
top.$.jBox.tip("<spring:message code='at_least_one_group'/>", "<spring:message code='info'/>");
|
top.$.jBox.tip("<spring:message code='at_least_one_group'/>", "<spring:message code='info'/>");
|
||||||
return;
|
return;
|
||||||
}else{
|
}else{
|
||||||
if(($("[name='userRegion1']").val()=="http"||$("[name='userRegion1']").val()=="mail"||$("[name='userRegion1']").val()=="dns"||$("[name='userRegion1']").val()=="ftp"||$("[name='userRegion1']").val()=="bgp")&&ipGroupLen>0){
|
if(($("[name='userRegion1']").val()=="http"||$("[name='userRegion1']").val()=="mail"||
|
||||||
|
$("[name='userRegion1']").val()=="dns"||$("[name='userRegion1']").val()=="ftp"||
|
||||||
|
$("[name='userRegion1']").val()=="bgp"||$("[name='userRegion1']").val()=="ssl")&&ipGroupLen>0){
|
||||||
if(grouplen>7){
|
if(grouplen>7){
|
||||||
top.$.jBox.tip("<spring:message code='most_seven_group'/>", "<spring:message code='info'/>");
|
top.$.jBox.tip("<spring:message code='most_seven_group'/>", "<spring:message code='info'/>");
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user