, ,

How to Deploy vDefend Distributed Firewall in VCF 9.1 (VCF 9.1 Deployment Step by Step Guide, Part 13)

How to enable and configure vDefend in VCF 9.1, the NSX Distributed Firewall and optional Distributed IDS and IPS, with security groups, rules, signatures and verification.

VCF 9.1 Deployment · Part 13 of 22
Optional
vDefend is the NSX security layer, the Distributed Firewall for east to west traffic plus optional Distributed IDS and IPS. There is no separate appliance to deploy, you enable and configure it on the NSX in a domain. It depends on NSX and a vDefend firewall license.
Before you deploy. Work through the VCF 9.x pre-installation checklist and confirm NSX is healthy first.

TL;DR · Key Takeaways

  • Optional security layer, configured on NSX rather than deployed as an appliance.
  • The Distributed Firewall controls east to west traffic between workloads down to the individual VM.
  • Distributed IDS and IPS is optional and needs the Distributed Firewall enabled first.
  • Turbo Mode IDS and IPS is the default on all VCF 9.1 ESX hosts for higher inspection throughput.
  • IDS and IPS needs a current signature set, pulled through an NSX proxy or updated manually.
  • A vDefend firewall license is required beyond the base NSX entitlement.

In this part you turn on vDefend, the security services that run inside NSX. The Distributed Firewall segments east to west traffic between workloads, and Distributed IDS and IPS inspects that traffic for threats. Neither is a separate appliance. You enable and configure both on the NSX that your management domain or a workload domain already runs, so this part is configuration rather than a bring-up.

Confirm NSX and licensing, plan your segmentation, build the firewall policy, then optionally add intrusion detection and prevention. Enable the Distributed Firewall before you touch IDS and IPS, because the inspection engine rides on the firewall data path.

Prerequisites

ItemRequirement
NSXHealthy, managing the domain you want to protect
LicensevDefend firewall license, plus the threat prevention add-on for IDS and IPS
Signature accessAn NSX proxy for internet updates, or a plan to update signatures manually
Host readinessVCF 9.1 ESX hosts, which run Turbo Mode IDS and IPS by default

Step 1 confirm NSX and licensing

Start from a healthy NSX with the right entitlement.

  1. Log in to NSX Manager for the domain you want to protect.
  2. Open System, then Licenses, and confirm a vDefend firewall license is applied.
  3. Add the threat prevention entitlement if you plan to use IDS and IPS.

Step 2 plan segmentation and groups

Group workloads before you write rules.

  1. Open Inventory, then Groups.
  2. Create security groups using dynamic membership such as tags, names or segments.
  3. Map each application tier to a group so rules follow the workload.

Step 3 create Distributed Firewall policies

Build the east to west policy from the groups.

  1. Open Security, then Distributed Firewall.
  2. Click Add Policy and name the policy for the application.
  3. Click Add Rule and set source, destination and service using your groups.
  4. Set the rule Action to Allow or Drop as your design requires.
  5. Click Publish.

Step 4 set the default rule

Decide what happens to traffic no rule matches.

  1. Locate the Default Layer3 rule at the bottom of the Distributed Firewall.
  2. Keep it at Allow while you build and test policy.
  3. Change it to Drop only after your allow rules are proven, to move to a deny by default posture.
  4. Click Publish.

Step 5 enable Distributed IDS and IPS

Add intrusion detection and prevention on top of the firewall.

  1. Open Security, then Distributed IDS IPS and Malware Prevention.
  2. Open Settings and configure the NSX proxy for signature updates, or plan a manual update.
  3. Click Download to pull the latest signature set.
  4. Under Enable, select the hosts or clusters where inspection should run.

Step 6 create IDS and IPS rules

Point inspection at the traffic you care about.

  1. Click Add Policy in the IDS and IPS section.
  2. Click Add Rule and scope it to your security groups.
  3. Set the Mode to Detect only, or Detect and Prevent to block matches.
  4. Click Publish.

Step 7 verify enforcement

Confirm rules apply and events appear.

  1. Generate test traffic between two workloads in different groups.
  2. Confirm the Distributed Firewall rule hit counters increment.
  3. Confirm IDS and IPS events appear for a test signature.
CapabilityWhat it doesNeeds
Distributed FirewallEast to west segmentation per workloadvDefend firewall license
Distributed IDS and IPSInspects traffic for threats, detect or preventFirewall enabled, threat prevention license, signatures
Turbo ModeHigher inspection throughput, default on 9.1 hostsVCF 9.1 ESX hosts
vDefend capabilities in VCF 9.1 and what each one requires.
Workload AWorkload BDistributed Firewallwith IDS and IPS
Figure 1. East to west traffic between workloads passes through the Distributed Firewall, where IDS and IPS inspects it.
flowchart TD
A[Confirm NSX and license] --> B[Plan groups and segmentation]
B --> C[Create Distributed Firewall policies]
C --> D[Set the default rule]
D --> E[Enable IDS and IPS and signatures]
E --> F[Create IDS and IPS rules]
F --> G[Verify hits and events]

Verify enforcement

Send test traffic between two groups and confirm the Distributed Firewall rule counters move. For IDS and IPS, trigger a benign test signature and confirm the event shows in the security dashboard. If rules do not apply, the NSX DFW troubleshooting guide covers applied-to scope and the default-rule trap.

Plan your segmentation model

The firewall is only as good as the groups behind it, so decide on a model before you write rules. A common approach segments by application and by environment, so production and test cannot reach each other and each application tier only talks to the tiers it must. Use dynamic groups based on tags or names so membership follows the workload as it moves or scales, rather than static lists you have to maintain. Build and test the allow rules with the default rule at Allow, then switch the default to Drop for a deny by default posture once the allow set is proven. VCF Operations for Networks helps here, because it shows the real east to west traffic before you commit rules.

ModelWhat it isolatesGroup basis
By environmentProduction from test and devEnvironment tag
By applicationOne app from anotherApplication tag or segment
By tierWeb, app and database tiersTier tag with dynamic membership

Turbo Mode and performance

VCF 9.1 runs Distributed IDS and IPS in Turbo Mode by default on every ESX host, which raises inspection throughput so you can inspect more traffic without the penalty older releases carried. Even so, inspection is not free. Scope IDS and IPS rules to the traffic that matters rather than inspecting everything, keep the signature set current so you are not spending cycles on stale rules, and start in detect only mode to learn what fires before you switch to prevent. That order avoids blocking good traffic while you tune.

Notes and best practices

Start every firewall project with groups, not rules, because dynamic groups based on tags let policy follow a workload as it moves or scales, while static lists rot the day someone builds a new VM. Keep the default rule at Allow while you write and test the allow set, then switch it to Drop for a deny by default posture only once the allow rules are proven, since flipping it early blocks good traffic and erodes trust in the project. Scope IDS and IPS to the segments that carry sensitive traffic rather than inspecting everything, and start in detect only mode so you learn what fires before you let it block. Keep the signature set current through the NSX proxy, because stale signatures spend host cycles without catching modern threats. Review rule hit counters regularly and retire rules that never match, so the policy stays readable.

Common errors and fixes

IDS and IPS will not enable.
The Distributed Firewall must be enabled first, because inspection rides on the firewall data path. Enable and publish firewall policy, then enable IDS and IPS.

Signatures are stale.
Without internet the signature set does not refresh. Configure the NSX proxy for updates, or import signatures manually on a schedule.

Traffic dropped after the default rule change.
Moving the default rule to Drop before your allow rules are complete blocks good traffic. Return it to Allow, finish and test the allow rules, then switch to Drop.

No license for prevention.
IDS and IPS needs the threat prevention entitlement. Apply it in NSX Licenses, then retry.

Common questions

Is vDefend a separate appliance
No. It is the NSX security layer, configured on your existing NSX rather than deployed as its own appliance.

Does IDS and IPS need the firewall
Yes. Distributed IDS and IPS requires the Distributed Firewall to be enabled first.

What is Turbo Mode
A higher throughput inspection mode that is the default on all VCF 9.1 ESX hosts.

Do I need extra licensing
Yes. A vDefend firewall license is required, and threat prevention is a further entitlement for IDS and IPS.

VCF 9.1 Deployment · Part 13 of 22
« Previous: Part 12  |  Complete Guide  |  Next: Part 14 »

References

About The Author


Discover more from Journal of Intelligent Infrastructure

Subscribe to get the latest posts sent to your email.

Leave a Reply

Your email address will not be published. Required fields are marked *

Architect’s Toolkit

About the Author

Dr. Pranay Jha is a Cloud and AI Consultant with 18+ years of experience in hybrid cloud, virtualization, and enterprise infrastructure transformation. He specializes in VMware technologies, multi-cloud strategy, and Generative AI solutions. He holds a PhD in Computer Applications with research focused on Cloud and AI, has published multiple research papers, and has been a VMware vExpert since 2016 and a VMUG Community Leader.

Discover more from Journal of Intelligent Infrastructure

Subscribe now to keep reading and get access to the full archive.

Continue reading