可以单个服务中的WAF中设置出入站规则、黑白名单等

This commit is contained in:
刘祥超
2021-01-18 20:39:58 +08:00
parent 6468605325
commit c6a14708df
11 changed files with 477 additions and 4 deletions

View File

@@ -18,9 +18,11 @@ func (this *AllowListAction) Init() {
}
func (this *AllowListAction) RunGet(params struct {
ServerId int64
ServerId int64
FirewallPolicyId int64
}) {
this.Data["featureIsOn"] = true
this.Data["firewallPolicyId"] = params.FirewallPolicyId
listId, err := dao.SharedIPListDAO.FindAllowIPListIdWithServerId(this.AdminContext(), params.ServerId)
if err != nil {

View File

@@ -18,9 +18,11 @@ func (this *DenyListAction) Init() {
}
func (this *DenyListAction) RunGet(params struct {
ServerId int64
FirewallPolicyId int64
ServerId int64
}) {
this.Data["featureIsOn"] = true
this.Data["firewallPolicyId"] = params.FirewallPolicyId
listId, err := dao.SharedIPListDAO.FindDenyIPListIdWithServerId(this.AdminContext(), params.ServerId)
if err != nil {