[SDK reference](../../index.md) / [Models](../index.md) / [Network](index.md)

# FirewallRule

**Kind:** class  
**Namespace:** `Egulu.Sdk.Models.Network`  

One rule inside a FirewallPolicy (ADR-0601: deny always wins over allow regardless of order).

## Properties

| Name | Type | JSON name | Description |
|---|---|---|---|
| `Action` | `Models.Network.FirewallAction?` | `action` | Rule verdict (ALLOW or DENY; DENY always wins over ALLOW per ADR-0601). |
| `Description` | `string?` | `description` | Optional human-readable description. |
| `DestinationCidrs` | `List<string>?` | `destinationCidrs` | Destination IPv4/IPv6 CIDR blocks matched by the rule. |
| `DestinationTags` | `List<string>?` | `destinationTags` | Destination workload tags matched by the rule. |
| `Direction` | `Models.Network.FirewallDirection?` | `direction` | Traffic direction (INGRESS or EGRESS). |
| `Logged` | `bool?` | `logged` | Whether matching packets emit a flow log record. |
| `Ports` | `string?` | `ports` | Optional port or port range (for example "443", "8000-8080", or "*"). |
| `Protocol` | `Models.Network.FirewallProtocol?` | `protocol` | IP protocol (TCP, UDP, ICMP, or ALL). |
| `RuleId` | `string?` | `ruleId` | Stable identifier for the rule within the policy. |
| `SourceCidrs` | `List<string>?` | `sourceCidrs` | Source IPv4/IPv6 CIDR blocks matched by the rule. |
| `SourceTags` | `List<string>?` | `sourceTags` | Source workload tags matched by the rule. |
