FIREWALL RULES
(firewallRules
– Array)
|
|
|
|
ruleId
|
Number
|
Yes
|
The ID for the rule
Note
Leave this element
empty when creating a rule by using the PUT method. The system will
auto-generate an ID for the rule.
|
ruleTag
|
Number
|
No
|
Specifies user controlled IDs on the edge
gateway
Note
The system generates
this value. Do not change it.
|
name
|
String
|
Yes
|
The name for the rule
|
ruleType
|
String
|
Yes
|
Specifies whether the rule was created by the
system as an auto-generated rule or the default rule (internal); or whether it
is a local (user) rule
Note
When creating a
rule, set
ruleType to
user because you cannot
create auto-generated rules or the default rule.
|
invalidSource
|
Boolean
|
No
|
Indicates the element specified in the source
was deleted
|
invalidDestination
|
Boolean
|
No
|
Indicates the element specified in the
destination was deleted
|
invalidApplication
|
Boolean
|
No
|
Indicates the application
specified was deleted
|
direction
|
String
|
No
|
Indicates whether the rule
controls traffic incoming, outgoing, or both (inout)
Note
VMware does not
recommend specifying the direction for firewall rules.
|
enabled
|
Boolean
|
Yes
|
Enables or disables the rule
By default,
enabled is set to
true.
|
loggingEnabled
|
Boolean
|
No
|
Enables logging for the rule
By default,
loggingEnabled is set
to
false.
|
description
|
String
|
No
|
A description of the rule
|
matchTranslated
|
Boolean
|
No
|
When set to
true, applies the rule
to the translated IP address and services for a NAT rule
|
action
|
String
|
Yes
|
Sets one of the following actions:
■
|
accept — allows traffic
to the specified sources, destinations, or services
|
■
|
deny — blocks traffic
from the specified sources, destinations, or services
|
■
|
reject — sends reject
messages for unaccepted packets (RST for TCP connections, and ICMP for UDP and
other IP connections)
|
By default, the
action is set to
deny.
|
STATISTICS
(statistics)
|
timestamp
|
Number
|
No
|
When rule logging is enabled,
displays the time the rule was modified
|
connectionCount
|
Number
|
No
|
When rule logging is enabled,
displays statistics for the rule
|
packetCount
|
Number
|
No
|
When rule logging is enabled,
displays statistics for the rule
|
byteCount
|
Number
|
No
|
When rule logging is enabled,
displays
statistics for the rule
|
SOURCE
(source)
|
exclude
|
Boolean
|
No
|
Excludes a source from the rule
|
ipAddress |
items
|
Array | String
|
No
|
Source IP address for the rule
You can enter the source
using the following formats: IP, IP1-IPN, and CIDR.
The firewall supports
both IPv4 and IPv6 formats.
|
groupingObjectId |
items
|
Array | String
|
No
|
Selects one or more IP address (IP
Sets) grouping objects available to the edge gateway
|
vnicGroupId |
items
|
Array | String
|
No
|
Selects one or more vNICs for the
rule
You can enter the
following values:
vnic-index-[0-9],
external, or
internal.
|
DESTINATION
(destination)
|
exclude
|
Boolean
|
No
|
Excludes a destination from the
rule
When set to
true, the rule is
applied to traffic going to all destinations except for the IP addresses
specified.
|
ipAddress |
items
|
Array | String
|
No
|
Destination IP address for the
rule
The firewall supports
both IPv4 and IPv6 formats.
|
groupingObjectId |
items
|
Array | String
|
No
|
Selects one or more IP Set objects
for the rule in the format ipset-X
|
vnicGroupId |
items
|
Array | String
|
No
|
Selects one or more vNICs for the
rule
|
APPLICATION
(application)
|
applicationId |
items
|
Array | String
|
No
|
Specifies an application ID for
the rule in the format application-X
|
SERVICE (service)
|
protocol
|
String
|
No
|
The service protocol
Note
The edge gateway
supports ALG for FTP only.
|
port |
items
|
Array | String
|
No
|
The port number
By default,
port is set to
any.
|
sourcePort |
items
|
Array | String
|
No
|
The source port number
By default,
sourcePort is set to
any.
|
icmpType
|
String
|
No
|
|