Parcourir la source

check for service type and protocol on bi directional policies

abhishek9686 il y a 4 mois
Parent
commit
9ee0530ea6
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      logic/acls.go

+ 1 - 1
logic/acls.go

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