Skip to content

Commit

Permalink
feat: update firewall config
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMarble committed Dec 29, 2023
1 parent b473101 commit ab3c8d3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions provision/terraform/cloudflare/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion provision/terraform/cloudflare/firewall.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
resource "cloudflare_filter" "block_countries" {
zone_id = data.cloudflare_zone.domain.id
description = "Expression to block countries"
expression = "(ip.geoip.country in {\"CN\" \"IN\" \"KP\" \"RU\"})"
expression = "(not ip.geoip.country in {\"ES\" \"US\" \"CA\" \"GB\" \"NZ\" \"AU\"})"
}
resource "cloudflare_firewall_rule" "block_countries" {
zone_id = data.cloudflare_zone.domain.id
Expand Down

0 comments on commit ab3c8d3

Please sign in to comment.