Pcornel
Automation · Security Automation

Firewall Automation

Cheat sheet · https://pcornel.dk/topic.php?topic=5764

Back to the Topic

Answer

Firewall automation manages rules through APIs or tools like Ansible and Terraform, from reviewed requests in Git, with checks for overly broad rules and cleanup of unused ones.

Remember

  • Rules in Git, reviewed.
  • Check for overly broad rules.
  • Clean unused rules.

First checks

  • Firewall rules as code (Terraform/Ansible/vendor API) — declarative
  • Rule request workflow with validation — process
  • Policy test/simulation before deploy — safety

Verify in this order

request → validate → code → review → deploy → verify

Where it usually breaks

Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5764

Confirmation

Confirm action

Continue?