terraform/website/source/docs/providers/triton/r/triton_firewall_rule.html.m...

1.4 KiB

layout page_title sidebar_current description
triton Triton: triton_firewall_rule docs-triton-resource-firewall-rule The `triton_firewall_rule` resource represents a rule for the Triton cloud firewall.

triton_firewall_rule

The triton_firewall_rule resource represents a rule for the Triton cloud firewall.

Example Usages

Allow web traffic on ports tcp/80 and tcp/443 to machines with the 'www' tag from any source

resource "triton_firewall_rule" "www" {
  rule    = "FROM any TO tag www ALLOW tcp (PORT 80 AND PORT 443)"
  enabled = true
}

Allow ssh traffic on port tcp/22 to all machines from known remote IPs

resource "triton_firewall_rule" "22" {
  rule    = "FROM IP (IP w.x.y.z OR IP w.x.y.z) TO all vms ALLOW tcp port 22"
  enabled = true
}

Block IMAP traffic on port tcp/143 to all machines

resource "triton_firewall_rule" "imap" {
  rule    = "FROM any TO all vms BLOCK tcp port 143"
  enabled = true
}

Argument Reference

The following arguments are supported:

Attribute Reference

The following attributes are exported:

  • id - (string) - The identifier representing the firewall rule in Triton.