Create NSX security groups and policies

See Deploy Deep Security for steps that you must perform before proceeding with the steps in this article.

Organize your VMs and Resources into an NSX Security Group in order to assign an NSX Security Policy to them.

Create an NSX Security Group

  1. In vSphere Web Client, go to Home > Networking & Security > Service Composer > Security Groups .
  2. Click New Security Group():
  3. In the Name and description options, give a name to your security group.
  4. Define Dynamic Membership: If you wish to restrict membership in this group based on certain filtering criteria, enter those criteria here.
  5. There are many ways to include or exclude objects in a NSX Security Group, but for this example, we will simply include the NSX cluster that contains the hosts and VMs that we want to protect. In the Select objects to include options, select Cluster from the Object Type menu, and move the NSX Cluster that contains the VMs to protect to the Selected Objects column.
  6. Click Finish to create the new Security Group and return to the Security Groups tab to see the newly listed Security Group

Create an NSX Security Policy

Next, you need to create a NSX Security Policy with Deep Security enabled as both anEndpoint Service and as a Network Introspection service.

If you are using only the anti-malware or intrusion prevention modules, you will only need to enable the Guest Introspection service. If you are using only the web reputation, firewall, or intrusion prevention modules, you will only need to enable the Network Introspection services.

  1. In vSphere Web Client, go to Home > Networking and Security > Service Composer > Security Policies.
  2. Click New Security Policy.
  3. Name and Description: give a name to the new policy and then click Next.



  4. Guest Introspection Services: click the green plus sign () to add an Endpoint Service. Provide a name for the Endpoint Service and select the following settings:
    • Action: Apply
    • Service Name: Trend Micro Deep Security
    • Service Profile: If you are using event-based tasks to handle the creation and protection of VMs, select "Default (EBT)". If you have synchronized your Deep Security policies with NSX Service Profiles, select the Service Profile that matches the Deep Security policy that you want to apply.
    • State: Enabled
    • Enforce: Yes


    Click OK, then click Next.
  5. Firewall Rules: do not make any changes. Click Next.
  6. Network Introspection Services: You will be adding two Network Introspection Services to the NSX Security Policy: a first one for outbound traffic, and a second one for inbound traffic.
    1. For the first, outbound, service, in the Network Introspection Services options, click the green plus sign to create a new service. In the Add Network Introspection Service window, provide a name for the service (preferably one that includes the word "Outbound") and select the following settings:
      • Action: Redirect to service
      • Service Name: Trend Micro Deep Security
      • Profile: Select the same NSX Service Profile as you did in step 3.
      • Source: Policy's Security Groups
      • Destination: Any
      • Service: Any
      • State: Enabled
      • Log: Do not log
    2. For the second, inbound, service, in the Network Introspection Services options, click the green plus sign to create a new service. In the Add Network Introspection Service window, provide a name for the service (preferably one that includes the word "Inbound") and select the following settings:
      • Action: Redirect to service
      • Service Name: Trend Micro Deep Security
      • Profile: Select the same NSX Service Profile as you did in step 3.
      • Source: Any
      • Destination: Policy's Security Groups
      • Service: Any
      • State: Enabled
      • Log: Do not log
    3. Click OK in the Add Network Inspection Service window, and then click Finish to complete and close the New Security Policy window.

You have now created your NSX Security Policy for Deep Security.

Apply the NSX Security Policy to the NSX Security Group

You must now apply the Security Policy to the Security Group containing the VMs you want to protect.

The virtual machines you want to protect with Deep Security must belong to a NSX Security Group. (For a quick guide to creating NSX Security Groups, see Create NSX security groups and policies.)
  1. Stay on the Security Policies tab of the Home > Networking & Security > Service Composer page in your vSphere Web Client. With the new Security Policy selected, click the Apply Security Policy icon ().
  2. In the Apply Policy to Security Groups window, select the Security Group that contains the VMs you want to protect and click OK.

The NSX Security Policy is now applied to the VMs in the NSX Security Group. When VMs are moved into the security group, they will get the NSX Security Group tag and the Deep Security Manager will automatically activate the VMs and assign the policy to them.