You create a security group at the NSX Manager level.
- Log in to the vSphere Web Client.
- Click Networking & Security and then click Service Composer.
- Click the Security Groups tab and then click the Add Security Group icon.
- Type a name and description for the security group and click Next.
- On the Dynamic Membership page, define the criteria that an object must meet for it to be added to the security group you are creating.
For example, you may include a criteria to add all members tagged with the specified security tag (such as AntiVirus.virusFound) to the security group.
Or you can add all virtual machines containing the name W2008 AND virtual machines that are in the logical switch global_wire to the security group.
Security tags are case sensitive.Note:
If you define a security group by virtual machines that have a certain security tag applied to them, you can create a dynamic or conditional workflow. The moment the tag is applied to a virtual machine, the virtual machine is automatically added to that security group.
- Click Next.
- On the Select objects to include page, select the object type from the drop-down.
- Double-click the object you want to add to the include list. You can include the following objects in a security group.
Other security groups to nest within the security group you are creating.
The AD configuration for NSX security groups is different from the AD configuration for vSphere SSO. NSX AD group configuration is for end users accessing guest virtual machines while vSphere SSO is for administrators using vSphere and NSX.
Service Composer allows use of Security Groups that contain MAC Sets in Policy configurations, however, Service Composer fails to enforce rules for that specific MAC Set. Service Composer works on Layer 3 and does not support Layer 2 constructs.
Distributed Virtual Port Group
The objects selected here are always included in the security group regardless of whether or not they match the dynamic criteria.
When you add a resource to a security group, all associated resources are automatically added. For example, when you select a virtual machine, the associated vNIC is automatically added to the security group.
- Click Next and double-click the objects that you want to exclude from the security group.
The objects selected here are always excluded from the security group even if they match the dynamic criteria or are selected in the include list .
- Click Finish.
Membership of a security group is determined as follows:
which means that inclusion items are first added to the expression result. Exclusion items are then subtracted from the combined result.