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")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 | |||