Skip to content

Ensure Inbound Firewall Policy is not set to ACCEPT

Description

This policy checks whether the inbound firewall policy is set to ACCEPT, which could allow unauthorized access to the network. It is essential to restrict inbound traffic to only necessary sources to prevent potential security breaches. The rule checks the 'inbound_policy' attribute of the 'linode_firewall' resource and ensures it is set to 'DROP' to block all incoming traffic by default.

Code Example

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

Remediation

Update the 'inbound_policy' attribute of the 'linode_firewall' resource to 'DROP' to block all incoming traffic by default.

Rule Details

FieldValue
IDIAC-1202
SeverityHIGH
IaC TypeTerraform
Frameworkslinode_firewall
Checkov IDCKV_LIN_5

References