Defines a rule for a Vultr firewall group to control network traffic based on specified protocols, ports, and IP ranges.
Provides a Vultr Firewall Rule resource. This can be used to create, read, modify, and delete Firewall rules.
Create a Firewall Rule
The following arguments are supported:
firewall_group_id - (Required) The firewall group that the firewall rule will belong to.protocol - (Required) The type of protocol for this firewall rule. Possible values (icmp, tcp, udp, gre, esp, ah) Note they must be lowercaseip_type - (Required) The type of ip for this firewall rule. Possible values (v4, v6) Note they must be lowercasesubnet - (Required) IP address that you want to define for this firewall rule.subnet_size - (Required) The number of bits for the subnet in CIDR notation. Example: 32.port - (Optional) TCP/UDP only. This field can be a specific port or a colon separated port range.notes - (Optional) A simple note for a given firewall rulesource - (Optional) Possible values ("", cloudflare)The following attributes are exported:
id - The given ID for a firewall rule.firewall_group_id - The firewall group that the firewall rule belongs to.protocol - The type of protocol for this firewall rule. Possible values (icmp, tcp, udp, gre, esp, ah)network - IP address that is defined for this rule.port - This field can be a specific port or a colon separated port range.notes - A simple note for a given firewall ruleip_type - The type of ip this rule is - may be either v4 or v6.Firewall Rules can be imported using the Firewall Group ID and Firewall Rule ID, e.g.
0 Comments
Be the first to comment and share your perspective with the community.