ubuntu_ufw_firewall
Control Ubuntu UFW firewall over SSH: enable, disable, allow, deny, delete, or reset rules with ports, protocols, and source addresses.
Instructions
Manage Ubuntu Uncomplicated Firewall (UFW)
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": {
"connectionId": "<connectionId>",
"action": "<action>"
},
"name": "ubuntu_ufw_firewall"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Source IP address or network | |
| port | No | Port number or service name (e.g., 80, 443, ssh, http) | |
| sudo | No | Whether to run the command with sudo (default: true) | |
| action | Yes | Action to perform (enable, disable, status, allow, deny, delete, reset) | |
| protocol | No | Protocol (tcp, udp) | |
| connectionId | Yes | ID of an active SSH connection |