The schema for distributed firewall configuration has a data structure containing global properties that apply to the firewall and these sections:
■
| |
■
|
A firewall section is the smallest unit of configuration which can be updated independently. You can use sections to group logical rules based on Applied To or for a specific use case.
For an overview of the distributed firewall, see Firewall for Trust Groups in the vCloud Air Advanced Networking Services Guide. [In the vCloud Air Advanced Networking Services Guide, the distributed firewall feature is referred to as the firewall for Trust Groups.]
In the Advanced Networking Services Web UI, Layer 3 (L3) rules appear on the General tab and Layer 2 (L2) rules appear on the Ethernet tab.
Layer 2 firewall rules are processed before Layer 3 rules.
For an example of the schema for the distributed firewall, see Example: Request and Response to Get Distributed Firewall Configuration.
Each section (layer3Sections and layer2Sections) of the distributed firewall has the same data structure:
■
| |
■
|
properties destinations services type managedBy direction packetType ruleDisabled |
The following components of the rules can consist of a single object or an array of objects:
■
| |
■
| |
■
|
The properties for a rule consist of several general elements and two objects — appliedToList and sources.
You can create firewall rules that apply globally, and then narrow the scope at which you want to apply the rule by using the Applied To List.
The name of the entity that the applied to list controls For example, if you set VirtualMachine for the type, specify which virtual machine by setting the virtual machine name (marketing-west-linux). |
|||||||||||||
Identifies what the type applies to For example, if you set VirtualMachine for the type, specify which virtual machine by setting the virtual machine ID (a9648d0a-e549-31f0-8a6c-270f18990d0e). If necessary, submit a GET request to the object to obtain the object ID. |
|||||||||||||
Specifies what the Applied To List controls Set one of the following values (unless you set the type by using an ipSetValue):
|
|||||||||||||
Whether the applied to value specified is a valid object When false, indicates that the applied to element was deleted. |
|||||||||||||
Specifies that the rule applies to an IP Set that you have not previously created |
The system auto-generates this value for the rule. The section ID of the rule matches the section in which the rule is included. |
You can specify the source as an object or a specific IP address (ipSetValue ).
The name of the source that the rules applies to For example, if you set Datacenter for the type, specify which data center by setting its name (org-101-vdc-1). |
|||||||||||||
Identifies what the type applies to For example, if you set Datacenter for the type, specify the data center ID (72977cd-2de6-4fda-a706-0f8d48ce1377). If necessary, submit a GET request to the object to obtain the object ID. |
|||||||||||||
Specifies what the source controls Set the type to one of the required values (unless you set the type by using an ipSetValue):
|
|||||||||||||
Specifies that the rule source is an IP Set that you have not previously created |
You can specify the destination as an object or a specific IP address (ipSetValue ).
The name of the destination that the rules applies to; for example, if you set Datacenter for the type, specify which data center by setting its name (org-101-vdc-1) |
|||||||||||||
Identifies what the type applies to; for example, if you set Datacenter for the type, specify the data center ID (72977cd-2de6-4fda-a706-0f8d48ce1377) If necessary, submit a GET request to the object to obtain the object ID. |
|||||||||||||
Specifies what the destination controls Set the type to one of the required values (unless you set the type by using an ipSetValue):
|
|||||||||||||
Specifies that the rule destination is an IP set that you have not previously created |
Specify the service as a port–protocol combination. You can set a pre-defined service or service group, or define a new one.
The name of the service to which the rule applies; for example SSH if you are specifying this application for the service |
|||
The ID for what is specified for the service Identifies what the type applies to; for example, if you set application for the type, specify application ID (a9648d0a-e549-31f0-8a6c-270f18990d0e). If necessary, submit a GET request to the object to obtain the object ID. |
|||
Specifies whether the service is an application or ApplicationGroup |
|||
Sets the source port as part of the port–protocol combination You can specify an array of up to 15 ports for the service source. |
|||
Sets the destination port as part of the port–protocol combination You can specify an array of up to 15 ports for the service destination. |
|||
Sets the protocol for the rule |
|||
Configure the following additional elements for the distributed firewall.