Create vCloud Firewall Rule
To create a firewall rule, use the following request:
| |
XML Request Example
| |
JSON Request Example
| |
Where:
description - fill in the description of the firewall rule
enabled - set the enabled as 1 if you want the firewall rule to be enabled or 0 if you want it to be disabled
command - sets the command to ACCEPT or DROP the indicated IPs
address - set the traffic source IP address for which this rule is active
Enter any to apply this rule to all IPs
Enter hyphen-separated IPs to apply the rule to an IP range (e.g. 192.168.1.1-192.168.1.10)
Enter the IPs with slash to apply the rule to CIDR (e.g. 192.168.1.1/24)
Enter internal to apply the rule to IP address from the current network
Enter external to apply the rule to IP address outside the current network
source_port - set the traffic source port for which this rule is active
Enter colon-separated ports to apply the rule to a port range (e.g. 1024:1028)
Enter any to apply the rule to all ports
destination_ip -set the traffic destination IP address for which this rule is active
Enter any to apply this rule to all IPs
Enter hyphen-separated IPs to apply the rule to an IP range (e.g. 192.168.1.1-192.168.1.10)
Enter the IPs with slash to apply the rule to CIDR (e.g. 192.168.1.1/24)
Enter internal to apply the rule to IP address from the current network
Enter external to apply the rule to IP address outside the current network
port - set the traffic destination port for which this rule is active
Enter colon-separated ports to apply the rule to a port range (e.g. 1024:1028)
Enter any to apply the rule to all ports
protocol - protocol type (TCP or UDP)
enable_logging - set to true if you want the system to log when the rule drops or accepts traffic