sophos_create_service
Create custom TCP/UDP service definitions to define new port and protocol rules for firewall policies.
Instructions
Create a custom TCP/UDP service definition.
Use when adding new port or protocol definitions for firewall rules.
Args: name: Unique name for the service definition. protocol: Protocol type ('TCP', 'UDP', 'TCP/UDP', or 'ICMP'). Default is 'TCP'. source_port: Source port range (e.g. '1:65535'). Default is '1:65535'. destination_port: Destination port or port range (e.g. '8080' or '8000:8080'). client: Optional SophosFirewallClient instance.
Returns: API response status dictionary.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Unique name for the service definition. | |
| client | No | ||
| protocol | No | Protocol type: 'TCP', 'UDP', 'TCP/UDP', or 'ICMP'. | TCP |
| source_port | No | Source port range (e.g. '1:65535'). | 1:65535 |
| destination_port | No | Destination port or port range (e.g. '8080' or '8000:8080'). | 8080 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |