dnat复用策略提交.
This commit is contained in:
45
src/main/resources/sql/20181207/add_ip_reuse_dnat_policy.sql
Normal file
45
src/main/resources/sql/20181207/add_ip_reuse_dnat_policy.sql
Normal file
@@ -0,0 +1,45 @@
|
||||
-- ----------------------------
|
||||
-- Table structure for ip_reuse_dnat_policy
|
||||
-- ----------------------------
|
||||
DROP TABLE IF EXISTS `ip_reuse_dnat_policy`;
|
||||
CREATE TABLE `ip_reuse_dnat_policy` (
|
||||
`cfg_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键,自增',
|
||||
`cfg_desc` varchar(128) DEFAULT NULL,
|
||||
`ip_type` int(11) NOT NULL COMMENT 'IPV4=4,IPV6=6',
|
||||
`ip_pattern` int(11) NOT NULL,
|
||||
`port_pattern` int(11) NOT NULL,
|
||||
`original_dest_ip` varchar(128) NOT NULL,
|
||||
`original_dest_port` varchar(16) NOT NULL,
|
||||
`translated_dest_ip` varchar(128) NOT NULL,
|
||||
`translated_dest_port` varchar(16) NOT NULL,
|
||||
`protocol` int(11) NOT NULL,
|
||||
`protocol_id` int(11) NOT NULL COMMENT '非0时,maat规范需写入通用IP配置表与通用协议类型配置表 此表固定写0',
|
||||
`is_valid` int(11) NOT NULL COMMENT '0无效,1有效,-1删除\r\n1) 未审核时配置可删除\r\n2) 审核通过,此字段置1\r\n3) 取消审核通过,此字段置0',
|
||||
`is_audit` int(11) NOT NULL COMMENT '0未审核,1审核通过,2审核未通过,3取消审核通过\r\n1) 审核未通过,配置可修改\r\n2) 审核通过,配置不可删除,只能取消审核通过',
|
||||
`do_log` int(11) DEFAULT NULL COMMENT '是否记录结构化日志:1是 2否',
|
||||
`action` int(11) NOT NULL COMMENT '1:阻断,2:监测, 5: FD 白名单,6:监测白名单,7: FD 监测都白名单,应与业务ID所代表的逻辑相匹配,8-灰名单',
|
||||
`service_id` int(11) NOT NULL COMMENT '参考系统业务类型管理表',
|
||||
`function_id` int(11) NOT NULL,
|
||||
`compile_id` int(11) NOT NULL COMMENT '取自服务接口返回的maat配置的编译id,配置初始入库时获取。',
|
||||
`is_area_effective` int(11) NOT NULL COMMENT '0否,1是',
|
||||
`area_effective_ids` varchar(1024) DEFAULT NULL,
|
||||
`creator_id` int(11) NOT NULL COMMENT '取自sys_user.id',
|
||||
`create_time` datetime NOT NULL,
|
||||
`editor_id` int(11) DEFAULT NULL COMMENT '取自sys_user.id',
|
||||
`edit_time` datetime DEFAULT NULL,
|
||||
`auditor_id` int(11) DEFAULT NULL COMMENT '取自sys_user.id',
|
||||
`audit_time` datetime DEFAULT NULL,
|
||||
`request_id` int(11) NOT NULL COMMENT '取自request_info.id',
|
||||
`classify` varchar(128) DEFAULT NULL COMMENT '分类id,多个用英文逗号分隔',
|
||||
`attribute` varchar(128) DEFAULT NULL COMMENT '性质id,多个用英文逗号分隔',
|
||||
`lable` varchar(128) DEFAULT NULL COMMENT '标签id,多个用英文逗号分隔',
|
||||
`cfg_region_code` int(11) DEFAULT NULL,
|
||||
`cfg_type` varchar(64) DEFAULT NULL,
|
||||
`user_region1` varchar(1024) DEFAULT NULL COMMENT '预留自定义域1',
|
||||
`user_region2` varchar(1024) DEFAULT NULL COMMENT '预留自定义域2',
|
||||
`user_region3` varchar(1024) DEFAULT NULL COMMENT '预留自定义域3',
|
||||
`user_region4` varchar(1024) DEFAULT NULL COMMENT '预留自定义域4',
|
||||
`user_region5` varchar(1024) DEFAULT NULL COMMENT '预留自定义域5',
|
||||
`cancel_request_id` int(11) DEFAULT NULL COMMENT '取消审核来函',
|
||||
PRIMARY KEY (`cfg_id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4;
|
||||
@@ -0,0 +1,8 @@
|
||||
UPDATE
|
||||
function_region_dict
|
||||
SET
|
||||
config_ip_port_show = '1,2,3,4',
|
||||
config_ip_pattern = '3',
|
||||
config_port_pattern = '1'
|
||||
WHERE
|
||||
dict_id = 232 AND function_id = 304;
|
||||
Reference in New Issue
Block a user