Create a firewall
cloud_create_firewallDefine firewall rules and apply them to Hetzner Cloud resources to control inbound and outbound traffic. Specify name, direction, protocol, port, and source or destination IPs.
Instructions
Create a firewall with rules. Free.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "cloud_create_firewall"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Firewall name. | |
| rules | No | Rule objects: direction, protocol, port, source_ips or destination_ips. | |
| apply_to | No | Resources to apply the firewall to on creation. |