--- # generated by https://github.com/hashicorp/terraform-plugin-docs page_title: "virtfusion_server_firewall Resource - virtfusion" subcategory: "" description: |- Manages a VirtFusion server firewall. --- # virtfusion_server_firewall (Resource) Manages a VirtFusion server firewall. ## Schema ### Required - `server_id` (Number) The ID of the server. ### Optional - `interface_name` (String) The network interface name. Defaults to `eth0`. - `rules` (Attributes List) The firewall rules. (see [below for nested schema](#nestedatt--rules)) ### Read-Only - `id` (String) Composite identifier in the format `server_id/interface_name`. ### Nested Schema for `rules` Required: - `action` (String) The action for the rule (e.g. `accept`, `drop`). - `direction` (String) The direction for the rule (e.g. `in`, `out`). - `ip` (String) The IP address or CIDR for the rule. - `port` (String) The port or port range for the rule. - `protocol` (String) The protocol for the rule (e.g. `tcp`, `udp`).