实现自动SYN Flood防护

This commit is contained in:
刘祥超
2022-01-10 19:54:10 +08:00
parent 488430bbef
commit 443660ac38
13 changed files with 99 additions and 19 deletions

View File

@@ -81,7 +81,8 @@ func (this *IPList) RecordIP(ipType string,
policyId int64,
useLocalFirewall bool,
groupId int64,
setId int64) {
setId int64,
reason string) {
this.Add(ipType, scope, serverId, ip, expiresAt)
if this.listType == IPListTypeDeny {
@@ -97,6 +98,7 @@ func (this *IPList) RecordIP(ipType string,
sourceHTTPFirewallPolicyId: policyId,
sourceHTTPFirewallRuleGroupId: groupId,
sourceHTTPFirewallRuleSetId: setId,
reason: reason,
}:
default: