Documentation ¶
Index ¶
Constants ¶
View Source
const ( State_default = "default" //:默认 State_sqli = "sqli" //:SQL注入攻击 State_xss = "xss" //:跨站脚本攻击 State_webshell = "webshell" //:WebShell攻击 State_robot = "robot" //:恶意爬虫 State_cmdi = "cmdi" //:命令注入攻击 State_rfi = "rfi" //:远程文件包含 State_lfi = "lfi" //: 本地文件包含 State_illegal = "illegal" //:非法请求 State_vuln = "vuln" //:漏洞攻击 State_cc = "cc" //:命中CC防护规则 State_custom_custom = "custom_custom" //:命中精准防护规则 State_custom_whiteip = "custom_whiteip" //:命中IP黑白名单规则 State_custom_geoip = "custom_geoip" //:命中地理位置控制规则 State_antitamper = "antitamper" //: 命中网页防篡改规则 State_anticrawler = "anticrawler" //:命中JS挑战反爬虫规则 State_leakage = "leakage" //:命中敏感信息泄露规则 State_followed_action = "followed_action" //:攻击惩罚 )
View Source
const ( Waf_accurate_type_url = "url" Waf_accurate_type_header = "header" )
View Source
const ( Waf_area_type_W = "W" Waf_area_type_B = "B" )
View Source
const ( Waf_ip_black_white_type_W = "W" Waf_ip_black_white_type_B = "B" )
View Source
const ( Waf_Rule_State_T = "T" //start Waf_Rule_State_F = "F" //stop Waf_Rule_Obj_Type_Ip = "IP" Waf_Rule_Obj_Type_CC = "CC" Waf_Rule_Obj_Type_Location = "Location" Waf_obj_type_ip = "ip" Waf_obj_type_area = "area" Waf_obj_type_cc = "cc" Waf_obj_type_accurate = "accurate" )
View Source
const ( Waf_Rule_Group_State_T = "T" //start Waf_Rule_Group_State_F = "F" //stop )
View Source
const Scheme_http = "http"
View Source
const Scheme_https = "https"
View Source
const Waf_state_start = "1001"
View Source
const Waf_state_stop = "2002"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SlaveWafDataDto ¶
type SlaveWafDataDto struct { ServerIpUrl string `json:"serverIpUrl"` Waf WafDto `json:"waf"` Routes []*WafRouteDto `json:"routes"` Certs []*WafHostnameCertDto `json:"certs"` Rules []*WafRuleDataDto `json:"rules"` }
type WafAccessLogDto ¶
type WafAccessLogDto struct { dto.PageDto RequestId string `json:"requestId" sql:"-" ` WafIp string `json:"wafIp" sql:"-" ` HostId string `json:"hostId" sql:"-"` XRealIp string `json:"xRealIp" sql:"-"` Scheme string `json:"scheme" ` ResponseCode string `json:"responseCode" sql:"-"` Method string `json:"method" ` HttpHost string `json:"httpHost" sql:"-"` UpstreamAddr string `json:"upstreamAddr" sql:"-"` Url string `json:"url" ` RequestLength string `json:"requestLength" sql:"-"` ResponseLength string `json:"responseLength" sql:"-"` State string `json:"state" ` StateName string `json:"stateName" sql:"-"` Message string `json:"message" ` CreateTime time.Time `json:"createTime" sql:"-"` StartTime string `json:"startTime" ` StatusCd string `json:"statusCd" sql:"-"` IPAddress string `json:"ipAddress"` Country string `json:"country"` }
type WafAccessLogMapDto ¶
type WafAccurateDto ¶
type WafAccurateDto struct { dto.PageDto WafRuleDto Id string `json:"id" ` Action string `json:"action" ` TypeCd string `json:"typeCd" sql:"-" ` Include string `json:"include" ` IncludeValue string `json:"includeValue" sql:"-"` CreateTime time.Time `json:"createTime" sql:"-"` StatusCd string `json:"statusCd" sql:"-"` }
type WafAreaDto ¶
type WafCCDto ¶
type WafCCDto struct { dto.PageDto WafRuleDto Id string `json:"id" ` Path string `json:"path" ` VisitSec string `json:"visitSec" sql:"-" ` VisitCount string `json:"visitCount" sql:"-"` BlockSec string `json:"blockSec" sql:"-"` CreateTime time.Time `json:"createTime" sql:"-"` StatusCd string `json:"statusCd" sql:"-"` }
type WafDto ¶
type WafDto struct { dto.PageDto WafId string `json:"wafId" sql:"-" ` WafName string `json:"wafName" sql:"-" ` Port string `json:"port" ` HttpsPort string `json:"httpsPort" ` HostIds string `json:"hostIds"` WafHosts []*WafHostsDto `json:"wafHosts"` CreateTime time.Time `json:"createTime" sql:"-"` StatusCd string `json:"statusCd" sql:"-"` State string `json:"state"` }
type WafHostnameCertDto ¶
type WafHostnameCertDto struct { dto.PageDto CertId string `json:"certId" sql:"-" ` Hostname string `json:"hostname" ` CertContent string `json:"certContent" sql:"-"` PrivKeyContent string `json:"privKeyContent" sql:"-"` CreateTime time.Time `json:"createTime" sql:"-"` StatusCd string `json:"statusCd" sql:"-"` }
type WafHostsDto ¶
type WafIpBlackWhiteDto ¶
type WafRouteDto ¶
type WafRouteDto struct { dto.PageDto WafHostnameCertDto RouteId string `json:"routeId" sql:"-" ` WafId string `json:"wafId" sql:"-" ` Hostname string `json:"hostname" ` Ip string `json:"ip" ` Port string `json:"port" ` Scheme string `json:"scheme"` CreateTime time.Time `json:"createTime" sql:"-"` StatusCd string `json:"statusCd" sql:"-"` }
type WafRuleDataDto ¶
type WafRuleDataDto struct { WafRuleDto Ip *WafIpBlackWhiteDto `json:"ip"` Area *WafAreaDto `json:"area"` CC *WafCCDto `json:"cc"` Accurate *WafAccurateDto `json:"accurate"` }
type WafRuleDto ¶
type WafRuleDto struct { dto.PageDto RuleId string `json:"ruleId" sql:"-" ` GroupId string `json:"groupId" sql:"-" ` GroupName string `json:"groupName" sql:"-" ` RuleName string `json:"ruleName" sql:"-" ` Scope string `json:"scope" ` ObjId string `json:"objId" sql:"-" ` ObjType string `json:"objType" sql:"-" ` Seq string `json:"seq"` State string `json:"state" ` CreateTime time.Time `json:"createTime" sql:"-"` StatusCd string `json:"statusCd" sql:"-"` }
Click to show internal directories.
Click to hide internal directories.