github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/avd_docs/digitalocean/compute/AVD-DIG-0003/Terraform.md (about)

     1  
     2  Set a more restrictive cidr range
     3  
     4  ```hcl
     5   resource "digitalocean_firewall" "good_example" {
     6   	name = "only-22-80-and-443"
     7     
     8   	droplet_ids = [digitalocean_droplet.web.id]
     9     
    10   	outbound_rule {
    11   	  protocol         = "tcp"
    12   	  port_range       = "22"
    13   	  destination_addresses = ["192.168.1.0/24", "fc00::/7"]
    14   	}
    15   }
    16   
    17  ```
    18  
    19  #### Remediation Links
    20   - https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs/resources/firewall
    21