winops_net_firewall_add
Create a Windows Firewall rule to allow or block inbound/outbound traffic by port or program, securing network access.
Instructions
Add a Windows Firewall rule.
Return Format
{"success": bool, "rule_name": str}Examples
firewall_add(rule_name="Allow SSH", direction="in", action="allow", port="22")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": {
"rule_name": "<rule_name>"
},
"name": "winops_net_firewall_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | TCP port number (optional). | |
| action | No | Rule action. | allow |
| program | No | Path to executable (optional). | |
| direction | No | Traffic direction. | in |
| rule_name | Yes | Unique name for the firewall rule. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||