VPS_createFirewallRuleV1
Add new security rules to firewalls by specifying firewall ID, protocol, port range, and source details. Ensures controlled access by allowing traffic on designated ports and IP ranges.
Instructions
Create new firewall rule for a specified firewall.
By default, the firewall drops all incoming traffic, which means you must add accept rules for all ports you want to use.
Any virtual machine that has this firewall activated will lose sync with the firewall and will have to be synced again manually.
Use this endpoint to add new security rules to firewalls.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
firewallId | Yes | Firewall ID | |
port | Yes | Port or port range, ex: 1024:2048 | |
protocol | Yes | protocol parameter | |
source | Yes | source parameter | |
source_detail | Yes | IP range, CIDR, single IP or `any` |