策略分组功能

dns响应策略功能
dns欺骗ip列表功能
This commit is contained in:
duandongmei
2018-06-22 10:12:54 +08:00
parent adb9d8a665
commit 7f4342f506
19 changed files with 2571 additions and 1126 deletions

View File

@@ -0,0 +1,202 @@
package com.nis.domain.callback;
import java.util.Date;
import com.google.gson.annotations.Expose;
public class NtcDnsResStrategy {
@Expose
private Long id; //compileId
@Expose
private Integer cfgId; //compileId
@Expose
private Long reqStrateId;
@Expose
private String strateName;
@Expose
private Integer action;
@Expose
private Integer service;
@Expose
private Integer isValid;
@Expose
private Date opTime;
@Expose
private Integer resGroup1Id;
@Expose
private Integer resGroup1Num;
@Expose
private Integer resGroup2Id;
@Expose
private Integer resGroup2Num;
@Expose
private Integer resGroup3Id;
@Expose
private Integer resGroup3Num;
@Expose
private Integer resGroup4Id;
@Expose
private Integer resGroup4Num;
@Expose
private Integer resGroup5Id;
@Expose
private Integer resGroup5Num;
@Expose
private Integer minTtl;
@Expose
private Integer maxTtl;
/**
* action
* @return action
*/
public Integer getAction() {
return action;
}
/**
* @param action the action to set
*/
public void setAction(Integer action) {
this.action = action;
}
/**
* isValid
* @return isValid
*/
public Integer getIsValid() {
return isValid;
}
/**
* @param isValid the isValid to set
*/
public void setIsValid(Integer isValid) {
this.isValid = isValid;
}
/**
* opTime
* @return opTime
*/
public Date getOpTime() {
return opTime;
}
/**
* @param opTime the opTime to set
*/
public void setOpTime(Date opTime) {
this.opTime = opTime;
}
public Long getReqStrateId() {
return reqStrateId;
}
public void setReqStrateId(Long reqStrateId) {
this.reqStrateId = reqStrateId;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getStrateName() {
return strateName;
}
public void setStrateName(String strateName) {
this.strateName = strateName;
}
/**
* service
* @return service
*/
public Integer getService() {
return service;
}
/**
* @param service the service to set
*/
public void setService(Integer service) {
this.service = service;
}
public Integer getResGroup1Id() {
return resGroup1Id;
}
public void setResGroup1Id(Integer resGroup1Id) {
this.resGroup1Id = resGroup1Id;
}
public Integer getResGroup1Num() {
return resGroup1Num;
}
public void setResGroup1Num(Integer resGroup1Num) {
this.resGroup1Num = resGroup1Num;
}
public Integer getResGroup2Id() {
return resGroup2Id;
}
public void setResGroup2Id(Integer resGroup2Id) {
this.resGroup2Id = resGroup2Id;
}
public Integer getResGroup2Num() {
return resGroup2Num;
}
public void setResGroup2Num(Integer resGroup2Num) {
this.resGroup2Num = resGroup2Num;
}
public Integer getResGroup3Id() {
return resGroup3Id;
}
public void setResGroup3Id(Integer resGroup3Id) {
this.resGroup3Id = resGroup3Id;
}
public Integer getResGroup3Num() {
return resGroup3Num;
}
public void setResGroup3Num(Integer resGroup3Num) {
this.resGroup3Num = resGroup3Num;
}
public Integer getResGroup4Id() {
return resGroup4Id;
}
public void setResGroup4Id(Integer resGroup4Id) {
this.resGroup4Id = resGroup4Id;
}
public Integer getResGroup4Num() {
return resGroup4Num;
}
public void setResGroup4Num(Integer resGroup4Num) {
this.resGroup4Num = resGroup4Num;
}
public Integer getResGroup5Id() {
return resGroup5Id;
}
public void setResGroup5Id(Integer resGroup5Id) {
this.resGroup5Id = resGroup5Id;
}
public Integer getResGroup5Num() {
return resGroup5Num;
}
public void setResGroup5Num(Integer resGroup5Num) {
this.resGroup5Num = resGroup5Num;
}
public Integer getMinTtl() {
return minTtl;
}
public void setMinTtl(Integer minTtl) {
this.minTtl = minTtl;
}
public Integer getMaxTtl() {
return maxTtl;
}
public void setMaxTtl(Integer maxTtl) {
this.maxTtl = maxTtl;
}
public Integer getCfgId() {
return cfgId;
}
public void setCfgId(Integer cfgId) {
this.cfgId = cfgId;
}
}

View File

@@ -20,348 +20,26 @@ import com.nis.domain.SysUser;
* @date 2018年2月5日 下午2:57:17
* @version V1.0
*/
public class DnsIpCfg extends BaseEntity<DnsIpCfg> {
public class DnsIpCfg extends BaseIpCfg {
private static final long serialVersionUID = -4476190616323264876L;
/**
* 配置ID
*
*/
@Expose
private Long cfgId;
/**
* 配置描述
*/
private String cfgDesc;
/**
* ip类型
*/
@Expose
private Integer ipType;
/**
* 源IP地址
*/
@Expose
private String srcIp;
/**
* 源地址掩码
*/
@Expose
private String srcIpMask ;
/**
* 源端口
*/
@Expose
private String srcPort ;
/**
* 源端口掩码
*/
@Expose
private String srcPortMask ;
/**
* 目的IP地址
*/
@Expose
private String dstIp ;
/**
* 目的地址掩码
*/
@Expose
private String dstIpMask ;
/**
* 目的端口
*/
@Expose
private String dstPort ;
/**
* 目的端口掩码
*/
@Expose
private String dstPortMask ;
/**
* 方向
*/
@Expose
private Integer direction ;
/**
* 方向
*/
@Expose
private Integer protocol ;
/**
* 有效标识
*/
private Integer isValid;
/**
* 是否审核
*/
private Integer isAudit;
/**
* 创建人
*/
private SysUser creator;
/**
* 创建时间
*/
private Date createTime;
/**
* 最后修改人
*/
private SysUser editor;
/**
* 最后修改时间
*/
private Date editTime;
/**
* 审核人
*/
private SysUser auditor;
/**
* 审核时间
*/
private Date auditTime;
/**
* 来函
*/
private RequestInfo request;
/**
* 欺骗id
*/
private Integer fakeId;
/**
* 分类
*/
private String classify;
/**
* 性质
*/
private String attribute;
/**
* 标签
*/
private String lable;
private static final long serialVersionUID = 8149437730819674317L;
private String dnsStrategyName;
private Long dnsStrategyId;
private String cfgIds;
private String fakeIds;
public String getCfgIds() {
return cfgIds;
public Long getDnsStrategyId() {
return dnsStrategyId;
}
public void setCfgIds(String cfgIds) {
this.cfgIds = cfgIds;
public void setDnsStrategyId(Long dnsStrategyId) {
this.dnsStrategyId = dnsStrategyId;
}
public Long getCfgId() {
return cfgId;
public String getDnsStrategyName() {
return dnsStrategyName;
}
public void setCfgId(Long cfgId) {
this.cfgId = cfgId;
}
public String getCfgDesc() {
return cfgDesc;
}
public void setCfgDesc(String cfgDesc) {
this.cfgDesc = cfgDesc;
}
public Integer getIpType() {
return ipType;
}
public void setIpType(Integer ipType) {
this.ipType = ipType;
}
public String getSrcIp() {
return srcIp;
}
public void setSrcIp(String srcIp) {
this.srcIp = srcIp;
}
public String getSrcIpMask() {
return srcIpMask;
}
public void setSrcIpMask(String srcIpMask) {
this.srcIpMask = srcIpMask;
}
public String getSrcPort() {
return srcPort;
}
public void setSrcPort(String srcPort) {
this.srcPort = srcPort;
}
public String getSrcPortMask() {
return srcPortMask;
}
public void setSrcPortMask(String srcPortMask) {
this.srcPortMask = srcPortMask;
}
public String getDstIp() {
return dstIp;
}
public void setDstIp(String dstIp) {
this.dstIp = dstIp;
}
public String getDstIpMask() {
return dstIpMask;
}
public void setDstIpMask(String dstIpMask) {
this.dstIpMask = dstIpMask;
}
public String getDstPort() {
return dstPort;
}
public void setDstPort(String dstPort) {
this.dstPort = dstPort;
}
public String getDstPortMask() {
return dstPortMask;
}
public void setDstPortMask(String dstPortMask) {
this.dstPortMask = dstPortMask;
}
public Integer getDirection() {
return direction;
}
public void setDirection(Integer direction) {
this.direction = direction;
}
public Integer getProtocol() {
return protocol;
}
public void setProtocol(Integer protocol) {
this.protocol = protocol;
}
public Integer getIsValid() {
return isValid;
}
public void setIsValid(Integer isValid) {
this.isValid = isValid;
}
public Integer getIsAudit() {
return isAudit;
}
public void setIsAudit(Integer isAudit) {
this.isAudit = isAudit;
}
public SysUser getCreator() {
return creator;
}
public void setCreator(SysUser creator) {
this.creator = creator;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public SysUser getEditor() {
return editor;
}
public void setEditor(SysUser editor) {
this.editor = editor;
}
public Date getEditTime() {
return editTime;
}
public void setEditTime(Date editTime) {
this.editTime = editTime;
}
public SysUser getAuditor() {
return auditor;
}
public void setAuditor(SysUser auditor) {
this.auditor = auditor;
}
public Date getAuditTime() {
return auditTime;
}
public void setAuditTime(Date auditTime) {
this.auditTime = auditTime;
}
public RequestInfo getRequest() {
return request;
}
public void setRequest(RequestInfo request) {
this.request = request;
}
public Integer getFakeId() {
return fakeId;
}
public void setFakeId(Integer fakeId) {
this.fakeId = fakeId;
}
public String getClassify() {
return classify;
}
public void setClassify(String classify) {
this.classify = classify;
}
public String getAttribute() {
return attribute;
}
public void setAttribute(String attribute) {
this.attribute = attribute;
}
public String getLable() {
return lable;
}
public void setLable(String lable) {
this.lable = lable;
}
private Date searchCreateTimeStart;
private Date searchCreateTimeEnd;
private Date searchEditTimeStart;
private Date searchEditTimeEnd;
private Date searchAuditTimeStart;
private Date searchAuditTimeEnd;
public Date getSearchCreateTimeStart() {
return searchCreateTimeStart;
}
public void setSearchCreateTimeStart(Date searchCreateTimeStart) {
this.searchCreateTimeStart = searchCreateTimeStart;
}
public Date getSearchCreateTimeEnd() {
return searchCreateTimeEnd;
}
public void setSearchCreateTimeEnd(Date searchCreateTimeEnd) {
this.searchCreateTimeEnd = searchCreateTimeEnd;
}
public Date getSearchEditTimeStart() {
return searchEditTimeStart;
}
public void setSearchEditTimeStart(Date searchEditTimeStart) {
this.searchEditTimeStart = searchEditTimeStart;
}
public Date getSearchEditTimeEnd() {
return searchEditTimeEnd;
}
public void setSearchEditTimeEnd(Date searchEditTimeEnd) {
this.searchEditTimeEnd = searchEditTimeEnd;
}
public Date getSearchAuditTimeStart() {
return searchAuditTimeStart;
}
public void setSearchAuditTimeStart(Date searchAuditTimeStart) {
this.searchAuditTimeStart = searchAuditTimeStart;
}
public Date getSearchAuditTimeEnd() {
return searchAuditTimeEnd;
}
public void setSearchAuditTimeEnd(Date searchAuditTimeEnd) {
this.searchAuditTimeEnd = searchAuditTimeEnd;
}
/**
* fakeIds
* @return fakeIds
*/
public String getFakeIds() {
return fakeIds;
}
/**
* @param fakeIds the fakeIds to set
*/
public void setFakeIds(String fakeIds) {
this.fakeIds = fakeIds;
public void setDnsStrategyName(String dnsStrategyName) {
this.dnsStrategyName = dnsStrategyName;
}
}

View File

@@ -0,0 +1,118 @@
package com.nis.domain.configuration;
/**
* dns响应策略配置
* @author dell
*
*/
public class DnsResStrategy extends BaseCfg<DnsResStrategy> {
/**
*
*/
private static final long serialVersionUID = -2720862431960415564L;
private Integer resGroup1Id;
private Integer resGroup1Num;
private Integer resGroup2Id;
private Integer resGroup2Num;
private Integer resGroup3Id;
private Integer resGroup3Num;
private Integer resGroup4Id;
private Integer resGroup4Num;
private Integer resGroup5Id;
private Integer resGroup5Num;
private Integer minTtl;
private Integer maxTtl;
private String group1Name;
@Override
public void initDefaultValue() {
this.resGroup1Num=0;
this.resGroup1Num=0;
this.resGroup2Id=0;
this.resGroup2Num=0;
this.resGroup3Id=0;
this.resGroup3Num=0;
this.resGroup4Id=0;
this.resGroup4Num=0;
this.resGroup5Id=0;
this.resGroup5Num=0;
}
public Integer getResGroup1Id() {
return resGroup1Id;
}
public void setResGroup1Id(Integer resGroup1Id) {
this.resGroup1Id = resGroup1Id;
}
public Integer getResGroup1Num() {
return resGroup1Num;
}
public void setResGroup1Num(Integer resGroup1Num) {
this.resGroup1Num = resGroup1Num;
}
public Integer getResGroup2Id() {
return resGroup2Id;
}
public void setResGroup2Id(Integer resGroup2Id) {
this.resGroup2Id = resGroup2Id;
}
public Integer getResGroup2Num() {
return resGroup2Num;
}
public void setResGroup2Num(Integer resGroup2Num) {
this.resGroup2Num = resGroup2Num;
}
public Integer getResGroup3Id() {
return resGroup3Id;
}
public void setResGroup3Id(Integer resGroup3Id) {
this.resGroup3Id = resGroup3Id;
}
public Integer getResGroup3Num() {
return resGroup3Num;
}
public void setResGroup3Num(Integer resGroup3Num) {
this.resGroup3Num = resGroup3Num;
}
public Integer getResGroup4Id() {
return resGroup4Id;
}
public void setResGroup4Id(Integer resGroup4Id) {
this.resGroup4Id = resGroup4Id;
}
public Integer getResGroup4Num() {
return resGroup4Num;
}
public void setResGroup4Num(Integer resGroup4Num) {
this.resGroup4Num = resGroup4Num;
}
public Integer getResGroup5Id() {
return resGroup5Id;
}
public void setResGroup5Id(Integer resGroup5Id) {
this.resGroup5Id = resGroup5Id;
}
public Integer getResGroup5Num() {
return resGroup5Num;
}
public void setResGroup5Num(Integer resGroup5Num) {
this.resGroup5Num = resGroup5Num;
}
public Integer getMinTtl() {
return minTtl;
}
public void setMinTtl(Integer minTtl) {
this.minTtl = minTtl;
}
public Integer getMaxTtl() {
return maxTtl;
}
public void setMaxTtl(Integer maxTtl) {
this.maxTtl = maxTtl;
}
public String getGroup1Name() {
return group1Name;
}
public void setGroup1Name(String group1Name) {
this.group1Name = group1Name;
}
}