setup_web_server_rules
Configure essential firewall rules for web servers by allowing HTTP, HTTPS, SSH, and ICMP traffic with customizable SSH access restrictions.
Instructions
Set up common firewall rules for a web server.
Args: firewall_group_id: The firewall group ID or description (e.g., "web-servers" or UUID) allow_ssh_from: IP subnet to allow SSH from (default: anywhere)
Returns: List of created firewall rules
Creates rules for:
HTTP (port 80) from anywhere
HTTPS (port 443) from anywhere
SSH (port 22) from specified subnet
ICMP (ping) from anywhere
Input Schema
Name | Required | Description | Default |
---|---|---|---|
allow_ssh_from | No | 0.0.0.0/0 | |
firewall_group_id | Yes |
Input Schema (JSON Schema)
{
"properties": {
"allow_ssh_from": {
"default": "0.0.0.0/0",
"title": "Allow Ssh From",
"type": "string"
},
"firewall_group_id": {
"title": "Firewall Group Id",
"type": "string"
}
},
"required": [
"firewall_group_id"
],
"type": "object"
}