5.5

Table Of Contents
Response:
202 Accepted
Content-Type: application/vnd.vmware.vcloud.task+xml
...
<Task
href="https://vcloud.example.com/api/task/2120"
...
status="running"
operation="Updating services EdgeGateway theEdge(2000)"
... >
</Task>
Firewall Service Configurations
The default FirewallService in an EdgeGatewayServiceConfiguration is enabled and configured to block all
incoming traffic. You can modify that FirewallService to allow incoming traffic, block outgoing traffic, or
both.
A firewall service configuration includes several important parameters.
Firewall Rules
Each firewall rule specifies a protocol, IP address, and port. Packets that match the criteria in the rule are
subject to an action defined in the Policy element of the rule. The action can forward the packet to the
destination IP address and port, or drop it and optionally log a message describing the packet that was
dropped. Packets that do not match any rule are subject to the policy contained in the DefaultAction
element of the FirewallService.
Firewall Rule Logging
The Configuration element of an EdgeGateway can include SyslogServerSettings that specify IP addresses to
which syslog messages are sent. When you specify a value of true in the EnableLogging element of a
FirewallRule, all packets that trigger the rule are logged to the configured syslog server. Logging for all
rules is controlled by the value of the LogDefaultAction element of the FirewallService.
Port and Address Ranges
These elements in a FirewallRule specify source and destination IP ports and addresses to which the rule
applies.
Example: Firewall Service Definition with Two Rules
This fragment of an EdgeGatewayServiceConfiguration defines a firewall service with two rules: one that
allows incoming SSH connection, and one that denies incoming Telnet connections. These rules apply to any
virtual machine that connects to a network backed by this Edge Gateway. Each rule is defined in a
FirewallRule element, and can include the following specifications:
Policy
The default policy value, allow, causes the firewall to forward packets that
match the rules. Specify drop to drop packets that match the rules.
Protocols
By default, a rule applies to both UDP and TCP protocols. You can limit the
rule to one protocol or the other by including Tcp and Udp elements in
Protocols and specifying a value of true or false for each.
SourcePortRange
Specify a source IP port or port range, or set to any to match any port.
DestinationPortRange
Specify a destination IP port or port range, or set to any to match any port.
SourceIp
Specify a source IP address, or use one of these strings.
Chapter 6 Creating and Managing Organizations
VMware, Inc. 179