firewall-cloudflare

andrewsomething/firewall-cloudflare/digitalocean

Terraform Module HCL DIGITALOCEAN

Terraform Module for DigitalOcean Firewall + Cloudflare

Install
module "firewall-cloudflare" {
source = "andrewsomething/firewall-cloudflare/digitalocean"
version = "2.1.0"
}
plain text: /constructs/tfmod-andrewsomething-firewall-cloudflare-digitalocean/install.txt
⭐ Source on GitHub 📦 Registry page
README

Terraform Module for DigitalOcean Firewall + Cloudflare This module allows you to create a DigitalOcean Firewall that only accepts inbound connections from Cloudflare's published list of IP addresses. Why would I use this? Cloudflare provides DDOS protection for domains using its DNS. If an attacker knows the IP address of your origin server, this can easily be circumvented. Using the approach in this module prevents incoming connections to the server from all non-Cloudflare IPs. This could be done at the server level using iptables or other firewall software. Though a missconfigured firewall could prevent you from accessing your server. Using a DigitalOcean Firewall, you can open or close additional ports as needed. This can also be achieved at the web server level using the DenyAllButClo

Inputs (3)
NameTypeDescriptionDefault
tagslistThe list of Tag names assigned to the Firewall.[]
namestringThe name of the firewall to be created."inbound-cloudflare"
droplet_idslistThe list of the IDs of the Droplets assigned to the Firewall.[]
Resources (1)
digitalocean_firewall
Details
FrameworkTerraform Module
LanguageHCL
Version2.1.0
Cloud DIGITALOCEAN
★ Stars23
Forks9
Total downloads1.4k
Inputs3
Resources1
LicenseMIT
Namespaceandrewsomething
Updated