Browse Source

check for service type and protocol on bi directional policies

abhishek9686 4 months ago
parent
commit
9ee0530ea6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      logic/acls.go

+ 1 - 1
logic/acls.go

@@ -1411,7 +1411,7 @@ func checkIfAnyPolicyisUniDirectional(targetNode models.Node) bool {
 		if !acl.Enabled {
 		if !acl.Enabled {
 			continue
 			continue
 		}
 		}
-		if acl.AllowedDirection == models.TrafficDirectionBi {
+		if acl.AllowedDirection == models.TrafficDirectionBi && acl.Proto == models.ALL && acl.ServiceType == models.Any {
 			continue
 			continue
 		}
 		}
 		if acl.Proto != models.ALL || acl.ServiceType != models.Any {
 		if acl.Proto != models.ALL || acl.ServiceType != models.Any {