Skip to content

Ensure Outbound Firewall Policy is not set to ACCEPT

Description

This policy checks whether the outbound firewall policy is set to ACCEPT, which could allow unauthorized traffic to leave the network. It is essential to restrict outbound traffic to prevent potential security breaches and data leaks. The rule checks the 'outbound_policy' attribute of the 'linode_firewall' resource and ensures it is set to 'DROP' instead of 'ACCEPT'. By doing so, it helps prevent malicious activity and protects the network from unauthorized access.

Code Example

terraform
resource "linode_firewall" "example" {
  outbound_policy = "DROP"
}

Remediation

Update the 'outbound_policy' attribute of the 'linode_firewall' resource to 'DROP' to restrict outbound traffic.

Rule Details

FieldValue
IDIAC-1203
SeverityHIGH
IaC TypeTerraform
Frameworkslinode_firewall
Checkov IDCKV_LIN_6

References