nsx_62_admin
nsx_62_admin
nsx_62_admin
Guide
Update 3
Modified on 20 NOV 2017
VMware NSX Data Center for vSphere 6.2
NSX Administration Guide
You can find the most up-to-date technical documentation on the VMware website at:
https://docs.vmware.com/
If you have comments about this documentation, submit your feedback to
docfeedback@vmware.com
VMware, Inc.
3401 Hillview Ave.
Palo Alto, CA 94304
www.vmware.com
Copyright © 2010 – 2017 VMware, Inc. All rights reserved. Copyright and trademark information.
VMware, Inc. 2
Contents
3 Overview of NSX 14
NSX Components 15
NSX Edge 18
NSX Services 21
5 Transport Zones 34
Add a Transport Zone 36
View and Edit a Transport Zone 38
Expand a Transport Zone 38
Contract a Transport Zone 39
6 Logical Switches 40
Add a Logical Switch 41
Connect Virtual Machines to a Logical Switch 46
Test Logical Switch Connectivity 46
Prevent Spoofing on a Logical Switch 46
Edit a Logical Switch 47
Logical Switch Scenario 47
VMware, Inc. 3
NSX Administration Guide
8 L2 Bridges 59
Add L2 Bridge 60
Add L2 Bridge to a Logically Routed Environment 60
9 Routing 62
Add a Logical (Distributed) Router 62
Add an Edge Services Gateway 76
Specify Global Configuration 86
NSX Edge Configuration 88
Add a Static Route 104
Configure OSPF on a Logical (Distributed) Router 105
Configure OSPF on an Edge Services Gateway 112
Configure BGP 118
Configure IS-IS Protocol 122
Configure Route Redistribution 124
View the NSX Manager Locale ID 125
Configure Locale ID on a Universal Logical (Distributed) Router 125
Configure Locale ID on a Host or Cluster 126
VMware, Inc. 4
NSX Administration Guide
VMware, Inc. 5
NSX Administration Guide
VMware, Inc. 6
NSX Administration Guide
VMware, Inc. 7
NSX Administration Guide
®
The NSX Administration Guide describes how to configure, monitor, and maintain the VMware NSX™
system by using the NSX Manager user interface and the vSphere Web Client. The information includes
step-by-step configuration instructions, and suggested best practices.
Intended Audience
This manual is intended for anyone who wants to install or use NSX in a VMware vCenter environment.
The information in this manual is written for experienced system administrators who are familiar with
virtual machine technology and virtual datacenter operations. This manual assumes familiarity with
VMware Infrastructure 5.x, including VMware ESX, vCenter Server, and the vSphere Web Client.
VMware, Inc. 8
System Requirements for NSX 1
Before you install or upgrade NSX, consider your network configuration and resources. You can install
one NSX Manager per vCenter Server, one instance of Guest Introspection and Data Security per ESXi™
host, and multiple NSX Edge instances per datacenter.
Hardware
Table 1‑1. Hardware Requirements
Appliance Memory vCPU Disk Space
NSX Controller 4 GB 4 20 GB
Guest 1 GB 2 4 GB
Introspection
As a general guideline, you should increase NSX Manager resources to 8 vCPU and 24 GB of RAM if
your NSX managed environment contains more than 256 hypervisors or more than 2000 VMs.
For information about increasing the memory and vCPU allocation for your virtual appliances, see
Allocate Memory Resources, and Change the Number of Virtual CPUs in vSphere Virtual Machine
Administration.
VMware, Inc. 9
NSX Administration Guide
Software
For the latest interoperability information, see the Product Interoperability Matrixes at
http://partnerweb.vmware.com/comp_guide/sim/interop_matrix.php.
For recommended versions of NSX, vCenter Server, and ESXi, see the release notes at
https://docs.vmware.com/en/VMware-NSX-for-vSphere/index.html.
Note that for an NSX Manager to participate in a cross-vCenter NSX deployment the following conditions
are required:
Component Version
To manage all NSX Managers in a cross-vCenter NSX deployment from a single vSphere Web Client, you
must connect your vCenter Servers in Enhanced Linked Mode. See Using Enhanced Linked Mode in
vCenter Server and Host Management .
To check the compatibility of partner solutions with NSX, see the VMware Compatibility Guide for
Networking and Security at
http://www.vmware.com/resources/compatibility/search.php?deviceCategory=security.
n Access to the datastore where you store virtual machine files, and the account permissions to copy
files to that datastore
n Cookies enabled on your Web browser, to access the NSX Manager user interface
n From NSX Manager, ensure port 443 is accessible from the ESXi host, the vCenter Server, and the
NSX appliances to be deployed. This port is required to download the OVF file on the ESXi host for
deployment.
n A Web browser that is supported for the version of vSphere Web Client you are using. See Using the
vSphere Web Client in the vCenter Server and Host Management documentation for details.
VMware, Inc. 10
Ports and Protocols Required by
NSX 2
The following ports must be open for NSX to operate properly.
ESXi Host NSX Controller 1234 TCP User World Agent No Yes
Connection
NSX Controller NSX Controller 2878, TCP Controller Cluster - No Yes IPsec
2888, State Sync
3888
NSX Controller NSX Controller 30865 TCP Controller Cluster - No Yes IPsec
State Sync
VMware, Inc. 11
NSX Administration Guide
REST Client NSX Manager 443 TCP NSX Manager No Yes User/Password
REST API
ESXi Host ESXi Host 6999 UDP ARP on VLAN LIFs No Yes
VMware, Inc. 12
NSX Administration Guide
Primary NSX NSX Universal 443 TCP NSX Controller No Yes User/Password
Manager Controller REST API
Cluster
Secondary NSX NSX Universal 443 TCP NSX Controller No Yes User/Password
Manager Controller REST API
Cluster
ESXi Host NSX Universal 1234 TCP NSX Control Plane No Yes
Controller Protocol
Cluster
VMware, Inc. 13
Overview of NSX 3
IT organizations have gained significant benefits as a direct result of server virtualization. Server
consolidation reduced physical complexity, increased operational efficiency and the ability to dynamically
re-purpose underlying resources to quickly and optimally meet the needs of increasingly dynamic
business applications.
VMware’s Software Defined Data Center (SDDC) architecture is now extending virtualization technologies
®
across the entire physical data center infrastructure. VMware NSX , the network virtualization platform, is
a key product in the SDDC architecture. With NSX, virtualization delivers for networking what it has
already delivered for compute and storage. In much the same way that server virtualization
programmatically creates, snapshots, deletes and restores software-based virtual machines (VMs), NSX
network virtualization programmatically creates, snapshots, deletes, and restores software-based virtual
networks. The result is a completely transformative approach to networking that not only enables data
center managers to achieve orders of magnitude better agility and economics, but also allows for a vastly
simplified operational model for the underlying physical network. With the ability to be deployed on any IP
network, including both existing traditional networking models and next-generation fabric architectures
from any vendor, NSX is a completely non-disruptive solution. In fact, with NSX, the physical network
infrastructure you already have is all you need to deploy a software-defined data center.
Application Workload
VMware, Inc. 14
NSX Administration Guide
The figure above draws an analogy between compute and network virtualization. With server
virtualization, a software abstraction layer (server hypervisor) reproduces the familiar attributes of an x86
physical server (for example, CPU, RAM, Disk, NIC) in software, allowing them to be programmatically
assembled in any arbitrary combination to produce a unique VM in a matter of seconds.
With network virtualization, the functional equivalent of a network hypervisor reproduces the complete set
of Layer 2 through Layer 7 networking services (for example, switching, routing, access control,
firewalling, QoS, and load balancing) in software. As a result, these services can be programmatically
assembled in any arbitrary combination, to produce unique, isolated virtual networks in a matter of
seconds.
With network virtualization, benefits similar to server virtualization are derived. For example, just as VMs
are independent of the underlying x86 platform and allow IT to treat physical hosts as a pool of compute
capacity, virtual networks are independent of the underlying IP network hardware and allow IT to treat the
physical network as a pool of transport capacity that can be consumed and repurposed on demand.
Unlike legacy architectures, virtual networks can be provisioned, changed, stored, deleted, and restored
programmatically without reconfiguring the underlying physical hardware or topology. By matching the
capabilities and benefits derived from familiar server and storage virtualization solutions, this
transformative approach to networking unleashes the full potential of the software-defined data center.
NSX can be configured through the vSphere Web Client, a command-line interface (CLI), and a REST
API.
n NSX Components
n NSX Edge
n NSX Services
NSX Components
This section describes the components of the NSX solution.
VMware, Inc. 15
NSX Administration Guide
CMP
Consumption
NSX Manager
Management
plane
NSX Controller
Control plane
Run-time state
NSX Edge
vDS
VXLAN Distributed Firewall
Logical Router
Note that a cloud management platform (CMP) is not a component of NSX, but NSX provides integration
into virtually any CMP via the REST API and out-of-the-box integration with VMware CMPs.
Data Plane
The NSX data plane consists of the NSX vSwitch, which is based on the vSphere Distributed Switch
(VDS) with additional components to enable services. NSX kernel modules, userspace agents,
configuration files, and install scripts are packaged in VIBs and run within the hypervisor kernel to provide
services such as distributed routing and logical firewall and to enable VXLAN bridging capabilities.
The NSX vSwitch (vDS-based) abstracts the physical network and provides access-level switching in the
hypervisor. It is central to network virtualization because it enables logical networks that are independent
of physical constructs, such as VLANs. Some of the benefits of the vSwitch are:
n Support for overlay networking with protocols (such as VXLAN) and centralized network
configuration. Overlay networking enables the following capabilities:
n Reduced use of VLAN IDs in the physical network.
n Creation of a flexible logical Layer 2 (L2) overlay over existing IP networks on existing physical
infrastructure without the need to re-architect any of the data center networks
n Application workloads and virtual machines that are agnostic of the overlay network and operate
as if they were connected to a physical L2 network
VMware, Inc. 16
NSX Administration Guide
The logical routers can provide L2 bridging from the logical networking space (VXLAN) to the physical
network (VLAN).
The gateway device is typically an NSX Edge virtual appliance. NSX Edge offers L2, L3, perimeter
firewall, load balancing, and other services such as SSL VPN and DHCP.
Control Plane
The NSX control plane runs in the NSX Controller cluster. NSX Controller is an advanced distributed state
management system that provides control plane functions for NSX logical switching and routing functions.
It is the central control point for all logical switches within a network and maintains information about all
hosts, logical switches (VXLANs), and distributed logical routers.
The controller cluster is responsible for managing the distributed switching and routing modules in the
hypervisors. The controller does not have any dataplane traffic passing through it. Controller nodes are
deployed in a cluster of three members to enable high-availability and scale. Any failure of the controller
nodes does not impact any data-plane traffic.
NSX Controllers work by distributing network information to hosts. To achieve a high level of resiliency the
NSX Controller is clustered for scale out and HA. NSX Controllers must be deployed in a three-node
cluster. The three virtual appliances provide, maintain, and update the state of all network functioning
within the NSX domain. NSX Manager is used to deploy NSX Controller nodes.
The three NSX Controller nodes form a control cluster. The controller cluster requires a quorum (also
called a majority) in order to avoid a "split-brain scenario." In a split-brain scenario, data inconsistencies
originate from the maintenance of two separate data sets that overlap. The inconsistencies can be
caused by failure conditions and data synchronization issues. Having three controller nodes ensures data
redundancy in case of failure of one NSX Controller node.
n API provider
n Persistence server
n Switch manager
n Logical manager
n Directory server
Each role has a master controller node. If a master controller node for a role fails, the cluster elects a new
master for that role from the available NSX Controller nodes. The new master NSX Controller node for
that role reallocates the lost portions of work among the remaining NSX Controller nodes.
NSX supports three logical switch control plane modes: multicast, unicast and hybrid. Using a controller
cluster to manage VXLAN-based logical switches eliminates the need for multicast support from the
physical network infrastructure. You don’t have to provision multicast group IP addresses, and you also
don’t need to enable PIM routing or IGMP snooping features on physical switches or routers. Thus, the
unicast and hybrid modes decouple NSX from the physical network. VXLANs in unicast control-plane
mode do not require the physical network to support multicast in order to handle the broadcast, unknown
VMware, Inc. 17
NSX Administration Guide
unicast, and multicast (BUM) traffic within a logical switch. The unicast mode replicates all the BUM traffic
locally on the host and requires no physical network configuration. In the hybrid mode, some of the BUM
traffic replication is offloaded to the first hop physical switch to achieve better performance. Hybrid mode
requires IGMP snooping on the first-hop switch and access to an IGMP querier in each VTEP subnet.
Management Plane
The NSX management plane is built by the NSX Manager, the centralized network management
component of NSX. It provides the single point of configuration and REST API entry-points.
The NSX Manager is installed as a virtual appliance on any ESX™ host in your vCenter Server
environment. NSX Manager and vCenter have a one-to-one relationship. For every instance of NSX
Manager, there is one vCenter Server. This is true even in a cross-vCenter NSX environment.
In a cross-vCenter NSX environment, there is both a primary NSX Manager and one or more secondary
NSX Managers. The primary NSX Manager allows you to create and manage universal logical switches,
universal logical (distributed) routers and universal firewall rules. Secondary NSX Managers are used to
manage networking services that are local to that specific NSX Manager. There can be up to seven
secondary NSX Managers associated with the primary NSX Manager in a cross-vCenter NSX
environment.
Consumption Platform
The consumption of NSX can be driven directly through the NSX Manager user interface, which is
available in the vSphere Web Client. Typically end users tie network virtualization to their cloud
management platform for deploying applications. NSX provides rich integration into virtually any CMP
through REST APIs. Out-of-the-box integration is also available through VMware vCloud Automation
Center, vCloud Director, and OpenStack with the Neutron plug-in for NSX.
NSX Edge
You can install NSX Edge as an edge services gateway (ESG) or as a distributed logical router (DLR).
The number of edge appliances including ESGs and DLRs is limited to 250 on a host.
Uplink interfaces of ESGs connect to uplink port groups that have access to a shared corporate network
or a service that provides access layer networking. Multiple external IP addresses can be configured for
load balancer, site-to-site VPN, and NAT services.
VMware, Inc. 18
NSX Administration Guide
A logical router can have eight uplink interfaces and up to a thousand internal interfaces. An uplink
interface on a DLR generally peers with an ESG, with an intervening Layer 2 logical transit switch
between the DLR and the ESG. An internal interface on a DLR peers with a virtual machine hosted on an
ESX hypervisor with an intervening logical switch between the virtual machine and the DLR.
n The DLR control plane is provided by the DLR virtual appliance (also called a control VM). This VM
supports dynamic routing protocols (BGP and OSPF), exchanges routing updates with the next Layer
3 hop device (usually the edge services gateway) and communicates with the NSX Manager and the
NSX Controller cluster. High-availability for the DLR virtual appliance is supported through active-
standby configuration: a pair of virtual machines functioning in active/standby modes are provided
when you create the DLR with HA enabled.
n At the data-plane level, there are DLR kernel modules (VIBs) that are installed on the ESXi hosts that
are part of the NSX domain. The kernel modules are similar to the line cards in a modular chassis
supporting Layer 3 routing. The kernel modules have a routing information base (RIB) (also known as
a routing table) that is pushed from the controller cluster. The data plane functions of route lookup
and ARP entry lookup are performed by the kernel modules. The kernel modules are equipped with
logical interfaces (called LIFs) connecting to the different logical switches and to any VLAN-backed
port-groups. Each LIF has assigned an IP address representing the default IP gateway for the logical
L2 segment it connects to and a vMAC address. The IP address is unique for each LIF, whereas the
same vMAC is assigned to all the defined LIFs.
VMware, Inc. 19
NSX Administration Guide
1 A DLR instance is created from the NSX Manager UI (or with API calls), and routing is enabled,
leveraging either OSPF or BGP.
2 The NSX Controller leverages the control plane with the ESXi hosts to push the new DLR
configuration including LIFs and their associated IP and vMAC addresses.
3 Assuming a routing protocol is also enabled on the next-hop device (an NSX Edge [ESG] in this
example), OSPF or BGP peering is established between the ESG and the DLR control VM. The ESG
and the DLR can then exchange routing information:
n The DLR control VM can be configured to redistribute into OSPF the IP prefixes for all the
connected logical networks (172.16.10.0/24 and 172.16.20.0/24 in this example). As a
consequence, it then pushes those route advertisements to the NSX Edge. Notice that the next
hop for those prefixes is not the IP address assigned to the control VM (192.168.10.3) but the IP
address identifying the data-plane component of the DLR (192.168.10.2). The former is called the
DLR "protocol address," whereas the latter is the "forwarding address."
n The NSX Edge pushes to the control VM the prefixes to reach IP networks in the external
network. In most scenarios, a single default route is likely to be sent by the NSX Edge, because it
represents the single point of exit toward the physical network infrastructure.
4 The DLR control VM pushes the IP routes learned from the NSX Edge to the controller cluster.
VMware, Inc. 20
NSX Administration Guide
5 The controller cluster is responsible for distributing routes learned from the DLR control VM to the
hypervisors. Each controller node in the cluster takes responsibility of distributing the information for a
particular logical router instance. In a deployment where there are multiple logical router instances
deployed, the load is distributed across the controller nodes. A separate logical router instance is
usually associated with each deployed tenant.
6 The DLR routing kernel modules on the hosts handle the data-path traffic for communication to the
external network by way of the NSX Edge.
NSX Services
The NSX components work together to provide the following functional services.
Logical Switches
A cloud deployment or a virtual data center has a variety of applications across multiple tenants. These
applications and tenants require isolation from each other for security, fault isolation, and non-overlapping
IP addresses. NSX allows the creation of multiple logical switches, each of which is a single logical
broadcast domain. An application or tenant virtual machine can be logically wired to a logical switch. This
allows for flexibility and speed of deployment while still providing all the characteristics of a physical
network's broadcast domains (VLANs) without physical Layer 2 sprawl or spanning tree issues.
A logical switch is distributed and can span across all hosts in vCenter (or across all hosts in a cross-
vCenter NSX environment). This allows for virtual machine mobility (vMotion) within the data center
without limitations of the physical Layer 2 (VLAN) boundary. The physical infrastructure is not constrained
by MAC/FIB table limits, because the logical switch contains the broadcast domain in software.
Logical Routers
Routing provides the necessary forwarding information between Layer 2 broadcast domains, thereby
allowing you to decrease the size of Layer 2 broadcast domains and improve network efficiency and
scale. NSX extends this intelligence to where the workloads reside for East-West routing. This allows
more direct VM-to-VM communication without the costly or timely need to extend hops. At the same time,
NSX logical routers provide North-South connectivity, thereby enabling tenants to access public networks.
Logical Firewall
Logical Firewall provides security mechanisms for dynamic virtual data centers. The Distributed Firewall
component of Logical Firewall allows you to segment virtual datacenter entities like virtual machines
based on VM names and attributes, user identity, vCenter objects like datacenters, and hosts, as well as
traditional networking attributes like IP addresses, VLANs, and so on. The Edge Firewall component
helps you meet key perimeter security requirements, such as building DMZs based on IP/VLAN
constructs, and tenant-to-tenant isolation in multi-tenant virtual data centers.
The Flow Monitoring feature displays network activity between virtual machines at the application protocol
level. You can use this information to audit network traffic, define and refine firewall policies, and identify
threats to your network.
VMware, Inc. 21
NSX Administration Guide
Service Composer
Service Composer helps you provision and assign network and security services to applications in a
virtual infrastructure. You map these services to a security group, and the services are applied to the
virtual machines in the security group using a Security Policy.
Data Security provides visibility into sensitive data stored within your organization's virtualized and cloud
environments and reports any data security violations.
NSX Extensibility
3rd-party solution providers can integrate their solutions with the NSX platform, thus enabling customers
to have an integrated experience across VMware products and partner solutions. Data center operators
can provision complex, multi-tier virtual networks in seconds, independent of the underlying network
topology or components.
VMware, Inc. 22
Overview of Cross-vCenter
Networking and Security 4
NSX 6.2 allows you to manage multiple vCenter NSX environments from a single primary NSX Manager.
There are many reasons multiple vCenter Server systems may be required, for example:
n To overcome scale limits of vCenter Server
n To accommodate products that require dedicated or multiple vCenter Server systems, such as
Horizon View or Site Recovery Manager
n To separate environments, for example by business unit, tenant, organization, or environment type
In NSX 6.1 and earlier, if multiple vCenter NSX environments are deployed, they must be managed
separately. In NSX 6.2 you can create universal objects on the primary NSX Manager, which are
synchronized across all vCenter Servers systems in the environment.
VMware, Inc. 23
NSX Administration Guide
n Increased span of NSX logical networks. The same logical networks are available across the vCenter
NSX environment, so it's possible for VMs on any cluster on any vCenter Server system to be
connected to the same logical network.
n Centralized security policy management. Firewall rules are managed from one centralized location,
and apply to the VM regardless of location or vCenter Server system.
n Support of new mobility boundaries in vSphere 6, including cross vCenter and long distance vMotion
across logical switches.
n Enhanced support for multi-site environments, from metro distance to 150ms RTT. This includes both
active-active and active-passive datacenters.
n Increased mobility of workloads - VMs can be vMotioned across vCenter Servers without having to
reconfigure the VM or change firewall rules.
The primary NSX Manager is used to deploy a universal controller cluster that provides the control plane
for the cross-vCenter NSX environment. The secondary NSX Managers do not have their own controller
clusters.
The primary NSX Manager can create universal objects, such as universal logical switches. These
objects are synchronized to the secondary NSX Managers by the NSX Universal Synchronization
Service. You can view these objects from the secondary NSX Managers, but you cannot edit them there.
You must use the primary NSX Manager to manage universal objects. The primary NSX Manager can be
used to configure any of the secondary NSX Managers in the environment.
On both primary and secondary NSX Managers, you can create objects that are local to that specific
vCenter NSX environment, such as logical switches, and logical (distributed) routers. They will exist only
within the vCenter NSX environment in which they were created. They will not be visible on the other NSX
Managers in the cross-vCenter NSX environment.
VMware, Inc. 24
NSX Administration Guide
NSX Managers can be assigned the standalone role. This is equivalent to pre-NSX 6.2 environments with
a single NSX Manager and single vCenter. A standalone NSX Manager cannot create universal objects.
Note If you change the role of a primary NSX Manager to standalone and any universal objects exist in
the NSX environment, the NSX Manager will be assigned the transit role. The universal objects remain,
but they cannot be changed, and no other universal objects can be created. You can delete universal
objects from the transit role. The transit role should only be used temporarily, for example, when changing
which NSX Manager is the primary.
Universal
Controller
vCenter with NSX Cluster vCenter with NSX vCenter with NSX
Manager (Primary) Manager (Secondary) Manager (Secondary)
Universal Logical
Switches
VM VM VM VM VM VM VM VM VM Universal VM VM VM
Distributed
Firewall
VMware, Inc. 25
NSX Administration Guide
Table 4‑1. Support matrix for NSX Services in cross-vCenter NSX (Continued)
Supports cross-vCenter NSX
NSX Service Details synchronization in NSX 6.2?
L2 bridges No
Exclude list No
SpoofGuard No
Edge firewall No
VPN No
Service composer No
Data security No
Network extensibility No
IP pools No
Services Yes
VMware, Inc. 26
NSX Administration Guide
As the universal controller cluster is the only controller cluster for the cross-vCenter NSX environment, it
maintains information about universal logical switches and universal logical routers as well as logical
switches and logical routers that are local to a vCenter NSX pair.
In order to avoid any overlap in object IDs, separate ID pools are maintained for universal objects and
local objects.
The universal transport zone is created on the primary NSX Manager, and is synchronized to the
secondary NSX Managers. Clusters that need to participate in universal logical networks must be added
to the universal transport zone from their NSX Managers.
When you create a logical switch in a universal transport zone, you create a universal logical switch. This
switch is available on all clusters in the universal transport zone. The universal transport zone can include
clusters in any vCenter in the cross-vCenter NSX environment.
The segment ID pool is used to assign VNIs to logical switches, and the universal segment ID pool is
used to assign VNIs to universal logical switches. These pools must not overlap.
You must use a universal logical router to route between universal logical switches. If you need to route
between a universal logical switch and a logical switch, you must use an Edge Services Gateway.
When you create a universal logical router you must choose whether to enable local egress, as this
cannot be changed after creation. Local egress allows you to control what routes are provided to ESXi
hosts based on an identifier, the locale ID.
Each NSX Manager is assigned a locale ID, which is set to the NSX Manager UUID by default. You can
override the locale ID at the following levels:
n Cluster
n ESXi host
If you do not enable local egress the locale ID is ignored and all ESXi hosts connected to the universal
logical router will receive the same routes. Whether or not to enable local egress in a cross-vCenter NSX
environment is a design consideration, but it is not required for all cross-vCenter NSX configurations.
VMware, Inc. 27
NSX Administration Guide
As your datacenter needs scale out, the existing vCenter Server may not scale to the same level. This
may require you to move a set of applications to newer hosts that are managed by a different vCenter
Server. Or you may need to move applications from staging to production in an environment where
staging servers are managed by one vCenter Server and production servers are managed by a different
vCenter Server. Distributed Firewall supports these cross-vCenter vMotion scenarios by replicating
firewall policies that you define for the primary NSX Manager on up to seven secondary NSX Managers.
From the primary NSX Manager you can create a distributed firewall rule section that is marked for
universal synchronization. You can create one universal L2 rule section and one universal L3 rule section.
These sections and their rules are synchronized to all secondary NSX Managers in your environment.
Rules in other sections remain local to the appropriate NSX Manager.
The following Distributed Firewall features are not supported in a cross-vCenter NSX environment:
n Exclude list
n SpoofGuard
n Edge Firewall
Service Composer does not support universal synchronization, so you cannot use it to create distributed
firewall rules in the universal section.
n Universal IP Sets
n Universal Services
Universal network and security objects can be created only from the primary NSX Manager.
VMware, Inc. 28
NSX Administration Guide
Universal security groups can contain only universal IP sets, universal MAC sets, and universal security
groups. Membership is defined by included objects only, you cannot use dynamic membership or
excluded objects.
Universal security groups cannot be created from Service Composer. Security groups created from
Service Composer will be local to that NSX Manager.
Whether the cross-vCenter NSX environment is contained within a single site or crosses multiple sites, a
similar configuration can be used. These two example topologies consist of the following:
n A universal transport zone that includes all clusters in the site or sites.
n Universal logical switches attached to the universal transport zone. Two universal logical switches are
used to connect VMs and one is used as a transit network for the router uplink.
n A universal logical router with an NSX Edge appliance to enable dynamic routing. The universal
logical router appliance has internal interfaces on the VM universal logical switches and an uplink
interface on the transit network universal logical switch.
n Edge Services Gateways (ESGs) connected to the transit network and the physical egress router
network.
VMware, Inc. 29
NSX Administration Guide
Site A
Universal vCenter with NSX vCenter with NSX
Controller Manager (Primary) Manager (Secondary)
Cluster
Physical
Routers
NSX Edge
OSPF, BGP Services
VPN
P
V VPN
P
V
Gateway Universal
Peering x8 Logical Switch
E1 E8 Transit Network
Universal
Logical Router Universal Logical (Distributed) Router
Appliance
Universal Logical
Switches
VM VM VM VM VM VM VM VM VM VM VM VM VM VM VM VM VM VM
VMware, Inc. 30
NSX Administration Guide
Site A Site B
Universal vCenter with NSX vCenter with NSX
Controller Manager (Primary) Manager (Secondary)
Cluster
Physical
Routers
NSX Edge
OSPF, BGP Services
P P Gateway Universal
Logical Switch
VPN V VPN V
Universal
Logical Router Universal Distributed Logical Router
Appliance
Universal Logical
Switches
VM VM VM VM VM VM VM VM VM VM VM VM VM VM VM VM VM VM
Local Egress
All sites in a multi-site cross-vCenter NSX environment can use the same physical routers for egress
traffic. However, if egress routes need to be customized, the local egress feature must be enabled when
the universal logical router is created. This allows you to customize routes at the universal logical router,
cluster, or host level.
This example of a cross-vCenter NSX environment in multiple sites has local egress enabled. The edge
services gateways (ESGs) in each site have a default route that sends traffic out through that site's
physical routers. The universal logical router is configured with two appliances, one in each site. The
appliances learn routes from their site's ESGs. The learned routes are sent to the universal controller
VMware, Inc. 31
NSX Administration Guide
cluster. Because local egress is enabled, the locale ID for that site is associated with those routes. The
universal controller cluster sends routes with matching locale IDs to the hosts. Routes learned on the site
A appliance are sent to the hosts in site A, and routes learned on the site B appliance are sent to the
hosts in site B.
Site A Site B
Universal vCenter with NSX vCenter with NSX
Controller Manager (Primary) Manager (Secondary)
Cluster
Site A Site B
Physical Physical
Routers Routers
Universal Logical
Switches
VM VM VM VM VM VM VM VM VM VM VM VM VM VM VM VM VM VM
VMware, Inc. 32
NSX Administration Guide
It is important to understand what happens when you change an NSX Manager's role.
Set as primary This operation sets the role of an NSX Manager to primary and starts the
synchronization software. This operation fails if the NSX Manager is
already the primary or already a secondary.
Set as standalone (from This operation sets the role of NSX Manager to standalone or transit mode.
secondary) This operation might fail if the NSX Manager already has the standalone
role.
Set as standalone (from This operation resets the primary NSX Manager to standalone or transit
primary) mode, stops the synchronization software, and unregisters all secondary
NSX Managers. This operation might fail if the NSX Manager is already
standalone or if any of the secondary NSX Managers are unreachable.
Disconnect from When you run this operation on a secondary NSX Manager, the secondary
primary NSX Manager is unilaterally disconnected from the primary NSX Manager.
This operation should be used when the primary NSX Manager has
experienced an unrecoverable failure, and you want to register the
secondary NSX Manager to a new primary. If the original primary NSX
Manager does come up again, its database continues to list the secondary
NSX Manager as registered. To resolve this issue, include the force option
when you disconnect or unregister the secondary from the original primary.
The force option removes the secondary NSX Manager from the original
primary NSX Manager's database.
VMware, Inc. 33
Transport Zones 5
A transport zone controls to which hosts a logical switch can reach. It can span one or more vSphere
clusters. Transport zones dictate which clusters and, therefore, which VMs can participate in the use of a
particular network. In a cross-vCenter NSX environment you can create a universal transport zone, which
can include clusters from any vCenter in the environment. You can create only one universal transport
zone.
An NSX environment can contain one or more transport zones based on your requirements. A host
cluster can belong to multiple transport zones. A logical switch can belong to only one transport zone.
NSX does not allow connection of VMs that are in different transport zones. The span of a logical switch
is limited to a transport zone, so virtual machines in different transport zones cannot be on the same
Layer 2 network. A distributed logical router cannot connect to logical switches that are in different
transport zones. After you connect the first logical switch, the selection of further logical switches is limited
to those that are in the same transport zone. Similarly, an edge services gateway (ESG) has access to
logical switches from only one transport zone.
The following guidelines are meant to help you design your transport zones:
NSX does not allow connection of VMs that are in different transport zones. The span of a logical switch
is limited to a transport zone, so virtual machines in different transport zones cannot be on the same
Layer 2 network. A distributed logical router cannot connect to logical switches that are in different
transport zones. After you connect the first logical switch, the selection of further logical switches is limited
to those that are in the same transport zone. Similarly, an edge services gateway (ESG) has access to
logical switches from only one transport zone.
The following guidelines are meant to help you design your transport zones:
n If a cluster requires Layer 3 connectivity, the cluster must be in a transport zone that also contains an
edge cluster, meaning a cluster that has Layer 3 edge devices (distributed logical routers and edge
services gateways).
n Suppose you have two clusters, one for web services and another for application services. To have
VXLAN connectivity between the VMs in these two clusters, both of the clusters must be included in
the transport zone.
VMware, Inc. 34
NSX Administration Guide
n Keep in mind that all logical switches included in the transport zone will be available and visible to all
VMs within the clusters that are included in the transport zone. If a cluster includes secured
environments, you might not want to make it available to VMs in other clusters. Instead, you can
place your secure cluster in a more isolated transport zone.
n The span of the vSphere distributed switch (VDS or DVS) should match the transport zone span.
When creating transport zones in multi-cluster VDS configurations, make sure all clusters in the
selected VDS are included in the transport zone. This is to ensure that the DLR is available on all
clusters where VDS dvPortgroups are available.
The following diagram shows a transport zone correctly aligned to the VDS boundary.
If you do not follow this best practice, keep in mind that if a VDS spans more than one host cluster and
the transport zone includes only one (or a subset) of these clusters, any logical switch included within this
transport zone can access VMs within all clusters spanned by the VDS. In other words, the transport zone
will not be able to constrain the logical switch span to a subset of the clusters. If this logical switch is later
connected to a DLR, you must ensure that the router instances are created only in the cluster included in
the transport zone to avoid any Layer 3 issues.
VMware, Inc. 35
NSX Administration Guide
For example, when a transport zone is not aligned to the VDS boundary, the scope of the logical switches
(5001, 5002 and 5003) and the DLR instances that these logical switches are connected to becomes
disjointed, causing VMs in cluster Comp A to have no access to the DLR logical interfaces (LIFs).
You can have only one universal transport zone in a cross-vCenter NSX environment.
VMware, Inc. 36
NSX Administration Guide
Prerequisites
n In a standalone or single vCenter NSX environment there is only one NSX Manager so you do not
need to select one.
n Objects local to an NSX Manager must be managed from that NSX Manager.
n In a cross-vCenter NSX environment that does not have Enhanced Linked Mode enabled, you must
make configuration changes from the vCenter linked to the NSX Manager that you want to modify.
n In a cross-vCenter NSX environment in Enhanced Linked Mode, you can make configuration changes
to any NSX Manager from any linked vCenter. Select the appropriate NSX Manager from the NSX
Manager drop-down menu.
Procedure
1 In vCenter, navigate to Home > Networking & Security > Installation and select the Logical
Network Preparation tab.
2 Click Transport Zones and click the New Transport Zone ( ) icon.
3 (Optional) To add a universal transport zone, select Mark this object for universal
synchronization.
n Multicast: Multicast IP addresses in the physical network are used for the control plane. This
mode is recommended only when you are upgrading from older VXLAN deployments. Requires
PIM/IGMP in the physical network.
n Unicast: The control plane is handled by an NSX controller. All unicast traffic leverages optimized
headend replication. No multicast IP addresses or special network configuration is required.
n Hybrid: Offloads local traffic replication to the physical network (L2 multicast). This requires
IGMP snooping on the first-hop switch and access to an IGMP querier in each VTEP subnet, but
does not require PIM. The first-hop switch handles traffic replication for the subnet.
Important If you create a universal transport zone and select hybrid as the replication mode, you
must ensure that the multicast address used does not conflict with any other multicast addresses
assigned on any NSX Manager in the environment.
Transport-Zone is a transport zone local to the NSX Manager on which it was created.
VMware, Inc. 37
NSX Administration Guide
What to do next
If you added a universal transport zone, you can add universal logical switches.
If you added a universal transport zone, you can select the secondary NSX Managers and add their
clusters to the universal transport zone.
Procedure
The Summary tab displays the name and description of the transport zone as well as the number of
logical switches associated with it. Transport Zone Details displays the clusters in the transport zone.
2 Click the Edit Settings icon in the Transport Zone Details section to edit the name, description, or
control plane mode of the transport zone.
If you change the transport zone control plane mode, select Migrate existing Logical Switches to
the new control plane mode to change the control plane more for existing logical switches linked to
this transport zone. If you do not select this check box, only the logical switches linked to this
transport zone after the edit is done will have the new control plane mode.
3 Click OK.
Prerequisites
The clusters you add to a transport zone have the network infrastructure installed and are configured for
VXLAN. See the NSX Installation Guide.
Procedure
2
Click the Add Cluster ( ) icon.
VMware, Inc. 38
NSX Administration Guide
3 Select the clusters you want to add to the transport zone and click OK.
Procedure
2
In Transport Zones Details, click the Remove Clusters ( ) icon.
4 Click OK.
VMware, Inc. 39
Logical Switches 6
A cloud deployment or a virtual data center has a variety of applications across multiple tenants. These
applications and tenants require isolation from each other for security, fault isolation, and avoiding
overlapping IP addressing issues. The NSX logical switch creates logical broadcast domains or segments
to which an application or tenant virtual machine can be logically wired. This allows for flexibility and
speed of deployment while still providing all the characteristics of a physical network's broadcast domains
(VLANs) without physical Layer 2 sprawl or spanning tree issues.
A logical switch is distributed and can span arbitrarily large compute clusters. This allows for virtual
machine mobility (vMotion) within the datacenter without limitations of the physical Layer 2 (VLAN)
boundary. The physical infrastructure does not have to deal with MAC/FIB table limits since the logical
switch contains the broadcast domain in software.
A logical switch is mapped to a unique VXLAN, which encapsulates the virtual machine traffic and carries
it over the physical IP network.
Controller cluster
NSX Manager VM VM
Logical switch 2
VM VM VM
Logical switch 1
The NSX controller is the central control point for all logical switches within a network and maintains
information of all virtual machines, hosts, logical switches, and VXLANs. The controller supports two new
logical switch control plane modes, Unicast and Hybrid, These modes decouple NSX from the physical
network. VXLANs no longer require the physical network to support multicast in order to handle the
Broadcast, Unknown unicast, and Multicast (BUM) traffic within a logical switch. The unicast mode
VMware, Inc. 40
NSX Administration Guide
replicates all the BUM traffic locally on the host and requires no physical network configuration. In the
hybrid mode, some of the BUM traffic replication is offloaded to the first hop physical switch to achieve
better performance. This mode requires IGMP snooping to be turned on the first hop physical switch.
Virtual machines within a logical switch can use and send any type of traffic including IPv6 and multicast.
You can extend a logical switch to a physical device by adding an L2 bridge. See Chapter 8 L2 Bridges.
You must have the Super Administrator or Enterprise Administrator role permissions to manage logical
switches.
n You have the Super Administrator or Enterprise Administrator role permission to configure and
manage logical switches.
n VXLAN UDP port is opened on firewall rules (if applicable). The VXLAN UDP port can be configured
through the API.
n Physical infrastructure MTU is at least 50 bytes more than the MTU of the virtual machine vNIC.
n Managed IP address is set for each vCenter Server in the vCenter Server Runtime Settings. See
vCenter Server and Host Management.
n DHCP is available on VXLAN transport VLANs if you are using DHCP for IP assignment for VMKNics.
n A consistent distributed virtual switch type (vendor, and so on) and version is being used across a
given transport zone. Inconsistent switch types can lead to undefined behavior in your logical switch.
n You have configured an appropriate LACP teaming policy and connected physical NICs to the ports.
For more information on teaming modes, refer to the VMware vSphere documentation.
n 5-tuple hash distribution is enabled for Link Aggregation Control Protocol (LACP).
n For multicast mode, multicast routing is enabled if VXLAN traffic is traversing routers. You have
acquired a multicast address range from your network administrator.
n Port 1234 (the default controller listening port) is opened on firewall for the ESX host to communicate
with controllers.
VMware, Inc. 41
NSX Administration Guide
n (Recommended) For multicast and hybrid modes, you have enabled IGMP snooping on the L2
switches to which VXLAN participating hosts are attached. If IGMP snooping is enabled on L2, IGMP
querier must be enabled on the router or L3 switch with connectivity to multicast enabled networks.
Prerequisites
Table 6‑1. Prerequisites for creating a logical switch or universal logical switch
Logical Switch Universal Logical Switch
n vSphere distributed switches must be configured. n vSphere distributed switches must be configured.
n NSX Manager must be installed. n NSX Manager must be installed.
n Controllers must be deployed. n Controllers must be deployed.
n Host clusters must be prepared for NSX. n Host clusters must be prepared for NSX.
n VXLAN must be configured. n VXLAN must be configured.
n A segment ID pool must be configured. n A primary NSX Manager must be assigned.
n A transport zone must be created. n A universal segment ID pool must be configured.
n A universal transport zone must be created.
n In a standalone or single vCenter NSX environment there is only one NSX Manager so you do not
need to select one.
n Objects local to an NSX Manager must be managed from that NSX Manager.
n In a cross-vCenter NSX environment that does not have Enhanced Linked Mode enabled, you must
make configuration changes from the vCenter linked to the NSX Manager that you want to modify.
n In a cross-vCenter NSX environment in Enhanced Linked Mode, you can make configuration changes
to any NSX Manager from any linked vCenter. Select the appropriate NSX Manager from the NSX
Manager drop-down menu.
Procedure
1 In the vSphere Web Client, navigate to Home > Networking & Security > Logical Switches.
2 Select the NSX Manager on which you want to create a logical switch. To create a universal logical
switch, you must select the primary NSX Manager.
VMware, Inc. 42
NSX Administration Guide
For example:
5 Select the transport zone in which you want to create the logical switch. Selecting a universal
transport zone will create a universal logical switch.
By default, the logical switch inherits the control plane replication mode from the transport zone. You
can change it to one of the other available modes. The available modes are unicast, hybrid, and
multicast.
If you create a universal logical switch and select hybrid as the replication mode, you must ensure
that the multicast address used does not conflict with any other multicast addresses assigned on any
NSX Manager in the environment.
This setting minimizes ARP traffic flooding within individual VXLAN segments---in other words,
between VMs connected to the same logical switch. IP discovery is enabled by default.
VMware, Inc. 43
NSX Administration Guide
7 (Optional) Click Enable MAC learning if your VMs have multiple MAC addresses or are using virtual
NICs that are trunking VLANs.
Enabling MAC learning builds a VLAN/MAC pair learning table on each vNIC. This table is stored as
part of the dvfilter data. During vMotion, dvfilter saves and restores the table at the new location. The
switch then issues RARPs for all the VLAN/MAC entries in the table.
This example shows the app logical switch with default settings.
DB-Tier-00 is logical switch connected to a transport zone. It is available only on the NSX Manager on
which it was created.
DB-Tier-01 is a universal logical switch connected to a universal transport zone. It is available on any of
the NSX Managers in the cross-vCenter NSX environment.
The logical switch and the universal logical switch have segment IDs from different segment ID pools.
What to do next
VMware, Inc. 44
NSX Administration Guide
Create a logical router and attach it to your logical switches to enable connectivity between VMs that are
connected to different logical switches. .
Create a universal logical router and attach it to your universal logical switches to enable connectivity
between VMs that are connected to different universal logical switches.
Procedure
1 In Logical Switches, select the logical switch to which you want to connect an NSX Edge.
3 Select the NSX Edge to which you want to connect the logical switch and click Next.
4 Select the interface that you want to connect to the logical switch and click Next.
5 On the Edit NSX Edge interface page, type a name for the NSX Edge interface.
8 If the NSX Edge to which you are connecting the logical switch has Manual HA Configuration
selected, specify two management IP addresses in CIDR format.
10 Click Next.
Prerequisites
One or more third party virtual appliances must have been installed in your infrastructure.
Procedure
1 In Logical Switches, select the logical switch on which you want to deploy services.
2
Click the Add Service Profile ( ) icon.
3 Select the service and service profile that you want to apply.
4 Click OK.
VMware, Inc. 45
NSX Administration Guide
Procedure
1 In Logical Switches, select the logical switch to which you want to add virtual machines.
2
Click the Add Virtual Machine ( ) icon.
3 Select the virtual machines you want to add to the logical switch.
5 Click Next.
7 Click Finish.
1 In Logical Switches, double click the logical switch that you want to test in the Name column.
4 Click Browse in the Source Host section. In the Select Host dialog box, select the destination host.
VXLAN standard size is 1550 bytes (should match the physical infrastructure MTU) without
fragmentation. This allows NSX to check connectivity and verify that the infrastructure is prepared for
VXLAN traffic.
Minimum packet size allows fragmentation. Hence, with packet size minimized, NSX can check
connectivity but not whether the infrastructure is ready for the larger frame size.
6 Click Browse in the Destination Host section. In the Select Host dialog box, select the destination
host.
VMware, Inc. 46
NSX Administration Guide
SpoofGuard allows you to authorize the IP addresses reported by VMware Tools or IP discovery, and alter
them if necessary to prevent spoofing. SpoofGuard inherently trusts the MAC addresses of virtual
machines collected from the VMX files and vSphere SDK. Operating separately from the Firewall rules,
you can use SpoofGuard to block traffic identified as spoofed.
Procedure
1 In Logical Switches, select the logical switch that you want to edit.
4 Click OK.
Cluster 1 Cluster 2
VM VM VM VM VM VM VM
vDS1 vDS2
Engineering: VLAN10:10.10.1.0/24
Finance: VLAN20:10.20.1.0/24
Marketing: VLAN30:10.30.1.0/24
ACME is running out of compute space on Cluster1 while Cluster2 is under-utilized. The ACME network
supervisor asks John Admin (ACME's virtualization administrator) to figure out a way to extend the
Engineering department to Cluster2 in a way that virtual machines belonging to Engineering on both
clusters can communicate with each other. This would enable ACME to utilize the compute capacity of
both clusters by stretching ACME's L2 layer.
VMware, Inc. 47
NSX Administration Guide
If John Admin were to do this the traditional way, he would need to connect the separate VLANs in a
special way so that the two clusters can be in the same L2 domain. This might require ACME to buy a
new physical device to separate traffic, and lead to issues such as VLAN sprawl, network loops, and
administration and management overhead.
John Admin remembers seeing a logical network demo at VMworld, and decides to evaluate NSX. He
concludes that building a logical switch across dvSwitch1 and dvSwitch2 will allow him to stretch ACME's
L2 layer. Since John can leverage the NSX controller, he will not have to touch ACME's physical
infrastructure as NSX works on top of existing IP networks.
Cluster 1 Cluster 2
Logical Switch stretches across multiple VLANs/subnets
VM VM VM VM VM VM VM VM VM VM VM VM
vDS1 vDS2
Engineering: VXLAN5000:10.10.1.0/24
Finance: VLAN 20:10.20.1.0/24
Marketing: VLAN 30:10.30.1.0/24
Once John Admin builds a logical switch across the two clusters, he can vMotion virtual machines within
the vDS.
VMware, Inc. 48
NSX Administration Guide
VM VM VM VM VM VM VM VM VM VM VM VM
vDS1 vDS2
Engineering: VXLAN5000:10.10.1.0/24
Finance: VLAN 20:10.20.1.0/24
Marketing: VLAN 30:10.30.1.0/24
Let us walk through the steps that John Admin follows to build a logical network at ACME Enterprise.
Prerequisites
1 John Admin verifies that dvSwitch1 and dvSwitch2 are VMware distributed switches version 5.5.
2 John Admin sets the Managed IP address for the vCenter Server.
c Click OK.
3 John Admin installs the network virtualization components on Cluster1 and Cluster 2. See NSX
Installation Guide.
4 John Admin gets a segment ID pool (5000 - 5250) from ACME's NSX Manager administrator. Since
he is leveraging the NSX controller, he does not require multicast in his physical network.
5 John Admin creates an IP pool so that he can assign a static IP address to the VXLAN VTEPs from
this IP pool. See Add an IP Pool.
Procedure
1 In the vSphere Web Client, click Networking & Security > Installation.
2 Click the Logical Network Preparation tab and then click Segment ID.
VMware, Inc. 49
NSX Administration Guide
3 Click Edit.
6 Click OK.
Procedure
3 In the Configuring VXLAN networking dialog box, select dvSwitch1 as the virtual distributed switch for
the cluster.
5 In Specify Transport Attributes, leave 1600 as the Maximum Transmission Units (MTU) for dvSwitch1.
MTU is the maximum amount of data that can be transmitted in one packet before it is divided into
smaller packets. John Admin knows that VXLAN logical switch traffic frames are slightly larger in size
because of the encapsulation, so the MTU for each switch must be set to 1550 or higher.
John Admin wants to maintain the quality of service in his network by keeping the performance of
logical switches the same in normal and fault conditions. Hence, he chooses Failover as the teaming
policy.
8 Click Add.
After John admin maps Cluster1 and Cluster2 to the appropriate switch, the hosts on those clusters are
prepared for logical switches:
1 A VXLAN kernel module and vmknic is added to each host in Cluster 1 and Cluster 2.
2 A special dvPortGroup is created on the vSwitch associated with the logical switch and the VMKNic is
connected to it.
VMware, Inc. 50
NSX Administration Guide
Procedure
7 Click OK.
Procedure
1 Click Logical Switches and then click the New Logical Network icon.
3 In Description, type
Logical Network for extending ACME Engineering network to Cluster2.
5 Click OK.
NSX creates a logical switch providing L2 connectivity between dvSwitch1 and dvSwitch2.
What to do next
John Admin can now connect ACME's production virtual machines to the logical switch, and connect the
logical switch to an NSX Edge services gateway or Logical Router.
VMware, Inc. 51
Configuring Hardware Gateway 7
Hardware gateway configuration maps physical networks to virtual networks. The mapping configuration
allows NSX to leverage the Open vSwitch Database (OVSDB).
The OVSDB database contains information about the physical hardware and the virtual network. The
vendor hardware hosts the database server.
The hardware gateway switches in the NSX logical networks terminate VXLAN tunnels. To the virtual
network, the hardware gateway switches are known as hardware VTEP. For more information about
VTEPs, see the NSX Installation guide and NSX Network Virtualization Design guide.
n Physical server
n IP network
The sample topology with a hardware gateway shows HV1 and HV2 as the two hypervisors. The VM1
virtual machine is on HV1. VTEP1 is on HV1, VTEP2 is on HV2, and VTEP3 is on the hardware gateway.
The hardware gateway is located in a different subnet 211 compared to the two hypervisors that are
located in the same subnet 221.
The hardware gateway underlying configuration can have any one of the following components:
n Single switch
VMware, Inc. 52
NSX Administration Guide
The NSX Controller communicates with the hardware gateway using its IP address on port 6640. This
connection is used to send and receive OVSDB transactions from hardware gateways.
The sample topology shows that virtual machine VM1 and VLAN-Server are configured with an IP
address in the subnet 10. VM1 is attached to WebService logical switch. The VLAN-Server is attached to
VLAN 160 on the physical server.
Prerequisites
n Verify that you meet the NSX system and hardware requirements for hardware gateway configuration.
See Chapter 1 System Requirements for NSX.
n Verify that the logical networks are set up properly. See the NSX Installation guide.
n Verify that the transport parameter mappings in the VXLAN are accurate. See the NSX Installation
guide.
n Verify that the VXLAN port value is set to 4789. See the NSX Upgrade guide.
You can use the REST API command, PUT /2.0/vdn/config/vxlan/udp/port/4789 to modify the
port number. This API returns no response.
Procedure
VMware, Inc. 53
NSX Administration Guide
Note The replication nodes and the hardware gateway switches cannot be on the same IP subnet.
Prerequisites
Procedure
4 Click Edit in the Replication Cluster section to select hypervisors to serve as replication nodes in this
replication cluster.
6 Click OK.
The replication nodes are added to the replication cluster. At least one host must exist in the replication
cluster.
VMware, Inc. 54
NSX Administration Guide
The Controller passively listens to the connection attempt from ToR. Therefore, the hardware gateway
must use the OVSDB manager table to initiate connection.
Procedure
1 Use the commands that apply to your environment to connect the hardware gateway to the NSX
Controller.
prmh-nsx-tor-7050sx-3#enable
prmh-nsx-tor-7050sx-3#configure terminal
prmh-nsx-tor-7050sx-3(config)#cvx
prmh-nsx-tor-7050sx-3(config-cvx)#service hsc
prmh-nsx-tor-7050sx-3(config-cvx-hsc)#manager 172.16.2.95 6640
prmh-nsx-tor-7050sx-3(config-cvx-hsc)#no shutdown
prmh-nsx-tor-7050sx-3(config-cvx-hsc)#end
4 (Optional) Verify that the hardware gateway is connected to the NSX Controller through the OVSDB
channel.
n Ping the VM1 and VLAN 160 to verify that the connection succeeds.
5 (Optional) Verify that the hardware gateway is connected to correct NSX Controller.
b Select Networking & Security > > Installation > NSX Controller nodes.
Prerequisites
Verify that the hardware gateway certificate from your environment is available.
Procedure
VMware, Inc. 55
NSX Administration Guide
4 Click the Add ( ) icon to create the hardware gateway profile details.
Option Description
Certificate Paste the certificate that you extracted from your environment.
5 Click OK.
6 Refresh the screen to verify that the hardware gateway is available and running.
7 (Optional) Click the hardware gateway profile and right-click to select View the BFD Tunnel Status
from the drop-down menu.
The dialog box shows diagnostic tunnel status details for troubleshooting.
VMware, Inc. 56
NSX Administration Guide
Note If you bind multiple logical switches to hardware ports, you must apply these steps for each logical
switch.
Prerequisites
n Verify that the WebService logical switch is available. See Add a Logical Switch.
Procedure
3 Locate the WebService logical switch and right-click to select Manage Harware Bindings from the
drop-down menu.
5 Click the Add ( ) icon and select the physical switch from the drop-down menu.
6 Click Select to choose a physical port from the Available Objects list.
7 Click OK.
9 Click OK.
VMware, Inc. 57
NSX Administration Guide
The NSX Controller synchronizes the physical and logical configuration information with the hardware
gateway.
VMware, Inc. 58
L2 Bridges 8
You can create an L2 bridge between a logical switch and a VLAN, which enables you to migrate virtual
workloads to physical devices with no impact on IP addresses. A logical network can leverage a physical
L3 gateway and access existing physical networks and security resources by bridging the logical switch
broadcast domain to the VLAN broadcast domain.
The L2 bridge runs on the host that has the NSX Edge logical router virtual machine. An L2 bridge
instance maps to a single VLAN, but there can be multiple bridge instances. The logical router cannot be
used as a gateway for devices connected to a bridge.
If High Availability is enabled on the Logical Router and the primary NSX Edge virtual machine goes
down, the bridge is automatically moved over to the host with the secondary virtual machine. For this
seamless migration to happen, a VLAN must have been configured on the host that has the secondary
NSX Edge virtual machine.
NSX Edge
VM
logical router
virtual machine
Compute rack
VXLAN 5001
VLAN 100
Physical workload
L2 bridge
Physical gateway
Note that you should not use an L2 bridge to connect a logical switch to another logical switch, a VLAN
network to another VLAN network, or to interconnect datacenters. Also, you cannot use a universal
logical router to configure bridging and you cannot add a bridge to a universal logical switch.
VMware, Inc. 59
NSX Administration Guide
n Add L2 Bridge
Add L2 Bridge
You can add a bridge from a logical switch to a distributed virtual port group.
Prerequisites
You cannot use a universal logical router to configure bridging, and you cannot add a bridge to a universal
logical switch.
Procedure
7 Select the logical switch that you want to create a bridge for.
8 Select the distributed virtual port group to which you want to bridge the logical switch.
9 Click OK.
Prerequisites
n You cannot use a universal logical router to configure bridging, and you cannot add a bridge to a
universal logical switch.
Procedure
VMware, Inc. 60
NSX Administration Guide
3 Double click the logical router that will be used for bridging.
Note The bridge instance has to be created in the same routing instance to which the vxlan is
connected. One bridge instance can have one vxlan and one vlan, the vxlan and vlan cannot overlap.
The same vxlan and vlan cannot connect to more than one bridge instances.
The logical switch that is being used as a router will state Routing Enabled.
7 Select the logical switch that you want to create a bridge for.
8 Select the distributed virtual port group to which you want to bridge the logical switch.
9 Click OK.
The logical switch that is used for bridging will now appear with Routing Enabled specified. For more
information, see Add a Logical Switch and Connect Virtual Machines to a Logical Switch.
VMware, Inc. 61
Routing 9
You can specify static and dynamic routing for each NSX Edge.
Dynamic routing provides the necessary forwarding information between Layer 2 broadcast domains,
thereby allowing you to decrease Layer 2 broadcast domains and improve network efficiency and scale.
NSX extends this intelligence to where the workloads reside for doing East-West routing. This allows
more direct virtual machine to virtual machine communication without the added cost or time needed to
extend hops. At the same time, NSX also provides North-South connectivity, thereby enabling tenants to
access public networks.
n Configure BGP
VMware, Inc. 62
NSX Administration Guide
The following list describes feature support by interface type (uplink and internal) on the logical router:
n Dynamic routing protocols (BGP and OSPF) are supported only on uplink interfaces.
n Firewall rules are applicable only on uplink interfaces and are limited to control and management
traffic that is destined to the edge virtual appliance.
n For more information about the DLR Management Interface see the Knowledge Base Article,
Considerations for Management Interface of Distributed Logical Router Control VM,
http://kb.vmware.com/kb/2122060.
Prerequisites
n You must have been assigned the Enterprise Administrator or NSX Administrator role.
n You must have an operational controller cluster in your environment before installing a logical router.
n You must create a local segment ID pool, even if you have no plans to create NSX logical switches.
n A logical router cannot distribute routing information to hosts without the help of NSX controllers. A
logical router relies on NSX controllers to function, while edge services gateways (ESGs) do not.
Make sure the controller cluster is up and available before creating or changing a logical router
configuration.
n If a logical router is to be connected to VLAN dvPortgroups, ensure that all hypervisor hosts with a
logical router appliance installed can reach each other on UDP port 6999 for logical router VLAN-
based ARP proxy to work.
n Logical router interfaces and bridging interfaces cannot be connected to a dvPortgroup with the VLAN
ID set to 0.
n A given logical router instance cannot be connected to logical switches that exist in different transport
zones. This is to ensure that all logical switches and logical router instances are aligned.
n A logical router cannot be connected to VLAN-backed portgroups if that logical router is connected to
logical switches spanning more than one vSphere distributed switch (VDS).This is to ensure correct
alignment of logical router instances with logical switch dvPortgroups across hosts.
n Logical router interfaces should not be created on two different distributed portgroups (dvPortgroups)
with the same VLAN ID if the two networks are in the same vSphere distributed switch.
n Logical router interfaces should not be created on two different dvPortgroups with the same VLAN ID
if two networks are in different vSphere distributed switches, but the two vSphere distributed switches
share the same hosts. In other words, logical router interfaces can be created on two different
networks with the same VLAN ID if the two dvPortgroups are in two different vSphere distributed
switches, as long as the vSphere distributed switches do not share a host.
n Unlike NSX version 6.0 and 6.1, NSX version 6.2 allows logical router-routed logical interfaces (LIFs)
to be connected to a VXLAN that is bridged to a VLAN.
VMware, Inc. 63
NSX Administration Guide
n When selecting placement of a logical router virtual appliance, avoid placing it on the same host as
one or more of its upstream ESGs if you use ESGs in an ECMP setup. You can use DRS anti-affinity
rules to enforce this, thus reducing the impact of host failure on logical router forwarding. This
guideline does not apply if you have one upstream ESG by itself or in HA mode. For more
information, see the VMware NSX for vSphere Network Virtualization Design Guide at
https://communities.vmware.com/docs/DOC-27683.
n In a standalone or single vCenter NSX environment there is only one NSX Manager so you do not
need to select one.
n Objects local to an NSX Manager must be managed from that NSX Manager.
n In a cross-vCenter NSX environment that does not have Enhanced Linked Mode enabled, you must
make configuration changes from the vCenter linked to the NSX Manager that you want to modify.
n In a cross-vCenter NSX environment in Enhanced Linked Mode, you can make configuration changes
to any NSX Manager from any linked vCenter. Select the appropriate NSX Manager from the NSX
Manager drop-down menu.
n If you need to connect a logical switch, you must add a logical router
n If you need to connect a universal logical switch, you must add a universal logical router
n If you are adding a universal logical router, determine if you need to enable local egress. Local egress
allows you to selectively send routes to hosts. You may want this ability if your NSX deployment
spans multiple sites. See Cross-vCenter NSX Topologies for more information. You cannot enable
local egress after the universal logical router has been created.
Procedure
1 In the vSphere Web Client, navigate to Home > Networking & Security > NSX Edges.
2 Select the appropriate NSX Manager on which to make your changes. If you are creating a universal
logical router, you must select the primary NSX Manager.
n Select Logical (Distributed) Router to add a logical router local to the selected NSX Manager.
n Select Universal Logical (Distributed) Router to add a logical router that can span the cross-
vCenter NSX environment. This option will be available only if you have assigned a primary NSX
Manager, and are making changes from the primary NSX Manager.
a If you select Universal Logical (Distributed) Router, you must also select whether to enable
local egress.
VMware, Inc. 64
NSX Administration Guide
This name appears in your vCenter inventory. The name should be unique across all logical routers
within a single tenant.
Optionally, you can also enter a hostname. This name appears in the CLI. If you do not specify the
host name, the Edge ID, which gets created automatically, is displayed in the CLI.
Deploy Edge Appliance is selected by default. An edge appliance (also called a logical router virtual
appliance) is required for dynamic routing and the logical router appliance's firewall, which applies to
logical router pings, SSH access, and dynamic routing traffic.
You can deselect the edge appliance option if you require only static routes, and do not want to
deploy an Edge appliance. You cannot add an Edge appliance to the logical router after the logical
router has been created.
Enable High Availability is not selected by default. Select the Enable High Availability check box to
enable and configure high availability. High availability is required if you are planning to do dynamic
routing.
The password must be 12-255 characters and must contain the following:
VMware, Inc. 65
NSX Administration Guide
By default, SSH is disabled. If you do not enable SSH, you can still access the logical router by
opening the virtual appliance console. Enabling SSH here causes the SSH process to run on the
logical router virtual appliance, but you will also need to adjust the logical router firewall configuration
manually to allow SSH access to the logical router's protocol address. The protocol address is
configured when you configure dynamic routing on the logical router.
For example:
VMware, Inc. 66
NSX Administration Guide
10 Configure deployment.
u If you did not select Deploy NSX Edge, the Add ( ) icon is grayed out. Click Next to continue
with configuration.
u If you selected Deploy NSX Edge, enter the settings for the logical router virtual appliance that
will be added to your vCenter inventory.
For example:
11 Configure interfaces.
In the HA Interface Configuration, if you selected Deploy NSX Edge you must connect the interface
to a distributed port group. It is recommended to use a VXLAN logical switch for the HA interface. An
IP address for each of the two NSX Edge appliances is chosen from the link local address space,
169.250.0.0/16. No further configuration is necessary to configure the HA service.
Note In prior releases of NSX, the HA interface was called the management interface. The HA
interface is not supported for remote access to the logical router. You cannot SSH into the HA
interface from anywhere that isn’t on the same IP subnet as the HA interface. You cannot configure
static routes that point out of the HA interface, which means that RPF will drop incoming traffic. You
could, in theory, disable RPF, but this would be counterproductive to high availability. For SSH, use
the logical router's protocol address, which is configured later when you configure dynamic routing.
In NSX 6.2, the HA interface of a logical router is automatically excluded from route redistribution.
VMware, Inc. 67
NSX Administration Guide
In Configure interfaces of this NSX Edge the internal interfaces are for connections to switches that
allow VM-to-VM (sometimes called East-West) communication. Internal interfaces are created as
pseudo vNICs on the logical router virtual appliance. Uplink interfaces are for North-South
communication. A logical router uplink interface might connect to an NSX edge services gateway, a
third-party router VM for that, or a VLAN-backed dvPortgroup to make the logical router connect to a
physical router directly. You must have at least one uplink interface for dynamic routing to work.
Uplink interfaces are created as vNICs on the logical router virtual appliance.
The interface configuration that you enter here is modifiable later. You can add, remove, and modify
interfaces after a logical router is deployed.
The following example shows an HA interface connected to the management distributed port group.
The example also shows two internal interfaces (app and web) and an uplink interface (to-ESG).
VMware, Inc. 68
NSX Administration Guide
For example:
13 Make sure any VMs attached to the logical switches have their default gateways set properly to the
logical router interface IP addresses.
In the following example topology, the default gateway of app VM should be 172.16.20.1. The default
gateway of web VM should be 172.16.10.1. Make sure the VMs can ping their default gateways and each
other.
VMware, Inc. 69
NSX Administration Guide
Log in via SSH to the NSX Manager, and run the following commands:
n List the hosts that have received routing information for the logical router from the controller cluster.
The output includes all hosts from all host clusters that are configured as members of the transport
zone that owns the logical switch that is connected to the specified logical router (edge-1 in this
example).
n List the routing table information that is communicated to the hosts by the logical router. Routing table
entries should be consistent across all of the hosts.
VMware, Inc. 70
NSX Administration Guide
n List additional information about the router from the point of view of one of the hosts. This is helpful to
learn which controller is communicating with the host.
Check the Controller IP field in the output of the show logical-router host host-25 dlr edge-1
verbose command.
SSH to a controller, and run the following commands to display the controller's learned VNI, VTEP, MAC,
and ARP table state information.
n
192.168.110.202 # show control-cluster logical-switches vni 5000
VNI Controller BUM-Replication ARP-Proxy Connections
5000 192.168.110.201 Enabled Enabled 0
The output for VNI 5000 shows zero connections and lists controller 192.168.110.201 as the owner
for VNI 5000. Log in to that controller to gather further information for VNI 5000.
VMware, Inc. 71
NSX Administration Guide
Because 192.168.110.201 owns all three VNI connections, we would expect to see zero connections
on the other controller, 192.168.110.203.
n Before checking the MAC and ARP tables, start pinging from one VM to the other VM.
Check the logical router information. Each logical router Instance is served by one of the controller nodes.
VMware, Inc. 72
NSX Administration Guide
The interface-summary sub-command displays the LIFs that the controller learned from the NSX
Manager. This information is sent to the hosts that are in the host clusters managed under the transport
zone.
The routes sub-command shows the routing table that is sent to this controller by the logical router's
virtual appliance (also known as the control VM). Note that unlike on the ESXi hosts, this routing table
does not include directly connected subnets because this information is provided by the LIF configuration.
Route information on the ESXi hosts includes directly connected subnets because in that case it is a
forwarding table used by ESXi host’s datapath.
n
controller # show control-cluster logical-routers instance all
LR-Id LR-Name Universal Service-Controller Egress-Locale
0x1388 default+edge-1 false 192.168.110.201 local
n
controller # show control-cluster logical-routers interface-summary 0x1388
Interface Type Id IP[]
13880000000b vxlan 0x1389 172.16.10.1/24
13880000000a vxlan 0x1388 172.16.20.1/24
138800000002 vxlan 0x138a 192.168.10.2/29
n
controller # show control-cluster logical-routers routes 0x1388
Destination Next-Hop[] Preference Locale-Id Source
192.168.100.0/24 192.168.10.1 110 00000000-0000-0000-0000-000000000000 CONTROL_VM
0.0.0.0/0 192.168.10.1 0 00000000-0000-0000-0000-000000000000 CONTROL_VM
[root@comp02a:~] esxcfg-route -l
VMkernel Routes:
Network Netmask Gateway Interface
10.20.20.0 255.255.255.0 Local Subnet vmk1
192.168.210.0 255.255.255.0 Local Subnet vmk0
default 0.0.0.0 192.168.210.1 vmk0
VMware, Inc. 73
NSX Administration Guide
These Host-IP addresses are vmk0 interfaces, not VTEPs. Connections between ESXi hosts and
controllers are created on the management network. The port numbers here are ephemeral TCP
ports that are allocated by the ESXi host IP stack when the host establishes a connection with the
controller.
n On the host, you can view the controller network connection matched to the port number.
n Display active VNIs on the host. Observe how the output is different across hosts. Not all VNIs are
active on all hosts. A VNI is active on a host if the host has a VM that is connected to the logical
switch.
[root@192.168.210.52:~] # esxcli network vswitch dvs vmware vxlan network list --vds-name
Compute_VDS
VXLAN ID Multicast IP Control Plane Controller Connection
Port Count MAC Entry Count ARP Entry Count VTEP Count
-------- ------------------------- ----------------------------------- ---------------------
---------- --------------- --------------- ----------
5000 N/A (headend replication) Enabled (multicast proxy,ARP proxy) 192.168.110.203
(up) 1 0 0 0
5001 N/A (headend replication) Enabled (multicast proxy,ARP proxy) 192.168.110.202
(up) 1 0 0 0
Note To enable the vxlan namespace in vSphere 6 and later, run the /etc/init.d/hostd restart
command.
For logical switches in hybrid or unicast mode, the esxcli network vswitch dvs vmware vxlan
network list --vds-name <vds-name> command should contain the following output:
n Multicast proxy and ARP proxy are listed. AARP proxy is listed even if you disabled IP discovery.
VMware, Inc. 74
NSX Administration Guide
n If a logical router is connected to the ESXi host, the port Count is at least 1, even if there are no
VMs on the host connected to the logical switch. This one port is the vdrPort, which is a special
dvPort connected to the logical router kernel module on the ESXi host.
n First ping from VM to another VM on a different subnet and then display the MAC table. Note the
Inner MAC is the VM entry while the Outer MAC and Outer IP refer to the VTEP.
~ # esxcli network vswitch dvs vmware vxlan network mac list --vds-name=Compute_VDS --vxlan-id=5000
Inner MAC Outer MAC Outer IP Flags
----------------- ----------------- -------------- --------
00:50:56:a6:23:ae 00:50:56:6a:65:c2 192.168.250.52 00000111
~ # esxcli network vswitch dvs vmware vxlan network mac list --vds-name=Compute_VDS --vxlan-id=5001
Inner MAC Outer MAC Outer IP Flags
----------------- ----------------- -------------- --------
02:50:56:56:44:52 00:50:56:6a:65:c2 192.168.250.52 00000101
00:50:56:f0:d7:e4 00:50:56:6a:65:c2 192.168.250.52 00000111
What to do next
On the hosts where NSX edge appliances are first deployed, NSX enables automatic VM
startup/shutdown. If the appliance VMs are later migrated to other hosts, the new hosts might not have
automatic VM startup/shutdown enabled. For this reason, VMware recommends that you check all hosts
in the cluster to make sure that automatic VM startup/shutdown is enabled. See
http://pubs.vmware.com/vsphere-60/index.jsp?topic=%2Fcom.vmware.vsphere.vm_admin.doc
%2FGUID-5FE08AC7-4486-438E-AF88-80D6C7928810.html.
After the logical router is deployed, double-click the logical router ID to configure additional settings, such
as interfaces, routing, firewall, bridging, and DHCP relay.
For example:
VMware, Inc. 75
NSX Administration Guide
Uplink interfaces of an ESG connect to uplink port groups that have access to a shared corporate network
or a service that provides access layer networking.
The following list describes feature support by interface type (internal and uplink) on an ESG.
n HA: Not supported on uplink interface, requires at least one internal interface.
The following figure shows a sample topology with an ESG's uplink interface connected to physical
infrastructure through the vSphere distributed switch and the ESG's internal interface connect to an NSX
logical router through an NSX logical transit switch.
VMware, Inc. 76
NSX Administration Guide
vSphere
ESG Distributed
switch
Physical
Architecture
192.168.100.3 192.168.100.1
Link type: uplink
192.168.10.1
Link type: internal
Transit
logical
switch
192.168.10.2
Link type: uplink
Protocol address:
192.168.10.3
DLR
172.16.20.1 172.16.10.1
Link type: internal Link type: internal
App Web
logical logical
switch switch
172.16.20.10 172.16.10.10
VM VM
app web
VM VM
Multiple external IP addresses can be configured for load balancing, site-to-site VPN, and NAT services.
Prerequisites
You must have been assigned the Enterprise Administrator or NSX Administrator role.
Verify that the resource pool has enough capacity for the edge services gateway (ESG) virtual appliance
to be deployed. See Chapter 1 System Requirements for NSX.
VMware, Inc. 77
NSX Administration Guide
Procedure
1 In vCenter, navigate to Home > Networking & Security > NSX Edges and click the Add ( ) icon.
2 Select Edge Services Gateway and type a name for the device.
This name appears in your vCenter inventory. The name should be unique across all ESGs within a
single tenant.
Optionally, you can also enter a hostname. This name appears in the CLI. If you do not specify the
host name, the Edge ID, which gets created automatically, is displayed in the CLI.
Optionally, you can enter a description and tenant and enable high availability.
For example:
The password must be at least 12 characters and must follow 3 of the following 4 rules:
VMware, Inc. 78
NSX Administration Guide
4 (Optional) Enable SSH, high availability, and automatic rule generation, and set the log level.
If you do not enable automatic rule generation, you must manually add firewall, NAT, and routing
configuration to allow control traffic for certain, NSX Edge services, including as load balancing and
VPN. Auto rule generation does not create rules for data-channel traffic.
By default, SSH and high availability are disabled, and automatic rule generation is enabled. By
default, the log level is emergency.
By default, logging is enabled on all new NSX Edge appliances. The default logging level is NOTICE.
For example:
5 Select the size of the NSX Edge instance based on your system resources.
The Large NSX Edge has more CPU, memory, and disk space than the Compact NSX Edge, and
supports a larger number of concurrent SSL VPN-Plus users. The X-Large NSX Edge is suited for
environments that have a load balancer with millions of concurrent sessions. The Quad Large NSX
Edge is recommended for high throughput and requires a high connection rate.
VMware, Inc. 79
NSX Administration Guide
Enter the settings for the ESG virtual appliance that will be added to your vCenter inventory. If you do
not add an appliance when you install NSX Edge, NSX Edge remains in an offline mode until you add
an appliance.
If you enabled HA you can add two appliances. If you add a single appliance, NSX Edge replicates its
configuration for the standby appliance and ensures that the two HA NSX Edge virtual machines are
not on the same ESX host even after you use DRS and vMotion (unless you manually vMotion them
to the same host). For HA to work correctly, you must deploy both appliances on a shared datastore.
For example:
7 Select Deploy NSX Edge to add the Edge in a deployed mode. You must configure appliances and
interfaces for the Edge before it can be deployed.
8 Configure interfaces.
If you enter more than one IP address for an interface, you can select the primary IP address. An
interface can have one primary and multiple secondary IP addresses. NSX Edge considers the
primary IP address as the source address for locally generated traffic, for example remote syslog and
operator-initiated pings.
You must add an IP address to an interface before using it on any feature configuration.
Optionally, you can enter the MAC address for the interface.
If HA is enabled, you can optionally enter two management IP addresses in CIDR format. Heartbeats
of the two NSX Edge HA virtual machines are communicated through these management IP
addresses. The management IP addresses must be in the same L2/subnet and be able to
communicate with each other.
VMware, Inc. 80
NSX Administration Guide
Enable proxy ARP if you want to allow the ESG to answer ARP requests intended for other machines.
This is useful, for example, when you have the same subnet on both sides of a WAN connection.
Enable reverse path filtering to verify the reachability of the source address in packets being
forwarded. In enabled mode, the packet must be received on the interface that the router would use
to forward the return packet. In loose mode, the source address must appear in the routing table.
Configure fence parameters if you want to reuse IP and MAC addresses across different fenced
environments. For example, in a cloud management platform (CMP), fencing allow you to run several
cloud instances simultaneous with the same IP and MAC addresses completely isolated or “fenced.”
For example:
VMware, Inc. 81
NSX Administration Guide
The following example shows two interfaces, one attaching the ESG to the outside world through an
uplink portgroup on a vSphere distributed switch and the other attaching the ESG to a logical transit
switch to which a distributed logical router is also attached.
VMware, Inc. 82
NSX Administration Guide
You can edit the MTU value, but it cannot be more than the configured MTU on the interface.
For example:
Caution If you do not configure the firewall policy, the default policy is set to deny all traffic.
By default, logs are enabled on all new NSX Edge appliances. The default logging level is NOTICE. If
logs are stored locally on the ESG, logging may generate too many logs and affect the performance
of your NSX Edge. For this reason, it is recommended that you configure remote syslog servers, and
forward all logs to a centralized collector for analysis and monitoring.
If you enabled high availability, complete the HA section. By default, HA automatically chooses an
internal interface and automatically assigns link-local IP addresses. NSX Edge supports two virtual
machines for high availability, both of which are kept up to date with user configurations. If a
heartbeat failure occurs on the primary virtual machine, the secondary virtual machine state is
VMware, Inc. 83
NSX Administration Guide
changed to active. Thus, one NSX Edge virtual machine is always active on the network. NSX Edge
replicates the configuration of the primary appliance for the standby appliance and ensures that the
two HA NSX Edge virtual machines are not on the same ESX host even after you use DRS and
vMotion. Two virtual machines are deployed on vCenter in the same resource pool and datastore as
the appliance you configured. Local link IP addresses are assigned to HA virtual machines in the NSX
Edge HA so that they can communicate with each other. Select the internal interface for which to
configure HA parameters. If you select ANY for interface but there are no internal interfaces
configured, the UI does not display an error. Two Edge appliances are created but since there is no
internal interface configured, the new Edge remains in standby and HA is disabled. Once an internal
interface is configured, HA will get enabled on the Edge appliance. Type the period in seconds within
which, if the backup appliance does not receive a heartbeat signal from the primary appliance, the
primary appliance is considered inactive and the backup appliance takes over. The default interval is
15 seconds. Optionally, you can enter two management IP addresses in CIDR format to override the
VMware, Inc. 84
NSX Administration Guide
local link IP addresses assigned to the HA virtual machines. Ensure that the management IP
addresses do not overlap with the IP addresses used for any other interface and do not interfere with
traffic routing. You should not use an IP address that exists somewhere else on your network, even if
that network is not directly attached to the NSX Edge.
For example:
After the ESG is deployed, go to the Hosts and Clusters view and open the console of the edge virtual
appliance. From the console, make sure you can ping the connected interfaces.
VMware, Inc. 85
NSX Administration Guide
What to do next
On the hosts where NSX edge appliances are first deployed, NSX enables automatic VM
startup/shutdown. If the appliance VMs are later migrated to other hosts, the new hosts might not have
automatic VM startup/shutdown enabled. For this reason, VMware recommends that you check all hosts
in the cluster to make sure that automatic VM startup/shutdown is enabled. See
http://pubs.vmware.com/vsphere-60/index.jsp?topic=%2Fcom.vmware.vsphere.vm_admin.doc
%2FGUID-5FE08AC7-4486-438E-AF88-80D6C7928810.html.
Now you can configure routing to allow connectivity from external devices to your VMs.
You must have a working NSX Edge instance before you can configure routing on it. For information on
setting up NSX Edge, see NSX Edge Configuration.
Procedure
5 To change Equal-cost multi-path routing (ECMP) configuration click Edit next to Routing
Configuration, then do the following .
Option Description
For an Edge Services Gateway To edit ECMP, click Enable or Disable next to ECMP.
ECMP is a routing strategy that allows next-hop packet forwarding to a single destination can occur
over multiple best paths. These best paths can be added statically or as a result of metric calculations
by dynamic routing protocols like OSPF or BGP. Multiple paths for static routes can be added by
providing multiple next hops separated by commas in the Static Routes dialog box. For more
information, see Add a Static Route.
The Edge Services Gateway utilizes Linux network stack implementation, a round-robin algorithm
with a randomness component. After a next hop is selected for a particular source and destination IP
address pair, the route cache stores the selected next hop. All packets for that flow go to the selected
next hop. The default IPv4 route cache timeout is 300 seconds (gc_timeout). If an entry is inactive for
this time, it is eligible to be removed from the route cache. The actual removal happens when
garbage collection timer activates (gc_interval = 60 seconds).
VMware, Inc. 86
NSX Administration Guide
The Logical Router uses an XOR algorithm to determine the next hop from a list of possible ECMP
next hops. This algorithm uses the source and destination IP address on the outgoing packet as
sources of entropy.
Until version 6.1.2, enabling ECMP disabled Distributed Firewall on the Edge Services Gateway
virtual machine. Stateful services such as NAT did not work with ECMP. From NSX vSphere version
6.1.3 onwards, ECMP and Distributed Firewall can work together.
6 To change the Locale ID on a logical router, click Edit next to Routing Configuration. Enter a locale
ID and click OK.
By default, the locale ID is set to the NSX Manager UUID, but you can override it if local egress was
enabled when the universal logical router was created. Locale ID is used to selectively configure
routes in a cross-vCenter NSX or multi-site environment. See Cross-vCenter NSX Topologies for
more information.
a Select an interface from which the next hop towards the destination network can be reached.
c (Optional) Type the locale ID. Locale ID is an option only on universal logical routers.
Choose a value between 1 and 255. The admin distance is used to choose which route to use
when there are multiple routes for a given network. The lower the admin distance, the higher the
preference for the route.
Connected 0
Static 1
External BGP 20
OSPF Intra-Area 30
g Click Save.
VMware, Inc. 87
NSX Administration Guide
a Router ID displays the first uplink IP address of the NSX Edge that pushes routes to the kernel
for dynamic routing.
c Select Enable Logging to save logging information and select the log level.
Note If you have IPSec VPN configured in your environment, you should not use dynamic routing.
What to do next
To delete routing configuration, click Reset. This deletes all routing configurations (default, static, OSPF,
and BGP configurations, as well as route redistribution).
Procedure
Option Description
VMware, Inc. 88
NSX Administration Guide
7 Click OK.
n To import a signed certificate at the global level, click Import in the NSX Manager Virtual
Appliance.
n To import a signed certificate for an NSX Edge, click Actions and select Import Certificate
in the Certificates tab.
c In the Import CSR dialog box, paste the contents of the signed certificate.
d Click OK.
Add a CA Certificate
By adding a CA certificate, you can become an interim CA for your company. You then have the authority
for signing your own certificates.
Procedure
4 Click the Manage tab and then ensure that you are in the Settings tab.
5 Click Certificates.
7 Copy and paste the certificate contents in the Certificate contents text box.
9 Click OK.
VMware, Inc. 89
NSX Administration Guide
Prerequisites
Verify that you have a CA certificate so that you can sign your own certificates.
Procedure
4 Click the Manage tab and then ensure that you are in the Settings tab.
5 Click Certificates.
b In Common name, type the IP address or fully qualified domain name (FQDN) of the NSX
Manager.
Note that SSL VPN-Plus only supports RSA certificates. VMware recommends RSA for backward
compatibility.
h Click OK.
9 Type the number of days the self sign certificate is valid for.
10 Click OK.
VMware, Inc. 90
NSX Administration Guide
The main benefit of implementing client certificates is that a reference client certificate for each remote
user can be stored and checked against the client certificate presented by the remote user. To prevent
future connections from a certain user, you can delete the reference certificate from the security server's
list of client certificates. Deleting the certificate denies connections from that user.
When a potential user attempts to access a server, the server allows or denies access based on the CRL
entry for that particular user.
Procedure
4 Click the Manage tab and then ensure that you are in the Settings tab.
5 Click Certificates.
9 Click OK.
Managing Appliances
You can add, edit, or delete appliances. An NSX Edge instance remains offline till at least one appliance
has been added to it.
Add an Appliance
You must add at least one appliance to NSX Edge before deploying it.
Procedure
VMware, Inc. 91
NSX Administration Guide
4 Click the Manage tab and then click the Settings tab.
6 Select the cluster or resource pool and datastore for the appliance.
8 (Optional) Select the vCenter folder within which the appliance is to be added.
9 Click Add.
Edit an Appliance
You can edit a NSX Edge appliance.
Procedure
4 Click the Manage tab and then click the Settings tab.
6
Click the Edit ( ) icon.
7 In the Edit Edge Appliance dialog box, make the appropriate changes.
8 Click Save.
Delete an Appliance
You can delete an NSX Edge appliance.
Procedure
4 Click the Manage tab and then click the Settings tab.
VMware, Inc. 92
NSX Administration Guide
An NSX Edge must have at least one internal interface before it can be deployed.
Configure an Interface
Internal interfaces are generally for East-West traffic, while uplink interfaces are for North-South traffic.
When a logical router (DLR) is connected to an edge services gateway (ESG), the interface on the router
is an uplink interface, while the interface on the ESG is an internal interface. An NSX trunk interface is for
internal networks, not external networks. The trunk interface allows multiple internal networks (either
VLAN or VXLAN) to be trunked.
An NSX edge services gateway (ESG) can have up to ten internal, uplink, or trunk interfaces. These limits
are enforced by the NSX Manager.
An NSX deployment can have up to 1,000 distributed logical router (DLR) instances on a single ESXi
host. On a single logical router, you can configure up to 8 uplink interfaces, and up to 991 internal
interfaces. These limits are enforced by the NSX Manager. For more information about interface scaling
®
in an NSX deployment, see the VMware NSX for vSphere Network Virtualization Design Guide at
https://communities.vmware.com/docs/DOC-27683.
Procedure
4 Click the Manage tab and then click the Interfaces tab.
5
Select an interface and click the Edit ( ) icon.
6 In the Edit Edge Interface dialog box, type a name for the interface.
Select Trunk when creating a sub interface. For more information, see Add a Sub Interface.
8 Select the port group or logical switch to which this interface should be connected.
b Depending on what you want to connect to the interface, click the Logical Switch, Standard
Portgroup, or Distributed Portgroup tab.
d Click Select.
VMware, Inc. 93
NSX Administration Guide
10 In Configure Subnets, click the Add ( ) icon to add a subnet for the interface.
If you enter more than one IP address, you can select the Primary IP address. An interface can have
one primary and multiple secondary IP addresses. NSX Edge considers the Primary IP address as
the source address for locally generated traffic.
You must add an IP address to an interface before using it on any feature configuration.
12 Type the subnet mask for the interface and click Save.
Option Description
Enable Proxy ARP Supports overlapping network forwarding between different interfaces.
Reverse Path Filter Verifies the reachability of the source address in packets being forwarded. In
enabled mode, the packet must be received on the interface that the router would
use to forward the return packet. In loose mode, the source address must appear
in the routing table.
16 Click OK.
Delete an Interface
You can delete an NSX Edge interface.
Procedure
4 Click the Manage tab and then click the Interfaces tab.
Enable an Interface
An interface must be enabled for NSX Edge to isolate the virtual machines within that interface (port
group or logical switch).
VMware, Inc. 94
NSX Administration Guide
Procedure
4 Click the Manage tab and then click the Interfaces tab.
Disable an Interface
You can disable an interface on an NSX Edge.
Procedure
4 Click the Manage tab and then click the Interfaces tab.
Procedure
1 Double-click an NSX Edge and navigate to Manage > Settings > Interfaces.
2 Select an interface.
5 Click OK.
VMware, Inc. 95
NSX Administration Guide
Edge
vNic 0 vNic 10
n VLAN trunk is standard and work with any version of ESXi. This is used to bring tagged VLAN traffic
into Edge.
n VXLAN trunk work only with NSX version 6.1. This is used to bring VXLAN traffic into Edge.
n DHCP
n Load Balancer
n IPSEC VPN
n L2 VPN
A sub interface cannot be used for HA or Logical Firewall. You can, however, use the IP address of the
sub interface in a firewall rule.
Procedure
1 In the Manage > Settings tab for an NSX Edge, click Interfaces.
2
Select an interface and click the Edit ( ) icon.
3 In the Edit Edge Interface dialog box, type a name for the interface.
5 Select the standard portgroup or distributed portgroup to which this interface should be connected.
b Depending on what you want to connect to the interface, click the Standard Portgroup or
Distributed Portgroup tab.
d Click Select.
7 Click Enable Sub interface and type a name for the sub interface.
VMware, Inc. 96
NSX Administration Guide
The tunnel Id is used to connect the networks that are being stretched. This value must be the same
on both the client and server sites.
9 In Backing Type, select one of the following to indicate the network backing for the sub interface.
Type the VLAN ID of the virtual LAN that your sub interface should use. VLAN IDs can range from
0 to 4094.
Click Select and select the distributed portgroup or logical switch. NSX Manager extracts the
VLAN ID and uses it in trunk configuration.
n None to create a sub interface without specifying a network or VLAN ID. This sub interface is
internal to NSX Edge, and is used to route packets between a stretched network and an
unstretched (untagged) network
10 To add subnets to the sub interface, click the Add icon in the Configure Subnets area.
11 In Add Subnets, click the Add icon to add an IP address. Type the IP address and click OK.
If you enter more than one IP address, you can select the Primary IP address. An interface can have
one primary and multiple secondary IP addresses. NSX Edge considers the Primary IP address as
the source address for locally generated traffic.
13 Edit the default MTU value for the sub interface if required.
The default MTU for a trunk interface is 1600 and the default MTU for a sub interface is 1500. The
MTU for the sub interface should be equal to or less than the lowest MTU among all the trunk
interfaces for the NSX Edge.
Since sub interfaces do not support HA, only one MAC address is required.
17 Click OK.
What to do next
Configure VLAN trunk if the sub interface added to a trunk vNic is backed by standard portgroup. See
Configure VLAN Trunk.
VMware, Inc. 97
NSX Administration Guide
Prerequisites
Verify that a sub interface with a trunk vNic backed by standard portgroup is available. See Add a Sub
Interface.
Procedure
2 Click Networking.
5 In VLAN Type, select VLAN Trunking and type the VLAN IDs to be trunked.
6 Click OK.
Procedure
4 Click the Monitor tab and then click the Settings tab.
5
Click the More Actions ( ) icon and select Change Auto Rule configuration.
Procedure
VMware, Inc. 98
NSX Administration Guide
4 Click the Monitor tab and then click the Settings tab.
5
Click the More Actions ( ) icon and select Change CLI Credentials.
7 Click OK.
For example, NSX Edge HA synchronizes the connection tracker of the statefull firewall, or the statefull
information held by the load balancer. The time required to bring all services backup is not null. Examples
of known service restart impacts include a non-zero downtime with dynamic routing when an NSX Edge is
operating as a router.
Sometimes, the two NSX Edge HA appliances are unable to communicate and unilaterally decide to
become active. This behavior is expected to maintain availability of the active NSX Edgee services if the
standby NSX Edge is unavailable. If the other appliance still exists, when the communication is re-
established, the two NSX Edge HA appliances renegotiate active and standby status. If this negotiation
does not finish and if both appliances declare they are active when the connectivity is re-established, an
unexpected behavior is observed. This condition, known as split brain, is observed due to the following
environmental conditions:
n Transient storage problems that might cause at least one NSX Edge HA VM to become unavailable.
For example, an improvement in NSX Edge HA stability and performance is observed when the VMs
are moved off overprovisioned storage. In particular, during large overnight backups, large spikes in
storage latency can impact NSX Edge HA stability.
n Congestion on the physical or virtual network adapter involved with the exchange of packets.
In addition to environmental issues, a split-brain condition is observed when the HA configuration engine
falls into a bad state or when the HA daemon fails.
VMware, Inc. 99
NSX Administration Guide
All NSX Edge services run on the active appliance. The primary appliance maintains a heartbeat with the
standby appliance and sends service updates through an internal interface.
If a heartbeat is not received from the primary appliance within the specified time (default value is 15
seconds), the primary appliance is declared dead. The standby appliance moves to the active state, takes
over the interface configuration of the primary appliance, and starts the NSX Edge services that were
running on the primary appliance. When the switch over takes place, a system event is displayed in the
System Events tab of Settings & Reports. Load Balancer and VPN services need to re-establish TCP
connection with NSX Edge, so service is disrupted for a short while. Logical switch connections and
firewall sessions are synched between the primary and standby appliances, so there is no service
disruption during switch over.
If the NSX Edge appliance fails and a bad state is reported, HA force syncs the failed appliance to revive
it. When revived, it takes on the configuration of the now-active appliance and stays in a standby state. If
the NSX Edge appliance is dead, you must delete the appliance and add a new one.
NSX Edge ensures that the two HA NSX Edge virtual machines are not on the same ESX host even after
you use DRS and vMotion (unless you manually vMotion them to the same host). Two virtual machines
are deployed on vCenter in the same resource pool and datastore as the appliance you configured. Local
link IPs are assigned to HA virtual machines in the NSX Edge HA so that they can communicate. You can
specify management IP addresses to override the local links.
If syslog servers are configured, logs in the active appliance are sent to the syslog servers.
If vSphere HA is not leveraged, the active-standby NSX Edge HA pair will survive one fail-over. However,
if another fail-over happens before the second HA pair was restored, NSX Edge availability can be
compromised.
Procedure
4 Click the Manage tab and then click the Settings tab.
Note If L2 VPN is configured on this Edge appliance before HA is enabled, there must be at least
two internal interfaces set up. If there is a single interface configured on this Edge which is already
being used by L2 VPN, HA is disabled on the Edge appliance.
7 Click OK.
Force sync is used when you need to synchronize the edge configuration as known to the NSX manager
to all of the components.
Note For 6.2 and later, force sync avoids data loss for east-west routing traffic, however, north-south
routing and bridging may experience an interruption.
n If the NSX manager is primary or stand alone, and the edge is a logical distributed router, then the
controller cluster is synced
n A message is sent to all relevant hosts to sync the distributed router instance
Important In a cross-vCenter NSX environment, it is required that theNSX Edge instance be force
synced first on the primary NSX manager and after that is complete, force sync theNSX Edge instance on
secondary NSX managers.
Procedure
4
Click the More Actions ( ) icon and select Force Sync.
Procedure
4 Click the Monitor tab and then click the Settings tab.
6 Type the IP address of both remote syslog servers and select the protocol.
Procedure
5 Select the period for which you want to view the statistics.
What to do next
To view more details about NSX Edge, click Manage and then click Settings.
Note Redeploying is a disruptive action. It is recommended that you first apply a force sync and if the
issue is not fixed, then redeploy.
n Edge appliances are deleted and freshly deployed with the latest configuration applied
n Logical routers are deleted from the controller and then recreated with the latest configuration applied
n Distributed logical router instances on hosts are deleted and then recreated with the latest
configuration applied
OSPF adjacencies are withdrawn during redeploy if graceful restart is not enabled.
Important In a cross-vCenter environment it is required that theNSX Edge instance be redeployed first
on the primary NSX manager and after that is complete, then redeploy the NSX Edge instance on
secondary NSX managers. It is required that both the primary and the secondary NSX managers are
redeployed.
Prerequisites
Verify the hosts have enough resources to deploy additional NSX Edge Services Gateway appliances
during the redeploy. See the Chapter 1 System Requirements for NSX for the resources required for each
NSX Edge size.
n For a single NSX Edge instance, there will be two NSX Edge appliances of the appropriate size in the
poweredOn state during redeploy.
n Starting in NSX 6.2.3, when redeploying an NSX Edge instance with HA, both replacement
appliances are deployed before replacing the old appliances. This means there will be four NSX Edge
appliances of the appropriate size in the poweredOn state during upgrade of a given NSX Edge.
Once the NSX Edge instance is redeployed, either of the HA appliances could become active.
n Prior to NSX 6.2.3, when redeploying an NSX Edge instance with HA , only one replacement
appliance is deployed at time while replacing the old appliances. This means there will be three NSX
Edge appliances of the appropriate size in the poweredOn state during the redeploy of a given NSX
Edge. Once the NSX Edge instance is redeployed, usually the NSX Edge appliance with HA index 0
becomes active.
Procedure
4
Click the Actions ( ) icon and select Redeploy Edge.
The NSX Edge virtual machine is replaced with a new virtual machine and all services are restored. If
redeploy does not work, power off the NSX Edge virtual machine and redeploy NSX Edge again.
n Resource pool on which the NSX Edge was installed is no longer in the vCenter inventory or its
Managed Object ID (MoId) has changed.
n dvportGroups on which the NSX Edge interfaces were connected are no longer in the vCenter
inventory or their MoId (identifier in vCenter server) has changed.
If any of the above is true, you must update the MoId of the resource pool, datastore, or dvPortGroup
using a REST API call. See NSX API Programming Guide.
Procedure
4
Click the More Actions ( ) icon and select Download Tech Support Logs.
6 In the Select location for download dialog box, browse to the directory where you want to save the log
file.
7 Click Save.
8 Click Close.
Procedure
4 Click the Manage tab and then click the Routing tab.
10 For MTU, edit the maximum transmission value for the data packets if required.
The MTU cannot be higher than the MTU set on the NSX Edge interface.
Choose a value between 1 and 255. The admin distance is used to choose which route to use when
there are multiple routes for a given network. The lower the admin distance, the higher the preference
for the route.
Connected 0
Static 1
External BGP 20
OSPF Intra-Area 30
An administrative distance of 255 causes the static route to be excluded from the routing table (RIB)
and the data plane, so the route is not used.
By default, routes have the same locale ID as the NSX Manager. Specifying a locale ID here will
associate the route with this locale ID. These routes will be sent only to hosts that have a matching
locale ID. See Cross-vCenter NSX Topologies for more information.
14 Click OK.
OSPF routing policies provide a dynamic process of traffic load balancing between routes of equal cost.
An OSPF network is divided into routing areas to optimize traffic flow and limit the size of routing tables.
An area is a logical collection of OSPF networks, routers, and links that have the same area identification.
Prerequisites
A Router ID must be configured, as shown in Example: OSPF Configured on the Logical (Distributed)
Router.
When you enable a router ID, the field is populated by default with the logical router's uplink interface.
Procedure
5 Enable OSPF.
a Click Edit at the top right corner of the window and click Enable OSPF
b In Forwarding Address, type an IP address that is to be used by the router datapath module in
the hosts to forward datapath packets.
c In Protocol Address, type a unique IP address within the same subnet as the Forwarding
Address. The protocol address is used by the protocol to form adjacencies with the peers.
c Type an Area ID. NSX Edge supports an area ID in the form of an IP address or decimal number.
NSSAs prevent the flooding of AS-external link-state advertisements (LSAs) into NSSAs. They
rely on default routing to external destinations. Hence, NSSAs must be placed at the edge of an
OSPF routing domain. NSSA can import external routes into the OSPF routing domain, thereby
providing transit service to small routing domains that are not part of the OSPF routing domain.
7 (Optional) Select the type of Authentication. OSPF performs authentication at the area level.
All routers within the area must have the same authentication and corresponding password
configured. For MD5 authentication to work, both the receiving and transmitting routers must have the
same MD5 key.
c MD5: This authentication method uses MD5 (Message Digest type 5 ) encryption. An MD5
checksum is included in the transmitted packet.
d For Password or MD5 type authentication, type the password or MD5 key.
a In Area to Interface Mapping, click the Add icon to map the interface that belongs to the OSPF
area.
b Select the interface that you want to map and the OSPF area that you want to map it to.
In most cases, it is recommended to retain the default OSPF settings. If you do change the settings,
make sure that the OSPF peers use the same settings.
a Hello Interval displays the default interval between hello packets that are sent on the interface.
b Dead Interval displays the default interval during which at least one hello packet must be
received from a neighbor before the router declares that neighbor down.
c Priority displays the default priority of the interface. The interface with the highest priority is the
designated router.
d Cost of an interface displays the default overhead required to send packets across that interface.
The cost of an interface is inversely proportional to the bandwidth of that interface. The larger the
bandwidth, the smaller the cost.
In the following screen, the logical router's default gateway is the ESG's internal interface IP address
(192.168.10.1).
The router ID is the logical router's uplink interface---in other words, the IP address that faces the ESG
(192.168.10.2).
The logical router configuration uses 192.168.10.2 as its forwarding address. The protocol address can
be any IP address that is in the same subnet and is not used anywhere else. In this case, 192.168.10.3 is
configured. The area ID configured is 0, and the uplink interface (the interface facing the ESG) is mapped
to the area.
What to do next
Make sure the route redistribution and firewall configuration allow the correct routes to be advertised.
In this example, the logical router's connected routes (172.16.10.0/24 and 172.16.20.0/24) are advertised
into OSPF.
If you enabled SSH when you created the logical router, you must also configure a firewall filter that
allows SSH to the logical router's protocol address. For example:
OSPF routing policies provide a dynamic process of traffic load balancing between routes of equal cost.
An OSPF network is divided into routing areas to optimize traffic flow and limit the size of routing tables.
An area is a logical collection of OSPF networks, routers, and links that have the same area identification.
Prerequisites
A Router ID must be configured, as shown in Example: OSPF Configured on the Edge Services Gateway.
When you enable a router ID, the field is populated by default with the ESG's uplink interface IP address.
Procedure
3 Double-click an ESG.
5 Enable OSPF.
a Click Edit at the top right corner of the window and click Enable OSPF
b (Optional) Click Enable Graceful Restart for packet forwarding to be un-interrupted during
restart of OSPF services.
c (Optional) Click Enable Default Originate to allow the ESG to advertise itself as a default
gateway to its peers.
c Type an Area ID. NSX Edge supports an area ID in the form of an IP address or decimal number.
NSSAs prevent the flooding of AS-external link-state advertisements (LSAs) into NSSAs. They
rely on default routing to external destinations. Hence, NSSAs must be placed at the edge of an
OSPF routing domain. NSSA can import external routes into the OSPF routing domain, thereby
providing transit service to small routing domains that are not part of the OSPF routing domain.
7 (Optional) Select the type of Authentication. OSPF performs authentication at the area level.
All routers within the area must have the same authentication and corresponding password
configured. For MD5 authentication to work, both the receiving and transmitting routers must have the
same MD5 key.
c MD5: This authentication method uses MD5 (Message Digest type 5 ) encryption. An MD5
checksum is included in the transmitted packet.
d For Password or MD5 type authentication, type the password or MD5 key.
a In Area to Interface Mapping, click the Add icon to map the interface that belongs to the OSPF
area.
b Select the interface that you want to map and the OSPF area that you want to map it to.
In most cases, it is recommended to retain the default OSPF settings. If you do change the settings,
make sure that the OSPF peers use the same settings.
a Hello Interval displays the default interval between hello packets that are sent on the interface.
b Dead Interval displays the default interval during which at least one hello packet must be
received from a neighbor before the router declares that neighbor down.
c Priority displays the default priority of the interface. The interface with the highest priority is the
designated router.
d Cost of an interface displays the default overhead required to send packets across that interface.
The cost of an interface is inversely proportional to the bandwidth of that interface. The larger the
bandwidth, the smaller the cost.
11 Make sure that the route redistribution and firewall configuration allow the correct routes to be
advertised.
The ESG can be connected to the outside world through a bridge, a physical router (or as shown here)
through an uplink portgroup on a vSphere distributed switch.
vSphere
ESG Distributed
switch
Physical
Architecture
192.168.100.3 192.168.100.1
Link type: uplink
192.168.10.1
Link type: internal
Transit
logical
switch
192.168.10.2
Link type: uplink
Protocol address:
192.168.10.3
DLR
172.16.20.1 172.16.10.1
Link type: internal Link type: internal
App Web
logical logical
switch switch
172.16.20.10 172.16.10.10
VM VM
app web
VM VM
In the following screen, the ESG's default gateway is the ESG's uplink interface to its external peer.
The router ID is the ESG's uplink interface IP address---in other words, the IP address that faces its
external peer.
The area ID configured is 0, and the internal interface (the interface facing the logical router) is mapped to
the area.
The connected routes are redistributed into OSPF so that the OSPF neighbor (the logical router) can
learn about the ESG's uplink network.
Note Additionally, OSPF can be configured between the ESG and its external peer router, but more
typically this link uses BGP for route advertisement.
Make sure that the ESG is learning OSPF external routes from the logical router.
To verify connectivity, make sure that an external device in the physical architecture can ping the VMs.
For example:
Configure BGP
Border Gateway Protocol (BGP) makes core routing decisions. It includes a table of IP networks or
prefixes, which designate network reachability among multiple autonomous systems.
An underlying connection between two BGP speakers is established before any routing information is
exchanged. Keepalive messages are sent by the BGP speakers in order to keep this relationship alive.
After the connection is established, the BGP speakers exchange routes and synchronize their tables.
Procedure
5 Click Edit.
7 Click Enable Graceful Restart for packet forwarding to be un-interrupted during restart of BGP
services.
8 Click Enable Default Originate to allow NSX Edge to advertise itself as a default gateway to its
peers.
9 Type the router ID in Local AS. Type the Local AS. This is advertised when BGP peers with routers in
other autonomous systems (AS). The path of ASs that a route traverses is used as one metric when
selecting the best path to a destination.
10 Click OK.
When you configure BGP peering between an edge services gateway (ESG) and a logical router, use
the logical router's protocol IP address as the ESG's BGP neighbor address.
The forwarding address is the IP address that you assigned to the distributed logical router's interface
facing its BGP neighbor (its uplink interface).
The protocol address is the IP address that the logical router uses to form a BGP neighbor
relationship. It can be any IP address in the same subnet as the forwarding address (as long as it is
not used anywhere else). When you configure BGP peering between an edge services gateway
(ESG) and a logical router, use the logical router's protocol IP address as the ESG neighbor's IP
address.
17 Hold Down Timer displays interval (180 seconds) after not receiving a keep alive message that the
software declares a peer dead. Edit if required.
18 Keep Alive Timer displays the default frequency (60 seconds) with which the software sends
keepalive messages to its peer. Edit if required.
19 If authentication is required, type the authentication password. Each segment sent on the connection
between the neighbors is verified. MD5 authentication must be configured with the same password on
both BGP neighbors, otherwise, the connection between them will not be made.
20 To specify route filtering from a neighbor, click the Add icon in the BGP Filters area.
21 Select the direction to indicate whether you are filtering traffic to or from the neighbor.
22 Select the action to indicate whether you are allowing or denying traffic.
23 Type the network in CIDR format that you want to filter to or from the neighbor.
ESG AS 64511
192.168.10.3
(protocol address)
DLR AS 64512
In this topology, the ESG is in AS 64511. The logical router (DLR) is in AS 64512.
The logical router's forwarding address is 192.168.10.2. This is the address configured on the logical
router's uplink interface. The logical router's protocol address is 192.168.10.3. This is the address that the
ESG will use to form its BGP peering relationship with the logical router.
The ESG's neighbor address is 192.168.10.3, which is the logical router's protocol address.
Run the show ip bgp neighbors command on the logical router, and make sure the BGP state is
Established.
Run the show ip bgp neighbors command on the ESG, and make sure the BGP state is Established.
A two-level hierarchy is used to support large routing domains. A large domain may be divided into areas.
Routing within an area is referred to as Level 1 routing. Routing between areas is referred to as Level 2
routing. A Level 2 Intermediate System (IS) keeps track of the paths to destination areas. A Level 1 IS
keeps track of the routing within its own area. For a packet going to another area, a Level 1 IS sends the
packet to the nearest Level 2 IS in its own area, regardless of what the destination area is. Then the
packet travels via Level 2 routing to the destination area, where it may travel via Level 1 routing to the
destination. An IS in both Level 1 and Level 2 is referred to as Level-1-2.
Procedure
Level 1 is intra-area, Level 2 is inter-area, and Level 1-2 is both. Level 2 routers are inter-area routers
that can only form relationships with other Level 2 routers. Routing information is exchanged between
Level 1 routers and other Level 1 routers. Likewise Level 2 routers only exchange information with
other Level 2 routers. Level 1-2 routers exchange information with both levels and are used to
connect the inter-area routers with the intra-area routers.
7 Type the Domain Password and Area Password. The area password is inserted and checked for
Level 1 link state packets, and the domain password for Level 2 link state packets.
c Click Save.
b Choose the Circuit Type to indicate whether you are configuring the interface for Level-1, Level-2,
or Level-1-2 adjacency.
c Hello Interval displays the default interval in milliseconds between hello packets that are sent on
the interface. Edit the default value if required.
d Hello Multiplier displays the default number of IS-IS hello packets a neighbor must miss before it
is declared down. Edit the default value if required.
e LSP Interval displays the time delay in milliseconds between successive IS-IS link-state packet
(LSP) transmissions. Edit the default value if required.
f Metric displays the default metric for the interface. This is used to calculate the cost from each
interface via the links in the network to other destinations. Edit the default value if required.
g Priority displays the priority of the interface. The interface with the highest priority becomes the
designated router. Edit the default value if required.
h In Mesh Group, type the number identifying the mesh group to which this interface belongs. Edit
the default value if required.
i Type the authentication password for the interface and click OK. Edit the default value if required.
You can exclude an interface from route redistribution by adding a deny criterion for its network. In NSX
6.2, the HA (management) interface of a logical (distributed) router is automatically excluded from route
redistribution.
Procedure
6 Select the protocols for which you enable route redistribution and click OK.
7 Add an IP prefix.
The IP prefix entered will be exactly matched, except if you include less-than-or-equal-to (LE) or
greater-than-or-equal-to (GE) modifiers.
c Click OK.
b In Learner Protocol, select the protocol that is to learn routes from other protocols.
c In Allow Learning from, select the protocols from which routes should be learned.
d Click OK.
Procedure
1 In the vSphere Web Client, navigate to Networking & Security, then under Networking & Security
Inventory click an NSX Manager.
2 Click the Summary tab. The ID field contains the UUID of the NSX Manager.
See Cross-vCenter NSX Topologies for information on routing configurations for cross-vCenter NSX
environments.
Prerequisites
The universal logical (distributed) router must have been created with local egress enabled.
Procedure
Prerequisites
The universal logical (distributed) router that performs routing for the hosts or clusters must have been
created with local egress enabled.
Procedure
4 Select the NSX Manager that manages the hosts or clusters you need to configure.
5 Select the host or cluster you want to modify, expanding clusters to display hosts if needed.
6
Click the Settings icon ( ) and click Change Locale ID.
The universal controller cluster will send only routes matching this new locale ID to the hosts.
What to do next
n Edge Firewall
n Firewall Logs
Distributed Firewall
Distributed firewall is a hypervisor kernel-embedded firewall that provides visibility and control for
virtualized workloads and networks. You can create access control policies based on VMware vCenter
objects like datacenters and clusters and virtual machine names; network constructs like IP or IPSet
addresses, VLAN (DVS port-groups), VXLAN (logical switches), security groups, as well as user group
identity from Active Directory. Firewall rules are enforced at the vNIC level of each virtual machine to
provide consistent access control even when the virtual machine gets vMotioned. The hypervisor-
embedded nature of the firewall delivers close to line rate throughput to enable higher workload
consolidation on physical servers. The distributed nature of the firewall provides a scale-out architecture
that automatically extends firewall capacity when additional hosts are added to a datacenter.
For L2 packets, distributed firewall creates a cache for performance boost. L3 packets are processed in
the following sequence:
1 All packets are checked for an existing state. This is done for SYNs too so that bogus or retransmitted
SYNs for existing sessions can be detected.
3 If a state match is not found, the packet is processed through the rules until a match is found.
n For TCP packets, a state is set only for packets with a SYN flag. However, rules that do not
specify a protocol (service ANY), can match TCP packets with any combination of flags.
n For UDP packets, 5-tuple details are extracted from the packet. If a state does not exist in the
state table, a new state is created using the extracted 5-tuple details. Subsequently received
packets are matched against the state that was just created.
n For ICMP packets, ICMP type, code, and packet direction are used to create a state.
Distributed firewall can help in creating identity-based rules as well. Administrators can enforce access
control based on the user's group membership as defined in the enterprise Active Directory. Here are
some scenarios where identity-based firewall rules can be used:
n User accessing virtual applications using a laptop or mobile device where AD is used for user
authentication
n User accessing virtual applications using VDI infrastructure where the virtual machines are Microsoft
Windows based
If you have a third-party vendor firewall solution deployed in your environment, see Redirecting Traffic to
a Vendor Solution through Logical Firewall.
Running open VMware Tools on guest or workload virtual machines has not been validated with
distributed firewall.
100 percent of CPU corresponds to the total CPU available on the host.
100 percent of RAM corresponds to the memory allocated for distributed firewall ("total max size"), which
is dependent on the total amount of RAM installed in the host.
0 - 8GB 160
128GB 4222
The memory is used by distributed firewall internal data structures, which include filters, rules, containers,
connection states, discovered IPs, and drop flows. These parameters can be manipulated using the
following API call:
https://NSX-MGR-IP/api/4.0/firewall/stats/eventthresholds
Request body:
<eventThresholds>
<cpu>
<percentValue>100</percentValue>
</cpu>
<memory>
<percentValue>100</percentValue>
</memory>
<connectionsPerSecond>
<value>100000</value>
</connectionsPerSecond>
</eventThresholds>
Edge Firewall
Edge Firewall monitors North-South traffic to provide perimeter security functionality including firewall,
Network Address Translation (NAT) as well as site-to-site IPSec and SSL VPN functionality. This solution
is available in the virtual machine form factor and can be deployed in a High Availability mode.
Firewall support is limited on the Logical Router. Only the rules on management and/or uplink interfaces
work, however, the rules on internal interfaces do not work.
Note NSX-V Edge is vulnerable to Syn-Flood attacks, where an attacker fills the firewall state tracking
table by flooding SYN packets. This DOS/DDOS attack creates a service disruption to genuine users.
Edge must defend from Syn-Flood attacks by implementing logic to detect bogus TCP connections and
terminate them without consuming Firewall state tracking resources. This feature is disabled by default.
To enable this feature in a high risk environment, set the REST API enableSynFloodProtection value
to 'true' as part of the Firewall Global Configuration.
Cross-vCenter NSX environments can have one universal L2 rule section and one universal L3 rule
section. You must manage universal rules on the primary NSX Manager, and you must create the
universal section there before you can add universal rules.
Rules outside the universal sections remain local to the primary or secondary NSX Managers on which
they are added.
Prerequisites
n In a standalone or single vCenter NSX environment there is only one NSX Manager so you do not
need to select one.
n Objects local to an NSX Manager must be managed from that NSX Manager.
n In a cross-vCenter NSX environment that does not have Enhanced Linked Mode enabled, you must
make configuration changes from the vCenter linked to the NSX Manager that you want to modify.
n In a cross-vCenter NSX environment in Enhanced Linked Mode, you can make configuration changes
to any NSX Manager from any linked vCenter. Select the appropriate NSX Manager from the NSX
Manager drop-down menu.
Procedure
1 In the vSphere Web Client, navigate to Networking & Security > Firewall.
2 If there is more than one NSX Manager available, select one. You must select the Primary NSX
Manager to add a universal section.
3 Ensure that you are in the General tab to add a section for L3 rules. Click the Ethernet tab to add a
section for L2 rules.
4
Click the Add Section ( ) icon.
5 Type a name for the section and specify the position for the new section. Section names must be
unique within NSX Manager.
6 (Optional) To create a universal section, select Mark this section for Universal Synchronization.
What to do next
Add rules to the section. You can edit the name of a section by clicking the Edit section ( ) icon for that
section.
Merging and consolidating a complex firewall configuration can help with maintenance and readability.
Procedure
1 In the vSphere Web Client, navigate to Networking & Security > Firewall.
2
For the section you want to merge, click the Merge ( ) icon and specify whether you want to merge
this section with the section above or below.
Rules from both sections are merged. The new section keeps the name of the section with which the
other section is merged.
You cannot delete a section and add it again at a different place in the firewall table. To do so, you must
delete the section and publish the configuration. Then add the deleted section to the firewall table and re-
publish the configuration.
Procedure
1 In the vSphere Web Client, navigate to Networking & Security > Firewall.
2 Ensure that you are in the General tab to delete a section for L3 rules. Click the Ethernet tab to
delete a section for L2 rules.
3 Click the Delete section ( ) icon for the section you want to delete.
Each traffic session is checked against the top rule in the Firewall table before moving down the
subsequent rules in the table. The first rule in the table that matches the traffic parameters is enforced.
Rules are displayed in the following order:
1 Rules defined in the Firewall user interface by users have the highest priority, and are enforced in top-
to-bottom ordering with a per-virtual NIC level precedence.
2 Auto-plumbed rules (rules that enable control traffic to flow for Edge services).
4 Service Composer rules - a separate section for each policy. You cannot edit these rules in the
Firewall table, but you can add rules at the top of a security policy firewall rules section. If you do so,
you must re-synchronize the rules in Service Composer. For more information, see Chapter 17
Service Composer.
Note that firewall rules are enforced only on clusters on which you have enabled firewall. For information
on preparing clusters, see the NSX Installation Guide.
The default Distributed Firewall rule allows all L3 and L2 traffic to pass through all prepared clusters in
your infrastructure. The default rule is always at the bottom of the rules table and cannot be deleted or
added to. However, you can change the Action element of the rule from Allow to Block or Reject, add
comments for the rule, and indicate whether traffic for that rule should be logged.
In a cross-vCenter NSX environment the default rule is not a universal rule. Any changes to the default
rule must be made on each NSX Manager.
Procedure
1 In the vSphere Web Client, navigate to Networking & Security > Firewall.
You can only edit Action and Log, or add comments to the default rule.
The following vCenter objects can be specified as the source or destination for a firewall rule:
Prerequisites
Make sure the state of NSX distributed firewall is not in backward compatibility mode. To check the
current state, use the REST API call GET https://<nsxmgr-ip>/api/4.0/firewall/globalroot-0/state. If the
current state is backward compatibility mode, you can change the state to forward by using the REST API
call PUT https://<nsxmgr-ip>/api/4.0/firewall/globalroot-0/state. Do not try to publish a distributed firewall
rule while the distributed firewall is in backward compatibility mode.
If you are adding universal firewall rules, see Add a Universal Firewall Rule
n One or more domains have been registered with NSX Manager. NSX Manager gets group and user
information as well as the relationship between them from each domain that it is registered with. See
Register a Windows Domain with NSX Manager.
n A security group based on Active Directory objects has been created which can be used as the
source or destination of the rule. See Create a Security Group.
If you are adding a rule based on a VMware vCenter object, ensure that VMware Tools is installed on the
virtual machines. See NSX Installation Guide.
Procedure
1 In the vSphere Web Client, navigate to Networking & Security > Firewall.
2 Ensure that you are in the General tab to add an L3 rule. Click the Ethernet tab to add an L2 rule.
3 In the section in which you add a rule, click Add rule ( ) icon.
A new any any allow rule is added at the top of the section. If the system-defined rule is the only rule
in the section, the new rule is added above the default rule.
If you want to add a rule at a specific place in a section, select a rule. In the No. column, click and
select Add Above or Add Below.
7 Point to the Source cell of the new rule. Additional icons are displayed as described in the table
below.
Option Description
To specify source as an IP address.
Click
a Select the IP address format.
You can enter multiple IP addresses in a comma-separated list. The list can
contain up to 255 characters.
You can create a new security group or IPSet. Once you create the new
object, it is added to the source column by default. For information on
creating a new security group or IPSet, see Chapter 22 Network and Security
Objects.
c To exclude a source from the rule, click Advanced options.
d Select Negate Source to exclude this source from the rule.
If Negate Source is selected, the rule is applied to traffic coming from all
sources except for the source you specified in the previous step.
If Negate Source is not selected, the rule applies to traffic coming from the
source you specified in the previous step.
e Click OK.
8 Point to the Destination cell of the new rule. Additional icons are displayed as described in the table
below.
Option Description
To specify destination as an IP address.
Click
a Select the IP address format.
You can enter multiple IP addresses in a comma-separated list. The list can
contain up to 255 characters.
You can create a new security group or IPSet. Once you create the new
object, it is added to the Destination column by default. For information on
creating a new security group or IPSet, see Chapter 22 Network and Security
Objects.
c To exclude a destination port, click Advanced options.
d Select Negate Destination to exclude this destination from the rule.
If Negate Destination is not selected, the rule applies to traffic going to the
destination you specified in the previous step.
e Click OK.
9 Point to the Service cell of the new rule. Additional icons are displayed as described in the table
below.
Option Description
To specify service as a port protocol combination.
Click
a Select the service protocol.
You can create a new service or service group. Once you create the new
object, it is added to the Selected Objects column by default.
b Click OK.
In order to protect your network from ACK or SYN floods, you can set Service to TCP-all_ports or
UDP-all_ports and set Action to Block for the default rule. For information on modifying the default
rule, see Edit the Default Distributed Firewall Rule.
10 Point to the Action cell of the new rule and click . Make appropriate selections as described in the
table below and click OK.
Action Results in
Allow Allows traffic from or to the specified source(s), destination(s), and service(s).
Block Blocks traffic from or to the specified source(s), destination(s), and service(s).
Log Logs all sessions matching this rule. Enabling logging can affect performance.
11 In Applied To, define the scope at which this rule is applicable. Make appropriate selections as
described in the table below and click OK.
All prepared clusters in your environment Select Apply this rule on all clusters on which
Distributed Firewall is enabled. After you click OK, the
Applied To column for this rule displays Distributed
Firewall.
All NSX Edge gateways in your environment Select Apply this rule on all Edge gateways. After you
click OK, the Applied To column for this rule displays All
Edges.
If both the above options are selected, the Applied To
column displays Any.
One or more cluster, datacenter, distributed virtual port 1 In Container type, select the appropriate object..
group, NSX Edge, network, virtual machine, vNIC, or logical 2 In the Available list, select one or more objects and click
switch
.
If the rule contains virtual machines/vNICS in the source and destination fields, you must add both the
source and destination virtual machines/vNICS to Applied To for the rule to work correctly.
After a few moments, a message indicating whether the publish operation was successful is
displayed. In case of any failures, the hosts on which the rule was not applied are listed. For
additional details on a failed publish, navigate to NSX Managers > NSX_Manager_IP_Address >
Monitor > System Events.
When you click Publish Changes, the firewall configuration is automatically saved. For information
on reverting to an earlier configuration, see Load Firewall Configuration.
What to do next
n
Disable a rule by clicking , or enable a rule by clicking .
n
Display additional columns in the rule table by clicking and selecting the appropriate columns.
Stats
Clicking shows the traffic related to this rule (traffic packets and size)
n Merge sections by clicking the Merge section icon and selecting Merge with above section or
Merge with below section.
Procedure
1 In the vSphere Web Client, navigate to Networking & Security > Firewall.
2 Ensure that you are in the General tab to load an L3 firewall configuration. Click the Ethernet tab to
load an L2 firewall configuration.
3
Click the Load configuration ( ) icon.
What to do next
If Service Composer rules in your configuration were overridden by the loaded configuration, click
Actions > Synchronize Firewall Rules in the Security Policies tab within Service Composer.
The primary NSX Manager can contain one universal section for universal L2 rules and one universal
section for universal L3 rules. Universal sections and universal rules can be viewed but not edited on the
secondary NSX Managers. The placement of the universal section with respect to the local section does
not interfere with rule precedence.
n universal MAC set n universal logical switch n pre-created universal services and
n universal IP set n Distributed Firewall - applies rules on service groups
n universal security group, which can all clusters on which Distributed n user created universal services and
contain an IP set, MAC set, or Firewall is installed services groups
universal security group
n universal logical switch
Note that other vCenter objects are not supported for universal rules.
Prerequisites
You must create a universal rule section before you can create universal rules. See Add a Firewall Rule
Section.
Procedure
1 In the vSphere Web Client, navigate to Networking & Security > Firewall.
3 Ensure that you are in the General tab to add an L3 universal rule. Click the Ethernet tab to add an
L2 universal rule.
4 In the universal section click the Add rule ( ) icon and then click Publish Changes.
A new any any allow rule is added at the top of the universal section.
5
Point to the Name cell of the new rule and click . Type a name for the rule.
6 Point to the Source cell of the new rule. Additional icons are displayed as described in the table
below.
Option Description
You can create a new security group or IPSet. Once you create the new
object, it is added to the source column by default. For information on
creating a new security group or IPSet, see Chapter 22 Network and Security
Objects.
c To exclude a source from the rule, click Advanced options.
d Select Negate Source to exclude this source from the rule.
If Negate Source is selected, the rule is applied to traffic coming from all
sources except for the source you specified in the previous step.
If Negate Source is not selected, the rule applies to traffic coming from the
source you specified in the previous step.
e Click OK.
7 Point to the Destination cell of the new rule. Additional icons are displayed as described in the table
below.
Option Description
To specify destination as an IP address.
Click
a Select the IP address format.
You can create a new security group or IPSet. Once you create the new
object, it is added to the Destination column by default. For information on
creating a new security group or IPSet, see Chapter 22 Network and Security
Objects.
c To exclude a destination from the rule, click Advanced options.
d Select Negate Destination to exclude this destination from the rule.
If Negate Destination is not selected, the rule applies to traffic going to the
destination you specified in the previous step.
e Click OK.
8 Point to the Service cell of the new rule. Additional icons are displayed as described in the table
below.
Option Description
You can create a new service or service group. Once you create the new
object, it is added to the Selected Objects column by default.
b Click OK.
In order to protect your network from ACK or SYN floods, you can set Service to TCP-all_ports or
UDP-all_ports and set Action to Block for the default rule. For information on modifying the default
rule, see Edit the Default Distributed Firewall Rule.
9
Point to the Action cell of the new rule and click . Make appropriate selections as described in the
table below and click OK.
Action Results in
Allow Allows traffic from or to the specified source(s), destination(s), and service(s).
Block Blocks traffic from or to the specified source(s), destination(s), and service(s).
Log Logs all sessions matching this rule. Enabling logging can affect performance.
10 In Applied To cell, either accept the default setting, Distributed Firewall, to apply the rule on all
clusters with Distributed Firewall enabled, or click the edit icon to select the universal logical
switches on which the rule is to be applied to.
The universal rule is replicated on all secondary NSX Managers. The Rule ID stays the same across all
NSX instances. To display the Rule ID, click and then click Rule ID.
Universal rules can be edited on the primary NSX Manager and are read only on secondary NSX
Managers.
Firewall rules with Universal Section Layer3 and Default Section Layer3:
What to do next
n
Disable a rule by clicking in the No. column, or enable a rule by clicking .
n
Display additional columns in the rule table by clicking and selecting the appropriate columns.
Stats
Clicking shows the traffic related to this rule (traffic packets and size)
Procedure
1
In the Firewall tab, click the Apply Filter ( ) icon.
3 Click Apply.
What to do next
To display all rules again, click the Remove applied filter ( ) icon.
Procedure
3 Type a name and description for the configuration and click OK.
NSX can save up to 100 configurations. After this limit is exceeded, saved configurations marked with
Preserve Configuration are preserved while older non-preserved configurations are deleted to make
room for preserved configurations.
n Click Revert Changes to go back to the configuration that existed before you added the rule.
When you want to publish the rule you just added, click the Load Configuration icon, select the
rule that you saved in step 3 and click OK.
1 User-defined pre rules have the highest priority and are enforced in top-to-bottom ordering with a per-
virtual NIC level precedence.
2 Auto-plumbed rules.
4 Service Composer rules - a separate section for each policy. You cannot edit these rules in the
Firewall table, but you can add rules at the top of a security policy firewall rules section. If you do so,
you must re-synchronize the rules in Service Composer. For more information, see Chapter 17
Service Composer.
You can move a custom rule up or down in the table. The default rule is always at the bottom of the table
and cannot be moved.
Procedure
1 In the Firewall tab, select the rule that you want to move.
Procedure
NSX Manager, NSX Controllers, and NSX Edge virtual machines are automatically excluded from NSX
distributed firewall protection. In addition, VMware recommends that you place the following service
virtual machines in the Exclusion List to allow traffic to flow freely.
n vCenter Server. It can be moved into a cluster that is protected by Firewall, but it must already exist in
the exclusion list to avoid connectivity issues.
n Virtual machines that require promiscuous mode. If these virtual machines are protected by NSX
distributed firewall, their performance may be adversely affected.
Procedure
4 Click the Manage tab and then click the Exclusion List tab.
6 Type the name of the virtual machine that you want to exclude and click Add.
For example:
7 Click OK.
If a virtual machine has multiple vNICs, all of them are excluded from protection. If you add vNICs to a
virtual machine after it has been added to the Exclusion List, Firewall is automatically deployed on the
newly added vNICs. In order to exclude these vNICs from firewall protection, you must remove the virtual
machine from the Exclusion List and then add it back to the Exclusion List. An alternative workaround is
to power cycle (power off and then power on) the virtual machine, but the first option is less disruptive.
VMware recommends that you install VMware Tools on each virtual machine in your environment. In
addition to providing vCenter with the IP address of VMs, it provides many other functions:
n collecting network, disk, and memory usage from the VM and sending it to the host
For those VMs that do not have VMware Tools installed, NSX will learn the IP address through ARP or
DHCP snooping, if ARP and DHCP snooping is enabled on the VM's cluster.
Procedure
1 In the vSphere Web client, navigate to Networking & Security > Installation > Host Preparation.
2
Click the cluster you want to change, then click Actions ( ) > Change IP Detection Type.
What to do next
Configure SpoofGuard.
Knowing the host resource utilization at any given time can help you in better organizing your server
utilization and network designs.
The default CPU threshold is 100, and the memory threshold is 100. You can modify the default threshold
values through REST API calls. The Firewall module generates system events when the memory and
CPU usage crosses the thresholds. For information on configuring default threshold values, see Working
with Memory and CPU Thresholds in the NSX API Guide.
Procedure
1 In the vSphere Web Client, click Networking & Security and then click NSX Managers.
2 In the Name column, click the IP address of the appropriate NSX Manager.
Firewall Logs
Firewall generates and stores log files, such as audit log, rules message log, and system event log.
n Rules message logs include all access decisions such as permitted or denied traffic for each rule if
logging was enabled for that rule. These are stored on each host in /var/log/dfwpktlogs.log.
~ # more /var/log/dfwpktlogs.log
To enable rules message logging in vSphere Web Client 6.0 (the UI might differ slightly in vSphere
5.5, but the steps are the same):
a Enable the Log column on the Networking & Security > Firewall page.
b Enable logging for a rule by hovering over the Log table cell and clicking the pencil icon.
n Audit logs include administration logs and Distributed Firewall configuration changes. These are
stored in /home/secureall/secureall/logs/vsm.log.
n System event logs include Distributed Firewall configuration applied, filter created, deleted, or failed,
and virtual machines added to security groups, etc. These are stored
in /home/secureall/secureall/logs/vsm.log.
To view audit and system event logs in the UI, navigate to Networking & Security > Installation >
Management and double-click the IP address of the NSX Manager. Then select the Monitor tab.
Firewall rules applied to a Logical Router only protect control plane traffic to and from the Logical Router
control virtual machine. They do not enforce any data plane protection. To protect data plane traffic,
create Logical Firewall rules for East-West protection or rules at the NSX Edge Services Gateway level
for North-South protection.
Rules created on the Firewall user interface applicable to this NSX Edge are displayed in a read-only
mode. Rules are displayed and enforced in the following order:
2 Auto-plumbed rules (rules that enable control traffic to flow for Edge services).
4 Default rule.
Procedure
1 In the vSphere Web Client, navigate to Networking & Security > NSX Edges.
4 Select the Default Rule, which is the last rule in the firewall table.
5
Point to the Action cell of the new rule and click .
a Click Accept to allow traffic from or to the specified source and destination.
d Click OK.
You can add multiple NSX Edge interfaces and/or IP address groups as the source and destination for
firewall rules.
Figure 10‑1. Firewall rule for traffic to flow from an NSX Edge interface to an HTTP server
Figure 10‑2. Firewall rule for traffic to flow from all internal interfaces (subnets on
portgroups connected to internal interfaces) of a NSX Edge to an HTTP Server
Note If you select internal as the source, the rule is automatically updated when you configure
additional internal interfaces.
Figure 10‑3. Firewall rule for traffic to allow SSH into a m/c in internal network
Procedure
1 In the vSphere Web Client, navigate to Networking & Security > NSX Edges.
3 Click the Manage tab and then click the Firewall tab.
Option Description
a Select an object from the drop-down and then make the appropriate selections.
If you select vNIC Group and then select vse, the rule applies to traffic generated by the NSX
Edge. If you select internal or external, the rule applies to traffic coming from any internal or
uplink interface of the selected NSX Edge instance. The rule is automatically updated when you
configure additional interfaces. Note that firewall rules on internal interfaces do not work for a
Logical Router.
If you select IP Sets, you can create a new IP address group. After you create the new group, it is
automatically added to the source column. For information on creating an IP Set, see Create an
IP Address Group.
b Click OK.
a Select an object from the drop-down and then make the appropriate selections.
If you select vNIC Group and then select vse, the rule applies to traffic generated by the NSX
Edge. If you select internal or external, the rule applies to traffic going to any internal or uplink
interface of the selected NSX Edge instance. The rule is automatically updated when you
configure additional interfaces. Note that firewall rules on internal interfaces do not work for a
Logical Router.
If you select IP Sets, you can create a new IP address group. After you create the new group, it is
automatically added to the source column. For information on creating an IP Set, see Create an
IP Address Group.
b Click OK.
n If you clicked , select a service. To create a new service or service group, click New. After you
create the new service, it is automatically added to the Service column. For more information on
creating a new service, see Create a Service.
n
If you clicked , select a protocol. You can specify the source port by clicking the arrow next to
Advanced options. VMware recommends that you avoid specifying the source port from release
5.1 and later. Instead, you can create a service for a protocol-port combination.
10 Point to the Action cell of the new rule and click . Make appropriate selections as described in the
table below and click OK.
Log Logs all sessions matching this rule. Enabling logging can affect performance.
Advanced options > Match on Applies the rule to the translated IP address and services for a NAT rule
Translated
11 Click Publish Changes to push the new rule to the NSX Edge instance.
What to do next
n
Disable a rule by clicking next to the rule number in the No. column.
n Hide generated rules or pre rules (rules added on the centralized Firewall tab) by clicking Hide
Generated rules or Hide Pre rules.
n
Display additional columns in the rule table by clicking and selecting the appropriate columns.
Stats
Clicking shows the traffic affected by this rule (number of sessions, traffic packets, and size)
Procedure
1 In the vSphere Web Client, navigate to Networking & Security > NSX Edges.
3 Click the Monitor tab and then click the Firewall tab.
Procedure
1 In the vSphere Web Client, navigate to Networking & Security > NSX Edges.
3 Click the Monitor tab and then click the Firewall tab.
4 Select the rule for which you want to change the priority.
Note You cannot change the priority of auto-generated rules or the default rule.
6 Click OK.
Procedure
1 In the vSphere Web Client, navigate to Networking & Security > NSX Edges.
3 Click the Monitor tab and then click the Firewall tab.
The NAT service configuration is separated into source NAT (SNAT) and destination NAT (DNAT) rules.
Prerequisites
n The translated (public) IP address must have been added to the NSX Edge interface on which you
want to add the rule.
Procedure
1 In the vSphere Web Client, navigate to Networking & Security > NSX Edges.
3 Click the Manage tab and then click the NAT tab.
Format Example
IP address 192.0.2.0
IP address/subnet 192.0.2.0/24
any
7 Type the translated (public) source IP address in one of the following formats.
Format Example
IP address 192.0.2.0
IP address/subnet 192.0.2.0/24
any
Prerequisites
The original (public) IP address must have been added to the NSX Edge interface on which you want to
add the rule.
Procedure
4 Click the Manage tab and then click the NAT tab.
Format Example
IP address 192.0.2.0
any
Format Example
Port number 80
any
Format Example
IP address 192.0.2.0
any
Format Example
Port number 80
any
A high level overview of the IDFW configuration workflow begins with preparing the infrastructure. This
includes the administrator installing the host preparation components on each protected cluster, and
setting up Active Directory synchronization so that NSX can consume AD users and groups. Next, IDFW
must know which desktop an Active Directory user logs onto in order to apply DFW rules. There are two
methods IDFW uses for logon detection: Guest Introspection and/or the Active Directory Event Log
Scraper. Guest Introspection is deployed on ESXi clusters where IDFW virtual machines are running.
When network events are generated by a user, a guest agent installed on the VM forwards the
information through the Guest Introspection framework to the NSX Manager. The second option is the
Active Directory event log scraper. Configure the Active Directory event log scraper in the NSX Manager
to point at an instance of your Active Directory domain controller. NSX Manager will then pull events from
the AD security event log. You can use both in your environment, or one or the other. Note that if both the
AD event log scraper and Guest Introspection are used, the two are mutually exclusive: if one of these
stops working, the other does not begin to work as a back up.
Once the infrastructure is prepared, the administrator creates NSX Security Groups and adds the newly
available AD Groups (referred to as Directory Groups). The administrator can then create Security
Policies with associated firewall rules and apply those policies to the newly created Security Groups.
Now, when a user logs into a desktop, the system will detect that event along with the IP address which is
being used, look up the firewall policy that is associated with that user, and push those rules down. This
works for both physical and virtual desktops. For physical desktops AD event log scraper is also required
to detect that a user is logged into a physical desktop.
n Windows 2012
n Windows 2008
n Windows 2008 R2
Guest OS Supported
n Windows 2012
n Windows 2008
n Windows 2008 R2
n Windows 10
n Windows 8 32/64
n Windows 7 32/64
User-based distributed firewall rules (DFW) are determined by membership in an Active Directory (AD)
group membership. IDFW monitors where Active Directory users are logged into and maps the login to an
IP Address, which is used by DFW to apply firewall rules. Identity Firewall requires either guest
introspection framework and/or active directory event log scraping.
Procedure
1 Configure Active Directory Sync in NSX, see Synchronize a Windows Domain with Active Directory.
This is required to use Active Directory groups in Service Composer.
2 Prepare the ESXi cluster for DFW. See Prepare the Host Cluster for NSX in the NSX Installation
Guide.
3 Configure Identity Firewall logon detection options. Note that you must configure one or both of these
options:
n Configure Active Directory event log access. See Register a Windows Domain with NSX
Manager.
n Windows Guest OS with guest agent installed. This comes with a complete installation of
VMware Tools ™. Deploy Guest Introspection service to protected clusters. See Install Guest
Introspection. For troubleshooting Guest Introspection, see Collecting Guest Introspection
Troubleshooting Data.
Once NSX Manager retrieves AD credentials, you can create security groups based on user identity,
create identity-based firewall rules, and run Activity Monitoring reports.
The domain account must have AD read permission for all objects in the domain tree. The event log
reader account must have read permissions for security event logs.
Procedure
3 Click an NSX Manager in the Name column and then click the Manage tab.
4 Click the Domain tab and then click the Add domain ( ) icon.
5 In the Add Domain dialog box, enter the fully qualified domain name (for example, eng.vmware.com)
and netBIOS name for the domain.
To retrieve the netBIOS name for your domain, type nbtstat -n in a command window on a
Windows workstation that is part of a domain or on a domain controller. In the NetBIOS Local Name
Table, the entry with a <00> prefix and type Group is the netBIOS name.
6 During sync, to filter out users that no longer have active accounts click Ignore disabled users .
7 Click Next.
8 In the LDAP Options page, specify the domain controller that the domain is to be synchronized with
and select the protocol.
10 Enter the user credentials for the domain account. This user must be able to access the directory tree
structure.
11 Click Next.
12 (Optional) In the Security Event Log Access page, select either CIFS or WMI for the connection
method to access security event logs on the specified AD server. Change the port number if required.
This step is used by Active Directory Event Log Scraper. See Identity Firewall Workflow.
Note The event log reader looks for events with the following IDs from the AD Security event log:
Windows 2008/2012: 4624, Windows 2003: 540. The event log server has a limit of 128 MB. When
this limit is reached you may see Event ID 1104 in the Security Log Reader. See
https://technet.microsoft.com/en-us/library/dd315518 for more information.
13 Select Use Domain Credentials to use the LDAP server user credentials. To specify an alternate
domain account for log access, un-select Use Domain Credentials and specify the user name and
password.
The specified account must be able to read the security event logs on the Domain Controller specified
in step 10.
14 Click Next.
16 Click Finish.
Attention If an error message occurs stating that the Adding Domain operation failed for the entity
because of a domain conflict, the workaround is to is to select Auto Merge.
The domain is created and its settings are displayed below the domain list.
What to do next
Verify that login events on the event log server are enabled.
You can add, edit, delete, enable, or disable LDAP servers by selecting the LDAP Servers tab in the
panel below the domain list. You can perform the same tasks for event log servers by selecting the Event
Log Servers tab in the panel below the domain list. Adding more than one Windows server (Domain
Controllers, Exchange servers, or File Servers) as an event log server improves the user identity
association.
Procedure
3 Click an NSX Manager in the Name column and then click the Manage tab.
Click To
Perform a delta synchronization, where local AD objects that changed since the
last synchronization event are updated
Perform a full synchronization, where the local state of all AD objects is updated
Procedure
3 Click an NSX Manager in the Name column and then click the Manage tab.
After creating a new user account, you must enable read-only security log access on a Windows 2008
server-based domain section to grant the user read-only access.
Note You must perform these steps on one Domain Controller of the domain, tree, or forest.
Procedure
1 Navigate to Start > Administrative Tools > Active Directory Users and Computers.
2 In the navigation tree, expand the node that corresponds to the domain for which you want to enable
security log access.
3 Under the node that you just expanded, select the Builtin node.
5 Select the Members tab in the Event Log Readers Properties dialog box.
7 If you previously created a group for the “AD Reader” user, select that group in the Select Users,
Contacts, Computers, or Groups dialog. If you created only the user and you did not create a group,
select that user in the Select Users, Contacts, Computers, or Groups dialog.
What to do next
After you have enabled security log access, verify directory privileges by following the steps in Verifying
Directory Privileges.
After you have created a new account and enabled security log access, you must verify the ability to read
the security logs.
Prerequisites
Enable security log access. See Enable Security Read-Only Log Access on Windows 2008.
Procedure
1 From any workstation that is part of the domain, log on to the domain as an administrator.
3 Select Connect to Another Computer... from the Action menu. The Select Computer dialog box
appears. (Note that you must do this even if you are already logged on to the machine for which you
plan to view the event log.)
5 In the text field adjacent to the Another computer radio button, enter the name of the Domain
Controller. Alternatively, click the Browse... button and then select the Domain Controller.
7 Click the Set User... button. The Event Viewer dialog box appears.
8 In the User name field, enter the user name for the user that you created.
9 In the Password field, enter the password for the user that you created
10 Click OK
11 Click OK again.
13 Under the Windows Logs node, select the Security node. If you can see log events then the account
has the required privileges.
You create a SpoofGuard policy for specific networks that allows you to authorize the IP addresses
reported by VMware Tools and alter them if necessary to prevent spoofing. SpoofGuard inherently trusts
the MAC addresses of virtual machines collected from the VMX files and vSphere SDK. Operating
separately from Firewall rules, you can use SpoofGuard to block traffic determined to be spoofed.
SpoofGuard supports both IPv4 and IPv6 addresses. When using IPv4, the SpoofGuard policy supports a
single IP address assigned to a vNIC. IPv6 supports multiple IP addresses assigned to a vNIC. The
SpoofGuard policy monitors and manages the IP addresses reported by your virtual machines in one of
the following modes.
Automatically Trust IP This mode allows all traffic from your virtual machines to pass while building
Assignments On Their a table of vNIC-to-IP address assignments. You can review this table at
First Use your convenience and make IP address changes. This mode automatically
approves all ipv4 and ipv6 address on a vNIC.
Manually Inspect and This mode blocks all traffic until you approve each vNIC-to-IP address
Approve All IP assignment.
Assignments Before
Use
Note SpoofGuard inherently allows DHCP requests regardless of enabled mode. However, if in manual
inspection mode, traffic does not pass until the DHCP-assigned IP address has been approved.
SpoofGuard includes a system-generated default policy that applies to port groups and logical networks
not covered by the other SpoofGuard policies. A newly added network is automatically added to the
default policy until you add the network to an existing policy or create a new policy for it.
SpoofGuard is one of the ways that an NSX distributed firewall policy can determine the IP address of a
virtual machine. For information, see IP Discovery for Virtual Machines.
n Approve IP Addresses
n Edit an IP Address
n Clear an IP Address
Procedure
1 In the vSphere Web Client, navigate to Networking & Security > SpoofGuard.
Option Description
Automatically Trust IP Assignments on Select this option to trust all IP assignments upon initial registration with the NSX
Their First Use Manager.
Manually Inspect and Approve All IP Select this option to require manual approval of all IP addresses. All traffic to and
Assignments Before Use from unapproved IP addresses is blocked.
6 Click Allow local address as valid address in this namespace to allow local IP addresses in your
setup.
When you power on a virtual machine and it is unable to connect to the DHCP server, a local IP
address is assigned to it. This local IP address is considered valid only if the SpoofGuard mode is set
to Allow local address as valid address in this namespace. Otherwise, the local IP address is
ignored.
7 Click Next.
8 To specify the scope for the policy, click Add and select the networks, distributed port groups, or
logical switches that this policy should apply to.
A port group or logical switch can belong to only one SpoofGuard policy.
What to do next
You can edit a policy by clicking the Edit icon and delete a policy by clicking the Delete icon.
Approve IP Addresses
If you set SpoofGuard to require manual approval of all IP address assignments, you must approve IP
address assignments to allow traffic from those virtual machines to pass.
Procedure
Option Description
Active Virtual NICs Since Last List of IP addresses that have been validated since the policy was last updated
Published
Virtual NICs IP Required Approval IP address changes that require approval before traffic can flow to or from these
virtual machines
Virtual NICs with Duplicate IP IP addresses that are duplicates of an existing assigned IP address within the
selected datacenter
Inactive Virtual NICs List of IP addresses where the current IP address does not match the published
IP address
Unpublished Virtual NICs IP List of virtual machines for which you have edited the IP address assignment but
have not yet published
n To approve multiple IP addresses, select the appropriate vNICs and then click Approve Detected
IP(s).
Edit an IP Address
You can edit the IP address assigned to a MAC address to correct the assigned IP address.
Note SpoofGuard accepts a unique IP address from virtual machines. However, you can assign an IP
address only once. An approved IP address is unique across NSX. Duplicate approved IP addresses are
not allowed.
Procedure
Option Description
Active Virtual NICs Since Last List of IP addresses that have been validated since the policy was last updated
Published
Virtual NICs IP Required Approval IP address changes that require approval before traffic can flow to or from these
virtual machines
Virtual NICs with Duplicate IP IP addresses that are duplicates of an existing assigned IP address within the
selected datacenter
Inactive Virtual NICs List of IP addresses where the current IP address does not match the published
IP address
Unpublished Virtual NICs IP List of virtual machines for which you have edited the IP address assignment but
have not yet published
3 For the appropriate vNIC, click the Edit icon and make appropriate changes.
4 Click OK.
Clear an IP Address
You clear an approved IP address assignment from a SpoofGuard policy.
Procedure
Option Description
Active Virtual NICs Since Last List of IP addresses that have been validated since the policy was last updated
Published
Virtual NICs IP Required Approval IP address changes that require approval before traffic can flow to or from these
virtual machines
Virtual NICs with Duplicate IP IP addresses that are duplicates of an existing assigned IP address within the
selected datacenter
Inactive Virtual NICs List of IP addresses where the current IP address does not match the published
IP address
Unpublished Virtual NICs IP List of virtual machines for which you have edited the IP address assignment but
have not yet published
n To clear multiple IP addresses, select the appropriate vNICs and then click Clear Approved
IP(s).
You must have a working NSX Edge instance before you can use VPN. For information on setting up
NSX Edge, see NSX Edge Configuration.
n L2 VPN Overview
NSX Manager
Corporate LAN
Adimin
Remote users connecting
through web access mode
Internet
NSX Edge
SSL VPN
Windows
external
Server
n Mac OS X Tiger, Leopard, Snow Leopard, Lion, Mountain Lion, Maverick, and Yosemite. These can
be installed either manually or using the Java installer.
n Linux - TCL-TK is required for UI to work. If not present, Linux client can be used using CLI.
Prerequisites
The SSL VPN gateway requires port 443 to be accessible from external networks and the SSL VPN client
requires the NSX Edge gateway IP and port 443 to be reachable from client system.
Procedure
2 Add an IP Pool
The remote user is assigned a virtual IP address from the IP pool that you add.
4 Add Authentication
Instead of a local user, you can add an external authentication server (AD, LDAP, Radius, or RSA)
which is bound to the SSL gateway. All users with accounts on the bound authentication server will
be authenticated.
6 Add a User
Add a remote user to the local database.
8 Add a Script
You can add multiple login or logoff scripts. For example, you can bind a login script for starting
Internet Explorer with gmail.com. When the remote user logs in to the SSL client, Internet Explorer
opens up gmail.com.
Procedure
1 In the SSL VPN-Plus tab, Server Settings from the left panel.
2 Click Change.
4 Edit the port number if required. This port number is required to configure the installation package.
6 (Optional) From the Server Certificates table, select the server certificate that you want to add.
7 Click OK.
Add an IP Pool
The remote user is assigned a virtual IP address from the IP pool that you add.
Procedure
1 In the SSL Vpn-Plus tab, select IP Pools from the left panel.
5 Type the IP address which is to add the routing interface in the NSX Edge gateway.
10 Type the connection-specific DNS suffix for domain based host name resolution.
12 Click OK.
Procedure
1 In the SSL Vpn-Plus tab, select Private Networks from the left panel.
6 Specify whether you want to send private network and internet traffic over the SSL VPN-Plus enabled
NSX Edge or directly to the private server by bypassing the NSX Edge.
7 If you selected Send traffic over the tunnel, select Enable TCP Optimization to optimize the
internet speed.
Conventional full-access SSL VPNs tunnel sends TCP/IP data in a second TCP/IP stack for
encryption over the internet. This results in application layer data being encapsulated twice in two
separate TCP streams. When packet loss occurs (which happens even under optimal internet
conditions), a performance degradation effect called TCP-over-TCP meltdown occurs. In essence,
two TCP instruments are correcting a single packet of IP data, undermining network throughput and
causing connection timeouts. TCP Optimization eliminates this TCP-over-TCP problem, ensuring
optimal performance.
8 When optimization is enabled, specify the port numbers for which traffic should be optimized.
Traffic for remaining ports for that specific network will not be optimized.
When TCP traffic is optimized, the TCP connection is opened by the SSL VPN server on behalf of the
client. Because the TCP connection is opened by the SSLVPN server, the first automatically
generated rule is applied, which allows all connections opened from the Edge to get passed. Traffic
that is not optimized will be evaluated by the regular Edge firewall rules. The default rule is allow any
any.
10 Click OK.
What to do next
Add Authentication
Instead of a local user, you can add an external authentication server (AD, LDAP, Radius, or RSA) which
is bound to the SSL gateway. All users with accounts on the bound authentication server will be
authenticated.
The maximum time to authenticate over SSL VPN is 3 minutes. This is because non-authentication
timeout is 3 minutes and is not a configurable property. So in scenarios where AD authentication timeout
is set to more than 3 minutes or there are multiple authentication servers in chain authorization and the
time taken for user authentication is more than 3 minutes, you will not be authenticated.
Procedure
1 In the SSL Vpn-Plus tab, select Authentication from the left panel.
4 Depending on the type of authentication server you selected, complete the following fields.
u AD authentication server
Enable SSL Enabling SSL establishes an encrypted link between a web server and a browser.
Search base Part of the external directory tree to search. The search base may be something equivalent to the
organization, group, or domain name (AD) of external directory.
Bind DN User on the external AD server permitted to search the AD directory within the defined search base.
Most of the time, the bind DN is permitted to search the entire directory. The role of the bind DN is to
query the directory using the query filter and search base for the DN (distinguished name) for
authenticating AD users. When the DN is returned, the DN and password are used to authenticate
the AD user.
Login Name against which the user ID entered by the remote user is matched with. For Active Directory,
Attribute the login attribute name is sAMAccountName.
Name
Search Filter Filter values by which the search is to be limited. The search filter format is attribute operator value.
Use this If selected, this AD server is used as the second level of authentication.
server for
secondary
authentication
Enable SSL Enabling SSL establishes an encrypted link between a web server and a browser.
Search base Part of the external directory tree to search. The search base may be something equivalent
to the organization, group, or domain name (AD) of external directory.
Bind DN User on the external server permitted to search the AD directory within the defined search
base. Most of the time, the bind DN is permitted to search the entire directory. The role of the
bind DN is to query the directory using the query filter and search base for the DN
(distinguished name) for authenticating AD users. When the DN is returned, the DN and
password are used to authenticate the AD user.
Login Attribute Name Name against which the user ID entered by the remote user is matched with. For Active
Directory, the login attribute name is sAMAccountName.
Search Filter Filter values by which the search is to be limited. The search filter format is attribute operator
value.
Use this server for If selected, this server is used as the second level of authentication.
secondary
authentication
Secret Shared secret specified while adding the authentication agent in the RSA security console.
NAS IP Address IP address to be configured and used as RADIUS attribute 4, NAS-IP-Address, without changing
the source IP address in the IP header of the RADIUS packets.
Retry Count Number of times the RADIUS server is to be contacted if it does not respond before the
authentication fails.
Use this server If selected, this server is used as the second level of authentication.
for secondary
authentication
Configuration Click Browse to select the sdconf.rec file that you downloaded from the RSA Authentication
File Manager.
Source IP IP address of the NSX Edge interface through which the RSA server is accessible.
Address
Use this server If selected, this server is used as the second level of authentication.
for secondary
authentication
Enable If selected, defines an account lockout policy. Specify the required values.
password 1 In Retry Count, type the number of times a remote user can try to access his or her account
policy after entering an incorrect password.
2 In Retry Duration, type the time period in which the remote user's account gets locked on
unsuccessful login attempts.
For example, if you specify Retry Count as 5 and Retry Duration as 1 minute, the remote
user's account will be locked if he makes 5 unsuccessful login attempts within 1 minute.
3 In Lockout Duration, type the time period for which the user account remains locked. After this
time, the account is automatically unlocked.
Use this server If selected, this server is used as the second level of authentication.
for secondary
authentication
Procedure
1 In the SSL Vpn-Plus tab, select Installation Package from the left panel.
4 In Gateway, type the IP address or FQDN of the public interface of NSX Edge.
This IP address or FQDN is binded to the SSL client. When the client is installed, this IP address or
FQDN is displayed on the SSL client.
5 Type the port number that you specified in the server settings for SSL VPN-Plus. See Add SSL VPN-
Plus Server Settings.
6 (Optional) To bind additional NSX Edge uplink interfaces to the SSL client,
c Click OK.
7 The installation package is created for Windows operating system by default. Select Linux or Mac to
create an installation package for Linux or Mac operating systems as well.
9 Select Enable to display the installation package on the Installation Package page.
Option Description
Start client on logon The SSL VPN client is started when the remote user logs on to his system.
Enable silent mode installation Hides installation commands from remote user.
Hide SSL client network adapter Hides the VMware SSL VPN-Plus Adapter, which is installed on the remote user's
computer along with the SSL VPN installation package.
Hide client system tray icon Hides the SSL VPN tray icon which indicates whether the VPN connection is
active or not.
Create desktop icon Creates an icon to invoke the SSL client on the user's desktop.
Enable silent mode operation Hides the pop-up that indicates that installation is complete.
Server security certificate validation The SSL VPN client validates the SSL VPN server certificate before establishing
the secure connection.
11 Click OK.
Add a User
Add a remote user to the local database.
Procedure
1 In the SSL Vpn-Plus tab, select Users from the left panel.
8 In Password Details, select Password never expires to always keep the same password for the
user.
9 Select Allow change password to let the user change the password.
10 Select Change password on next login if you want the user to change the password the next time
he logs in.
12 Click OK.
Procedure
1 In the SSL Vpn-Plus tab, select Dashboard from the left panel.
2
Click the icon.
The dashboard displays the status of the service, number of active SSL VPN sessions, and session
statistics and data flow details. Click Details next to Number of Active Sessions to view information
about the concurrent connections to private networks behind the NSX Edge gateway.
What to do next
1 Add an SNAT rule to translate the IP address of the NSX Edge appliance to the VPN Edge IP
address.
2 Using a web browser, navigate to the IP address of the NSX Edge interface by typing
https//NSXEdgeIPAddress.
3 Login using the user name and password that you created in the Add a User section and download
the installation package.
4 Enable port forwarding on your router for the port number used in Add SSL VPN-Plus Server
Settings.
5 Launch the VPN client, select your VPN server, and login. You can now navigate to the services on
your network. SSL VPN-Plus gateway logs are sent to the syslog server configured on the NSX Edge
appliance. SSL VPN-Plus client logs are stored in the following directory on the remote user's
computer: %PROGRAMFILES%/VMWARE/SSLVPN Client/.
Add a Script
You can add multiple login or logoff scripts. For example, you can bind a login script for starting Internet
Explorer with gmail.com. When the remote user logs in to the SSL client, Internet Explorer opens up
gmail.com.
Procedure
1 In the SSL Vpn-Plus tab, select Login/Logoff Scripts from the left panel.
3 In Script, click Browse and select the script you want to bind to the NSX Edge gateway.
Option Description
Login Performs the script action when remote user logs in to SSL VPN.
Logoff Performs the script action when remote user logs out of SSL VPN.
Both Performs the script action both when remote user logs in and logs out of SSL
VPN.
7 Click OK.
Procedure
4 Login to the SSL client with the credentials specified in the Users section.
The SSL VPN server certificate is validated depending on the client operating system.
n Windows client
Windows client is authenticated if the Server security certificate validation option was selected
when the installation package was created.
n Linux client
The SSL VPN Linux client validates the server certificate against Firefox's certificate store by
default from NSX vSphere version 6.1.3 onwards. If server certificate validation fails, you are
prompted to contact your system administrator. If server certificate validation succeeds, a log in
prompt is displayed.
Adding a trusted CA to the trust store i.e Firefox's certificate store is independent of SSL VPN
work flow.
n OS X client
The SSL VPN OS X client validates the server certificate against Keychain, a database used to
store certificates on OS X, by default from NSX vSphere version 6.1.3 onwards. If server
certificate validation fails, you are prompted to contact your system administrator. If server
certificate validation succeeds, a log in prompt is displayed.
Adding a trusted CA to the trust store i.e Keychain is independent of SSL VPN work flow.
Procedure
2 Add a User
Add a remote user to the local database.
3 Add Authentication
Instead of a local user, you can add an external authentication server (AD, LDAP, Radius, or RSA)
which is bound to the SSL gateway. All users with accounts on the bound authentication server will
be authenticated.
6 Add a Script
You can add multiple login or logoff scripts. For example, you can bind a login script for starting
Internet Explorer with gmail.com. When the remote user logs in to the SSL client, Internet Explorer
opens up gmail.com.
Procedure
4 Click the Manage tab and then click the SSL VPN-Plus tab.
8 Type the URL of the web resource that you want the remote user to access.
9 Depending on whether the remote user wants to read from or write to the web resource, select the
HTTPMethod and type the GET or POST call.
10 Type the description for the web resource. This description is displayed on the web portal when the
remote user accesses the web resource.
11 Select Enable to enable the web resource. The web resource must be enabled for the remote user to
access it.
Add a User
Add a remote user to the local database.
Procedure
1 In the SSL Vpn-Plus tab, select Users from the left panel.
8 In Password Details, select Password never expires to always keep the same password for the
user.
9 Select Allow change password to let the user change the password.
10 Select Change password on next login if you want the user to change the password the next time
he logs in.
12 Click OK.
Add Authentication
Instead of a local user, you can add an external authentication server (AD, LDAP, Radius, or RSA) which
is bound to the SSL gateway. All users with accounts on the bound authentication server will be
authenticated.
The maximum time to authenticate over SSL VPN is 3 minutes. This is because non-authentication
timeout is 3 minutes and is not a configurable property. So in scenarios where AD authentication timeout
is set to more than 3 minutes or there are multiple authentication servers in chain authorization and the
time taken for user authentication is more than 3 minutes, you will not be authenticated.
Procedure
1 In the SSL Vpn-Plus tab, select Authentication from the left panel.
4 Depending on the type of authentication server you selected, complete the following fields.
u AD authentication server
Enable SSL Enabling SSL establishes an encrypted link between a web server and a browser.
Search base Part of the external directory tree to search. The search base may be something equivalent to the
organization, group, or domain name (AD) of external directory.
Bind DN User on the external AD server permitted to search the AD directory within the defined search base.
Most of the time, the bind DN is permitted to search the entire directory. The role of the bind DN is to
query the directory using the query filter and search base for the DN (distinguished name) for
authenticating AD users. When the DN is returned, the DN and password are used to authenticate
the AD user.
Login Name against which the user ID entered by the remote user is matched with. For Active Directory,
Attribute the login attribute name is sAMAccountName.
Name
Search Filter Filter values by which the search is to be limited. The search filter format is attribute operator value.
Use this If selected, this AD server is used as the second level of authentication.
server for
secondary
authentication
Enable SSL Enabling SSL establishes an encrypted link between a web server and a browser.
Search base Part of the external directory tree to search. The search base may be something equivalent
to the organization, group, or domain name (AD) of external directory.
Bind DN User on the external server permitted to search the AD directory within the defined search
base. Most of the time, the bind DN is permitted to search the entire directory. The role of the
bind DN is to query the directory using the query filter and search base for the DN
(distinguished name) for authenticating AD users. When the DN is returned, the DN and
password are used to authenticate the AD user.
Login Attribute Name Name against which the user ID entered by the remote user is matched with. For Active
Directory, the login attribute name is sAMAccountName.
Search Filter Filter values by which the search is to be limited. The search filter format is attribute operator
value.
Use this server for If selected, this server is used as the second level of authentication.
secondary
authentication
Secret Shared secret specified while adding the authentication agent in the RSA security console.
NAS IP Address IP address to be configured and used as RADIUS attribute 4, NAS-IP-Address, without changing
the source IP address in the IP header of the RADIUS packets.
Retry Count Number of times the RADIUS server is to be contacted if it does not respond before the
authentication fails.
Use this server If selected, this server is used as the second level of authentication.
for secondary
authentication
Configuration Click Browse to select the sdconf.rec file that you downloaded from the RSA Authentication
File Manager.
Source IP IP address of the NSX Edge interface through which the RSA server is accessible.
Address
Use this server If selected, this server is used as the second level of authentication.
for secondary
authentication
Enable If selected, defines an account lockout policy. Specify the required values.
password 1 In Retry Count, type the number of times a remote user can try to access his or her account
policy after entering an incorrect password.
2 In Retry Duration, type the time period in which the remote user's account gets locked on
unsuccessful login attempts.
For example, if you specify Retry Count as 5 and Retry Duration as 1 minute, the remote
user's account will be locked if he makes 5 unsuccessful login attempts within 1 minute.
3 In Lockout Duration, type the time period for which the user account remains locked. After this
time, the account is automatically unlocked.
Use this server If selected, this server is used as the second level of authentication.
for secondary
authentication
Procedure
1 In the SSL VPN-Plus tab, Server Settings from the left panel.
2 Click Change.
4 Edit the port number if required. This port number is required to configure the installation package.
6 (Optional) From the Server Certificates table, select the server certificate that you want to add.
7 Click OK.
Procedure
1 In the SSL Vpn-Plus tab, select Dashboard from the left panel.
2
Click the icon.
The dashboard displays the status of the service, number of active SSL VPN sessions, and session
statistics and data flow details. Click Details next to Number of Active Sessions to view information
about the concurrent connections to private networks behind the NSX Edge gateway.
What to do next
1 Add an SNAT rule to translate the IP address of the NSX Edge appliance to the VPN Edge IP
address.
2 Using a web browser, navigate to the IP address of the NSX Edge interface by typing
https//NSXEdgeIPAddress.
3 Login using the user name and password that you created in the Add a User section and download
the installation package.
4 Enable port forwarding on your router for the port number used in Add SSL VPN-Plus Server
Settings.
5 Launch the VPN client, select your VPN server, and login. You can now navigate to the services on
your network. SSL VPN-Plus gateway logs are sent to the syslog server configured on the NSX Edge
appliance. SSL VPN-Plus client logs are stored in the following directory on the remote user's
computer: %PROGRAMFILES%/VMWARE/SSLVPN Client/.
Add a Script
You can add multiple login or logoff scripts. For example, you can bind a login script for starting Internet
Explorer with gmail.com. When the remote user logs in to the SSL client, Internet Explorer opens up
gmail.com.
Procedure
1 In the SSL Vpn-Plus tab, select Login/Logoff Scripts from the left panel.
3 In Script, click Browse and select the script you want to bind to the NSX Edge gateway.
Option Description
Login Performs the script action when remote user logs in to SSL VPN.
Logoff Performs the script action when remote user logs out of SSL VPN.
Both Performs the script action both when remote user logs in and logs out of SSL
VPN.
7 Click OK.
Procedure
1 In the SSL VPN-Plus tab, select Client Configuration from the left panel.
In split tunnel mode, only the VPN flows through the NSX Edge gateway. In full tunnel, the NSX Edge
gateway becomes the remote user's default gateway and all traffic (VPN, local, and internet) flows
through this gateway.
a Select Exclude local subnets to exclude local traffic from flowing through the VPN tunnel.
b Type the IP address for the default gateway of the remote user's system.
4 Select Enable auto reconnect if you would like the remote user to automatically reconnect to the
SSL VPN client after getting disconnected.
5 Select Client upgrade notification for the remote user to get a notification when an upgrade for the
client is available. The remote user can then choose to install the upgrade.
6 Click OK.
Procedure
1 In the SSL VPN-Plus tab, select General Settings from the left panel.
Select To
Prevent multiple logon using same Allow a remote user to login only once with a username.
username
Enable compression Enable TCP based intelligent data compression and improve data transfer speed.
Enable logging Maintain a log of the traffic passing through the SSL VPN gateway.
Force virtual keyboard Allow remote users to enter web or client login information only via the virtual
keyboard.
Randomize keys of virtual keyboard Make the virtual keyboard keys random.
Select To
Enable forced timeout Disconnect the remote user after the specified timeout period is over. Type the
timeout period in minutes.
Session idle timeout If there is no activity on the user session for the specified period, end the user
session after that period is over.
User notification Type a message to be displayed to the remote user after he logs in.
Enable public URL access Allow remote user to access any site which is not configured (and not listed on
web portal) by administrator.
3 Click OK.
Procedure
2 Click the Monitor tab and then click the SSL VPN-Plus tab.
6 In Logo, click Change and select the image file for the remote user's logo.
7 In Colors, click the color box next to numbered item for which you want to change the color, and
select the desired color.
9 Click OK.
For information on adding an IP pool, see Configure Network Access SSL VPN-Plus or Configure Web
Access SSL VPN-Plus.
Edit an IP Pool
You can edit an IP pool.
Procedure
3
Click the Edit ( ) icon.
5 Click OK.
Delete an IP Pool
You can delete an IP pool.
Procedure
Enable an IP Pool
You can enable an IP pool if you want an IP address from that pool to be assigned to the remote user.
Procedure
Disable an IP Pool
You can disable an IP pool if you do not want the remote user to be assigned an IP address from that
pool.
Procedure
1 In the SSL VPN-Plus tab, select IP Pool from the left panel.
3
Click the Disable ( ) icon.
Procedure
2 Select the IP pool that you want to change the order for.
For information on adding a private network, see Configure Network Access SSL VPN-Plus or Configure
Web Access SSL VPN-Plus.
Procedure
1 In the SSL VPN-Plus tab, click Private Networks in the left panel.
2 Select the network that you want to delete and click the Delete ( ) icon.
Procedure
1 In the SSL VPN-Plus tab, click Private Networks in the left panel.
Procedure
1 In the SSL VPN-Plus tab, click Private Networks in the left panel.
3
Click the Disable ( ) icon.
If you select Enable TCP Optimization for a private network, some applications such as FTP in Active
mode may not work within that subnet. To add an FTP server configured in Active mode, you must add
another private network for that FTP server with TCP Optimization disabled. Also, the active TCP private
network must be enabled, and must be placed above the subnet private network.
Procedure
1 In the SSL VPN-Plus tab, click Private Networks in the left panel.
3 Select the network that you want to change the order of.
5 Click OK.
For information on creating an installation package, see Configure Network Access SSL VPN-Plus or
Configure Web Access SSL VPN-Plus.
Procedure
1 In the SSL VPN-Plus tab, click Installation Package in the left panel.
3
Click the Edit ( ) icon.
5 Click OK.
Procedure
1 In the SSL VPN-Plus tab, click Installation Package in the left panel.
For information on adding a user, see Configure Network Access SSL VPN-Plus or Configure Web
Access SSL VPN-Plus.
Edit a User
You can edit the details for a user except for the user ID.
Procedure
2
Click the Edit ( ) icon.
4 Click OK.
Delete a User
You can delete a user.
Procedure
3 Select the user that you want to delete and click the Delete ( ) icon.
Procedure
4 Click Change password on next login to change the password when the user logs in to his system
next time.
5 Click OK.
Edit a Script
You can edit the type, description, and status of a login or logoff script that is bound to the NSX Edge
gateway.
Procedure
1 In the SSL VPN-Plus tab, click Login/Logoff Scripts in the left panel.
2
Select a script and click the Edit ( ) icon.
4 Click OK.
Delete a Script
You can delete a login or logoff script.
Procedure
1 In the SSL VPN-Plus tab, click Login/Logoff Scripts in the left panel.
Enable a Script
You must enable a script for it to work.
Procedure
1 In the SSL VPN-Plus tab, click Login/Logoff Scripts in the left panel.
Disable a Script
You can disable a login/logoff script.
Procedure
1 In the SSL VPN-Plus tab, click Login/Logoff Scripts in the left panel.
2
Select a script and click the Disable ( ) icon.
Procedure
1 In the SSL VPN-Plus tab, click Login/Logoff Scripts in the left panel.
2 Select the script that you want to change the order of and click the Move Up ( )or Move Down ( )
icon.
3 Click OK.
Behind each remote VPN router, you can configure multiple subnets to connect to the internal network
behind an NSX Edge through IPSec tunnels.
Note Subnets and the internal network behind a NSX Edge must have address ranges that do not
overlap.
If the local and remote peer across an IPsec VPN have overlapping IP addresses, traffic forwarding
across the tunnel might be not consistent depending on whether local connected routes and auto-
plumbed routes exist.
You can deploy an NSX Edge agent behind a NAT device. In this deployment, the NAT device translates
the VPN address of an NSX Edge instance to a publicly accessible address facing the Internet. Remote
VPN routers use this public address to access the NSX Edge instance.
You can place remote VPN routers behind a NAT device as well. You must provide the VPN native
address and the VPN Gateway ID to set up the tunnel. On both ends, static one-to-one NAT is required
for the VPN address.
The number of tunnels needed is defined by the number of local subnets multiplied by the number of peer
subnets. For example, if there are 10 local subnets and 10 peer subnets you need 100 tunnels. The
maximum number of tunnels supported is determined by the ESG size, as shown below.
Comp 512
act
Large 1600
Quad- 4096
Large
X- 6000
Large
n AES (AES128-CBC)
n AES256 (AES256-CBC)
n AES-GCM (AES128-GCM)
For IPSec VPN configuration examples, see Chapter 24 NSX Edge VPN Configuration Examples.
Note If you connect to a remote site via IPSec VPN, the IP address of that site cannot be learnt by
Dynamic Routing on the Edge uplink.
Procedure
4 Click the Manage tab and then click the VPN tab.
6 Click Enable.
Prerequisites
Procedure
mkdir newcerts
mkdir certs
mkdir req
mkdir private
echo "01" > serial
touch index.txt
openssl req -new -x509 -newkey rsa:2048 -keyout private/cakey.pem -out cacert.pem -days 3650
5 On NSX Edge1, generate a CSR, copy the privacy-enhanced mail (PEM) file content, and save it in a
file in req/edge1.req.
7 On NSX Edge2, generate a CSR, copy the PEM file content, and save it in a file in req/edge2.req.
9 Upload the PEM certificate at the end of the file certs/edge1.pem to Edge1.
10 Upload the PEM certificate at the end of the file certs/edge2.pem to Edge2.
11 Upload the CA certificate in the file cacert.pem to Edge1 and Edge2 as CA-signed certificates.
12 In the IPSec global configuration for Edge1 and Edge2, select the uploaded PEM certificate and the
uploaded CA certificate and save the configuration.
13 On the Certifcate tab, click the uploaded certificate and record the DN string.
15 Create IPsec VPN sites on Edge1 and Edge2 with Local ID and Peer ID as the distinguished name
(DN) string in the specified format.
Check the status by clicking Show IPsec Statistics. Click the channel to see the tunnel status. Both the
channel and tunnel status should be green.
Prerequisites
To enable certificate authentication, server certificates and corresponding CA-signed certificates must be
imported. Optionally, you can use an open-source command-line tool such as OpenSSL to generate CA-
signed certificates.
Self-signed certificates cannot be used for IPSec VPNs. They can only be used in load balancing and
SSL VPNs.
Procedure
4 Click the Manage tab and then click the VPN tab.
7 Type a global pre-shared key for those sites whose peer endpoint is set to any and select Display
shared key to display the key.
9 Click OK.
Procedure
4 Click the Manage tab and then click the VPN tab.
6 Click next to Logging Policy and click Enable logging to log the traffic flow between the local
subnet and peer subnet and select the logging level.
Procedure
4 Click the Monitor tab and then click the VPN tab.
8 Type the IP address of the NSX Edge instance in Local Id. This will be the peer Id on the remote site.
If you are adding an IP to IP tunnel using a pre-shared key, the local Id and local endpoint IP can be
the same.
10 Type the subnets to share between the sites in CIDR format. Use a comma separator to type multiple
subnets.
11 Type the Peer Id to uniquely identify the peer site. For peers using certificate authentication, this ID
must be the common name in the peer's certificate. For PSK peers, this ID can be any string. VMware
recommends that you use the public IP address of the VPN or a FQDN for the VPN service as the
peer ID.
12 Type the IP address of the peer site in Peer Endpoint. If you leave this blank, NSX Edge waits for the
peer device to request a connection.
13 Type the internal IP address of the peer subnet in CIDR format. Use a comma separator to type
multiple subnets.
Option Description
PSK (Pre Shared Key) Indicates that the secret key shared between NSX Edge and the peer site is to be
used for authentication. The secret key can be a string with a maximum length of
128 bytes.
Certificate Indicates that the certificate defined at the global level is to be used for
authentication.
16 Type the shared key in if anonymous sites are to connect to the VPN service.
17 Click Display Shared Key to display the key on the peer site.
18 In Diffie-Hellman (DH) Group, select the cryptography scheme that will allow the peer site and the
NSX Edge to establish a shared secret over an insecure communications channel.
n securelocaltrafficbyip=IPAddress to re-direct Edge's local traffic over the IPSec VPN tunnel. This
is the default value.
20 Click OK.
NSX Edge creates a tunnel from the local subnet to the peer subnet.
What to do next
Procedure
7
Click the Edit ( ) icon.
9 Click OK.
Procedure
7
Click the Disable ( ) icon.
Procedure
L2 VPN Overview
L2 VPN allows you to configure a tunnel between two sites. Virtual machines remain on the same subnet
in spite of being moved between these sites, which enables you to extend your datacenter. An NSX Edge
at one site can provide all services to virtual machines on the other site.
In order to create the L2 VPN tunnel, you configure an L2 VPN server and L2 VPN client.
Configuring L2 VPN
To stretch your network using L2 VPN, you configure an L2 VPN server (destination Edge) and an L2
VPN client (source Edge). You must then enable the L2 VPN service on both the server and the client.
Prerequisites
A sub interface must have been added on a trunk interface of the NSX Edge. See Add a Sub Interface.
Procedure
n Option 1: Separate ESXi hosts for the L2VPN Edges and the VMs
b Configure the Teaming and Failover Policy for the Distributed Port Group associated with the
Edge’s Trunk vNic as follows:
2 Configure only one uplink as Active and the other uplink as Standby.
c Configure the teaming and failover policy for the distributed port group associated with the VMs
as follows:
d Configure Edges to use sink port mode and disable promiscuous mode on the trunk vNic.
a Configure the teaming and failover policy for the distributed port group associated with Edge’s
trunk vNic as follows:
b Configure the teaming and failover policy for the distributed port group associated with the VMs
as follows:
3 The order of the active/standby uplinks must be the same for the VMs' distributed port group
and the Edge’s trunk vNic distributed port group.
c Configure the client-side standalone edge to use sink port mode and disable promiscuous mode
on the trunk vNic.
If one of you VPN sites does not have NSX deployed, you can configure an L2 VPN by deploying a
standalone NSX Edge at that site. A standalone Edge is deployed using an OVF file that represents an
Edge gateway with the purpose of acting as an L2 VPN client to be deployed on a host that is not
managed by NSX.
If a standalone edge trunk vNIC is connected to a vSphere Distributed Switch, either promiscuous mode
or a sink port is required for L2 VPN function. Using promiscuous mode can cause duplicate pings and
duplicate responses. For this reason, we recommend using sink port mode in the L2 VPN standalone
NSX Edge configuration.
Prerequisites
You need the port number of the trunk vNIC of the standalone edge.
Procedure
b Click content.
c Click the link associated with the rootFolder (for example: group-d1 (Datacenters)).
d Click the link associated with the childEntity (for example: datacenter-1).
e Click the link associated with the networkFolder (for example: group-n6).
f Click the DVS name link for the vSphere distributed switch associated with the NSX Edges (for
example: dvs-1 (Mgmt_VDS)).
b Click content.
c Click DVSManager.
d Click updateOpaqueDataEx.
<selectionSet xsi:type="DVPortSelection">
<dvsUuid>c2 1d 11 50 6a 7c 77 68-e6 ba ce 6a 1d 96 2a 15</dvsUuid> <!--example only-->
<portKey>393</portKey> <!--port number of the DVPG where SINK to be set-->
</selectionSet>
Use the dvsUuid value that you retrieved from the vCenter MOB.
f On the opaqueDataSpec value box paste one of the following XML blocks:
<opaqueDataSpec>
<operation>edit</operation>
<opaqueData>
<key>com.vmware.etherswitch.port.extraEthFRP</key>
<opaqueData
xsi:type="vmodl.Binary">AAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAA=</opaqueData>
</opaqueData>
</opaqueDataSpec>
<opaqueDataSpec>
<operation>edit</operation>
<opaqueData>
<key>com.vmware.etherswitch.port.extraEthFRP</key>
<opaqueData
xsi:type="vmodl.Binary">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAA=</opaqueData>
</opaqueData>
</opaqueDataSpec>
Procedure
2 In Listener IP, type the primary or secondary IP address of an external interface of the NSX Edge.
3 The default port for the L2 VPN service is 443. Edit this if required.
4 Select the encryption algorithm for communication between the server and the client.
6 Click OK.
Note Changing site configuration settings causes the NSX Edge to disconnect and reconnect all existing
connections.
Procedure
4 Type the user name and password with which the peer site is to be authenticated. User credentials on
the peer site should be the same as those on the client side.
5 In Stretched Interfaces, click Select Sub Interfaces to select the sub interfaces to be stretched with
the client.
c Click OK.
6 If the default gateway for virtual machines is same across the two sites, type the gateway IP
addresses for which the traffic should be locally routed or for which traffic is to be blocked over the
tunnel in Egress Optimization Gateway Address.
Procedure
1 For the destination NSX Edge, navigate to Manage > VPN > L2 VPN.
What to do next
Create NAT or firewall rule on the internet facing firewall side to enable the client and server to connect to
each other.
You can also configure a standalone Edge as the L2 VPN client. See Configure Standalone Edge as L2
VPN Client.
Procedure
1 In the L2 VPN tab, set the L2 VPN Mode to Client and click Change.
2 Type the address of the L2 VPN server to which this client is to be connected. The address can be
the host name or IP address.
3 If required, edit the default port to which the L2 VPN client should connect to.
5 In Stretched Interfaces, click Select Sub Interfaces to select the sub interfaces to be stretched to
the server.
c Click OK.
6 Type a description.
7 In Egress Optimization Gateway Address, type the gateway IP address of the sub interfaces or the
IP addresses to which traffic should not flow over the tunnel.
8 In User Details, type the user credentials to get authenticated at the server..
If the client NSX Edge does not have direct access to the internet and needs to reach the source
(server) NSX Edge via a proxy server, specify Proxy Settings.
11 Type the proxy server address, port, user name, and password.
12 To enable server certificate validation, select Validate Server Certificate and select the appropriate
CA certificate.
What to do next
Ensure that the internet facing firewall allows traffic to flow from L2 VPN Edge to the internet. The
destination port is 443.
Procedure
1 For the source NSX Edge, navigate to Manage > VPN > L2 VPN.
What to do next
n Create NAT or firewall rule on the internet facing firewall side to enable the client and server to
connect to each other.
n If a trunk vNic backed by standard portgroup is being stretched, enable L2 VPN traffic manually by
the following steps:
For more information, see ESXi and vCenter Server 5.5 Documentation.
Prerequisites
You have created a trunk port group for the trunk interface of the standalone edge to connect to. This port
group requires some manual configuration:
n If the trunk port group is on a vSphere Standard Switch you must do the following:
n If the trunk port group is on a vSphere Distributed Switch you must do the following:
n Enable sink port for the trunk vNic, or enable promiscuous mode. Enabling a sink port is the
recommended best practice.
Sink port configuration must be done after the standalone edge has been deployed, because you
need to change the configuration of the port connected to the edge trunk vNIC.
Procedure
1 Using vSphere Web Client, log in to the vCenter Server that manages the non-NSX environment.
2 Select Hosts and Clusters and expand clusters to show the available hosts.
3 Right-click the host where you want to install the standalone Edge and select Deploy OVF Template.
4 Enter the URL to download and install the OVF file from the internet or click Browse to locate the
folder on your computer that contains the standalone Edge OVF file and click Next.
5 On the OVF Template Details page, verify the template details and click Next.
6 On the Select name and folder page, type a name for the standalone Edge and select the folder or
datacenter where you want to deploy. Then click Next.
7 On the Select storage page, select the location to store the files for the deployed template.
8 On the Select networks page, configure the networks the deployed template should use. Click Next.
n The Trunk interface is used to create sub-interfaces for the networks that will be stretched.
Connect this interface to the trunk port group you created.
d Type the uplink IP address and prefix length, and optionally default gateway and DNS IP address.
e Select the cipher to be used for authentication. This should match the cipher used on the L2VPN
server.
f To enable Egress Optimization, type the gateway IP addresses for which traffic should be locally
routed or for which traffic is to be blocked over the tunnel.
h Type the user name and password with which the peer site is to be authenticated.
i In Sub Interfaces VLAN (Tunnel ID), type VLAN ID(s) of the network(s) you want to stretch. You
can list the VLAN IDs as a comma separated list or range. For example, 2,3,10-20.
If you want to change the VLAN ID of the network before stretching it to the standalone Edge site,
you can type the VLAN ID of the network and then type the tunnel ID in brackets. For example,
2(100),3(200). The Tunnel ID is used to map the networks that are being stretched. However, you
cannot specify the tunnel ID with a range. So this would not be allowed: 10(100)-14(104). You
would need to rewrite this as 10(100),11(101),12(102),13(103),14(104).
j If the standalone NSX Edge does not have direct access to the internet and needs to reach the
source (server) NSX Edge via a proxy server, type the proxy address, port, user name, and
password.
l Click Next.
10 On the Ready to complete page, review the standalone Edge settings and click Finish.
What to do next
Note the trunk vNIC port number and configure a sink port. See Configure a Sink Port .
Make any further configuration changes with the standalone edge command line interface. See the NSX
Command Line Interface Reference.
Procedure
If the L2 VPN server has multiple peer sites, statistics are displayed for all the peer sites.
What to do next
To see the networks configured on a trunk interface, navigate to Manage > Settings > Interfaces for the
Edge and click Trunk in the Type column.
You map an external, or public, IP address to a set of internal servers for load balancing. The load
balancer accepts TCP, UDP, HTTP, or HTTPS requests on the external IP address and decides which
internal server to use. Port 80 is the default port for HTTP and port 443 is the default port for HTTPs.
You must have a working NSX Edge instance before you can load balancing. For information on setting
up NSX Edge, see NSX Edge Configuration.
For information on configuring an NSX Edge certificate, see Working with Certificates.
NSX load balancer supports the layer 4 and layer 7 load balancing engines. The layer 4 load balancer is
packet-based and layer 7 load balancer is socket-based.
A packet-based load balancing is implemented on the TCP and UDP layer. Packet-based load balancing
does not stop the connection or buffer the whole request, instead it sends the packet directly to the
selected server after manipulating the packet. TCP and UDP sessions are maintained in the load
balancer so that packets for a single session are directed to the same server. You can select Acceleration
Enable in both the global configuration and relevant virtual server configuration to enable packet-based
load balancing.
A socket-based load balancing is implemented on top of the socket interface. Two connections are
established for a single request, a client-facing connection and a server-facing connection. The server-
facing connection is established after server selection. For HTTP socket-based implementation, the whole
request is received before sending to the selected server with optional L7 manipulation. For HTTPS
socket-based implementation, authentication information is exchanged either on the client-facing
connection or server-facing connection. Socket-based load balancing is the default mode for TCP, HTTP,
and HTTPS virtual servers.
The key concepts of the NSX load balancer are, virtual server, server pool, server pool member, and
service monitor.
Service Monitor Defines how to probe the health status of a backend server.
You begin by setting global options for the load balancer. You now create a server pool consisting of
backend server members and associate a service monitor with the pool to manage and share the
backend servers efficiently.
You then create an application profile to define the common application behavior in a load balancer such
as client SSL, server SSL, x-forwarded-for, or persistence. Persistence sends subsequent requests with
similar characteristic such as, source IP or cookie are required to be dispatched to the same pool
member, without running the load balancing algorithm. The application profile can be reused across
virtual servers.
You then create an optional application rule to configure application-specific settings for traffic
manipulation such as, matching a certain URL or hostname so that different requests can be handled by
different pools. Next, you create a service monitor to define health check parameters for the load
balancer.
When the virtual server receives a request, the load balancing algorithm considers pool member
configuration and runtime status. The algorithm then calculates the appropriate pool to distribute the
traffic comprising one or more members. The pool member configuration includes settings such as,
weight, maximum connection, and condition status. The runtime status includes current connections,
response time, and health check status information. The calculation methods can be round-robin,
weighted round-robin, least connection, or source IP hash.
Each pool is monitored by the associated service monitor. When the load balancer detects a problem with
a pool member, it is marked as DOWN. Only UP server is selected when choosing a pool member from
the server pool. If the server pool is not configured with a service monitor, all the pool members are
considered as UP.
Procedure
5 Click Edit.
Option Description
Enable Load Balancer Allows the NSX Edge load balancer to distribute traffic to internal servers for load
balancing.
Enable Acceleration When enabled globally, each virtual IP uses the faster L4 LB engine rather than
L7 LB engine.
The L4 TCP VIP is processed before the Edge Firewall so no Allow firewall rule is
required. L7 HTTP/HTTPS VIPs are processed after the Edge Firewall.
If Enable Acceleration is selected, an Edge Firewall rule must allow access to the
L7 HTTP/HTTPS VIP.
If the Enable Acceleration flag is selected with L4 TCP VIP, and the server pool is
in non-transparent mode, an SNAT rule is added. Therefore, make sure that
Firewall is enabled on NSX Edge.
If the Enable Acceleration flag is deselected with L4 TCP VIP and the firewall is
enable, then the Edge Firewall rule must allow access to the L7 HTTP/HTTPS
VIP.
Enable Service Insertion Allows the load balancer to work with third party vendor services.
If you have a third party vendor load balancer service deployed in your
environment, see Using a Partner Load Balancer.
7 Click OK.
Procedure
9 Enter the number of times the server must be pinged before it is declared down.
10 Enter the maximum time in seconds within which a response from the server must be received.
11 Select the way in which to send the health check request to the server from the drop-down menu.
a Enter the string that the monitor expects to match in the status line of HTTP response in the
Expected section.
b Select the method to detect server status from the drop-down menu.
13 Enter the string to be matched in the response content in the Receive section.
If the string in the Expected section is not matched, the monitor does not try to match the Receive
content.
A sample extension, warning=10, indicates that if a server does not respond within 10 seconds, the
status is set as warning.
<extension>eregi="(OK1|OK2)"</extension>
escape Can use \n, \r, \t, or \ in send or quit string. Must come
before send or quit option. Default: nothing added to
send, \r\n added to end of quit.
refuse=ok|warn|crit Accept TCP refusals with states ok, warn, or criti Default is
crit.
no-body Do not wait for document body: stop reading after headers.
Note that this still does an HTTP GET or POST, not a HEAD.
15 Click OK.
What to do next
Procedure
Option Description
IP-HASH Selects a server based on a hash of the source IP address and the total weight of
all the running servers.
Algorithm parameters are disabled for this option.
ROUND_ROBIN Each server is used in turn according to the weight assigned to it.
This is the smoothest and fairest algorithm when the server's processing time
remains equally distributed.
Algorithm parameters are disabled for this option.
Option Description
URI The left part of the URI (before the question mark) is hashed and divided by the
total weight of the running servers.
The result designates which server receives the request. This ensures that a URI
is always directed to the same server as long as no server goes up or down.
The URI algorithm parameter has two options uriLength=<len> and
uriDepth=<dep>. The length parameter range should be 1<=len<256. The depth
parameter range should be 1<=dep<10.
Length and depth parameters are followed by a positive integer number. These
options can balance servers based on the beginning of the URI only. The length
parameter indicates that the algorithm should only consider the defined
characters at the beginning of the URI to compute the hash.
The depth parameter indicates the maximum directory depth to be used to
compute the hash. One level is counted for each slash in the request. If both
parameters are specified, the evaluation stops when either is reached.
URL URL parameter specified in the argument is looked up in the query string of each
HTTP GET request.
If the parameter is followed by an equal sign = and a value, then the value is
hashed and divided by the total weight of the running servers. The result
designates which server receives the request. This process is used to track user
identifiers in requests and ensure that a same user ID is always sent to the same
server as long as no server goes up or down.
If no value or parameter is found, then a round robin algorithm is applied.
The URL algorithm parameter has one option urlParam=<url>.
9 (Optional) Select an existing default or custom monitor from the Monitors drop-down menu.
b Enter the name and IP address of the server member or click Select to assign grouping objects.
c Enter the port where the member is to receive traffic on and the monitor port where the member
is to receive health monitor pings.
Port value should be null if the related virtual server is configured with a port range.
d Enter the proportion of traffic this member is to handle in the Weight section.
e Enter the maximum number of concurrent connections the member can handle.
If the incoming requests goes higher than the maximum, they are queued and wait for a
connection be released.
f Enter the minimum number of concurrent connections a member must always accept.
g Click OK.
If Transparent is not selected (default value), backend servers see the traffic source IP address as a
Load balancer internal IP address. If Transparent is selected, source IP address is the real client IP
address and NSX Edge must be set as the default gateway to ensure that return packets go through
the NSX Edge device.
12 Click OK.
Procedure
7 Type a name for the profile and select the traffic type for which you are creating the profile from the
drop-down menu.
UDP Source IP
9 Specify persistence type for the profile from the drop-down menu.
Persistence tracks and stores session data, such as the specific pool member that serviced a client
request. With persistence, client requests are directed to the same pool member throughout the life of
a session or during subsequent sessions.
n Select Cookie persistence to insert a unique cookie to identify the session the first time a client
accesses the site.
The cookie is referred in subsequent requests to persist the connection to the appropriate server.
When a client requests a connection to a virtual server that supports source address affinity
persistence, the load balancer checks to see if that client previously connected, and if so, returns
the client to the same pool member.
n Select Microsoft Remote Desktop Protocol MSRDP persistence to maintain persistent sessions
between Windows clients and servers that are running the Microsoft Remote Desktop Protocol
(RDP) service.
The recommended scenario for enabling MSRDP persistence is to create a load balancing pool
that consists of members running Windows Server 2003 or Windows Server 2008, where all
members belong to a Windows cluster and participate in a Windows session directory.
10 Type a cookie name and select the mode by which the cookie should be inserted.
Option Description
Prefix This option is selected if your client does not support more than one cookie.
Note All browsers accept multiple cookies. If you have a proprietary application
using a proprietary client that supports only one cookie. The Web server sends its
cookie as usual. NSX Edge injects (as a prefix) its cookie information in the server
cookie value. This cookie added information is removed when NSX Edge sends it
to the server.
App Session The server does not send a cookie. Instead, it sends the user session information
as a URL.
For example,
http://mysite.com/admin/UpdateUserServlet;jsessionid=OI24B9ASD7BSSD,
where jsessionid is the user session information and is used for the
persistence. It is not possible to see the App Session persistence table for
troubleshooting.
For the L7 load balancing TCP source IP persistence scenario, the persistence entry times out if no
new TCP connections are made for a period of time, even if the existing connections are still alive.
n SSL Offloading - Client -> HTTPS -> LB (terminate SSL) -> HTTP -> server
n SSL Proxy - Client -> HTTPS -> LB (terminate SSL) -> HTTPS -> server
n SSL Passthrough - Client -> HTTPS-> LB (SSL passthrough) -> HTTPS -> server
a (Optional) Check Insert X-Forwarded-For HTTP header to identify the originating IP address of
a client connecting to a Web server through the load balancer.
b Check Configure Service Certificate to select the applicable service certificate, CA certificates,
and CRLs used to terminate the HTTPS traffic from the client on the load balancer in the Virtual
Server Certificates tab.
c (Optional) Check Enable Pool Side SSL to enable the HTTPS communication between the load
balancer and the backend servers.
You can use the pool side SSL to configure End-to-End SSL.
d (Optional) Check Configure Service Certificate to select the applicable service certificate, CA
certificates, and CRLs used to authenticate the load balancer from the server side in the Pool
Certificates tab.
This is only required for the pattern Client -> HTTPS -> LB -> HTTPS -> servers.
You can configure service certificate if the NSX Edge load balancer has CA certificate and CRL
already configured and needs to verify service certificate from backend servers. This option can
also be used to provide load balancer certificate to backend server if the backend server needs to
verify the load balancer side service certificate.
13 Enter the cipher algorithms or cipher suite negotiated during the SSL/TLS handshake.
For example, you can allow only 3DES cipher suites to be used.
14 Specify whether client authentication is to be ignored or required from the drop-down menu.
If you select required, the client must provide a certificate after the request or the handshake is
aborted.
15 Click OK.
Procedure
8 Click OK.
An application profile allows you to specify HTTP/HTTPS redirection, which always redirects traffic
regardless of the request URLs. You also have the flexibility to specify the conditions in which
HTTP/HTTPS traffic should be redirected.
You can create an application rule to direct requests to a specific load balancer pool according to domain
name. The following rule direct requests to foo.com to pool_1, and requests to bar.com to pool_2.
In the following sample scenario, the load balancer balances a new user to the less loaded server and
resumes a broken session. The NSX Edge internal interface IP address for this scenario is 10.0.0.18,
internal interface IP address is 192.168.1.1, and the virtual servers are 192.168.1.100, 192.168.1.101,
and 192.168.1.102.
# Each user is supposed to get a single active connection at a time, block the second one
tcp-request content reject if { sc1_conn_cur ge 2 }
# if a user tried to get connected at least 10 times over the last minute,
# it could be a brute force
tcp-request content reject if { sc1_conn_rate ge 10 }
7 Associate the application profile to this virtual server and add the application rule created in step 4.
The newly applied application rule on the virtual server protects the RDP servers.
Advanced Logging
By default, NSX load balancer supports basic logging. You can create an application rule as follows to
view more detailed logging messages for troubleshooting.
After you associate the application rule to the virtual server, logs include detailed messages such as the
following example.
To troubleshoot the HTTPS traffic, you may need to add more rules. Most web application use 301/302
responses with a location header to redirect the client to a page (most of the time after a login or a POST
call) and also require an application cookie. So your application server may have difficulty in getting to
know client connection information and may not be able to provide the correct responses: it may even
stop the application from working.
To allow the web application to support SSL offloading, add the following rule.
# See clearly in the log if the application is setting up response for HTTP or HTTPS
capture response header Location len 32
capture response header Set-Cookie len 32
# Provde client side connection info to application server over HTTP header
http-request set-header X-Forwarded-Proto https if { ssl_fc }
http-request set-header X-Forwarded-Proto http if !{ ssl_
The load balancer inserts the following header when the connection is made over SSL.
X-Forwarded-Proto: https
The load balancer inserts the following header when the connection is made over HTTP.
X-Forwarded-Proto: http
You can block requests that contain specific keywords in the URL. The following sample rule checks if the
request starts with /private or /finance and blocks the requests that have those terms.
You can redirect a client request that does not have a cookie to get an authentication. The following
sample rule checks if the HTTP request is authentic and has cookies in the header. If the request does
not have cookies then the rule redirects the request to / authent.php for authentication.
You can redirect the client request / to a default page. The following sample rule checks if the HTTP
request is / and redirects the request to a default login page.
When the primary pool is down, you can use a maintenance server pool and redirect the URL to the
maintenance Web site.
When you do not want to close the server session after each request, you can keep the server session
alive and secure with the NTLM protocol.
no option http-server-close
You can delete the existing response server header and replace it with another server. The following
sample rule deletes the server header and replaces it with the NGINX Web server that can act as a
reverse proxy server for HTTP, HTTPS, SMTP, POP3, and IMAP protocols, HTTP cache, and a load
balancer.
rspidel Server
rspadd Server:\ nginx
Rewrite Redirect
You can rewrite the Location header from HTTP to HTTPS. The following sample rule identifies the
Location header and replaces the HTTP with HTTP.
You can redirect requests with a specific host to defined pools. The following sample rule checks for the
request for specific hosts app1.xyz.com, app2.xyz.com, and host_any_app3 and redirects these requests
respectively to defined pools, pool_app1, or pool_app2, and pool_app3. All other requests are redirected
to existing pools defined in the Virtual Server.
You can redirect requests with URL keywords to specific pools. The following sample rule checks if the
request starts with /private or /finance and redirects these requests to defined pools, pool_private or
pool_finance. All other requests are redirected to existing pools defined in the Virtual Server.
If your servers in the primary pool are down, you can redirect users to use the servers in the secondary
pool. The following sample rule checks in the pool_production is down and transfers users to
pool_sorry_server.
You can block client IP addresses from accessing your server. The following sample rule blocks the
defined IP address and rests the connection if the IP address is not in the whitelist.
By default, sslv3 and tlsv1 are disabled service monitor extensions. You can enable them using the
following application rule.
sslv3 enable
tlsv1 enable
Session timeout is the maximum connection inactivity time on the client side. The inactivity timeout
applies when the client is expected to acknowledge or send data. In the HTTP mode, this timeout is
particularly important to consider during the first phase, when the client sends the request, and during the
response while the client is reading the data sent by the server. The default timeout value is five minutes.
The following sample rule sets the timeout period to 100 seconds.
Time can be set as an integer with milliseconds, seconds, minutes, hour, or days.
Prerequisites
n If you are associating an application rule with the virtual server, see Create an Application Profile.
n If you are enabling acceleration to use the faster load balancer, the acceleration should be enabled
when configuring the load balancer. See Configure Load Balancer Service.
Procedure
7 Check Enable Virtual Server to make this virtual server available for use.
8 (Optional) Check Enable Acceleration for the NSX Edge load balancer to use the faster L4 load
balancer engine rather than L7 load balancer engine.
If a virtual server configuration such as application rules, HTTP type, or cookie persistence, is using
the L7 load balancer engine, then the L7 load balancer engine is used even if you enabled
acceleration or not.
You can use the show service load balancer virt CLI command to confirm the load balancer
engine in use.
You can associate only an application profile with the same protocol as the virtual server that you are
adding. The services supported by the selected pool appear.
11 Click Select IP Address to set the IP address that the load balancer is listening on and type the
protocol that the virtual server will handle.
The Select IP Address dialog box shows only the primary IP address. If you are creating a VIP using
a secondary IP address, enter it manually.
12 Select the protocol that the virtual server handles from the drop-down menu.
13 Enter the port number that the load balancer listens on.
You can also set a range of ports for example, 80,8001-8004,443, to share the virtual server
configuration such as, server pool, application profile, and application rule.
To use FTP, the TCP protocol must have port 21 assigned to it.
15 Enter the maximum concurrent connections that the virtual server can process in the Connection
Limit section.
16 Enter the maximum incoming new connection requests per second in the Connection Rate Limit
section.
17 (Optional) Click the Advanced tab and add the application rule to associate it with the virtual server.
18 Click OK.
Procedure
4 Click the Monitor tab and then click the Load Balancer tab.
6
Select a profile and click the Edit ( ) icon.
7 Make the appropriate changes to traffic, persistence, certificate, or cipher configuration and click
Finish.
Prerequisites
Go to Manage > Settings > Certificates to ensure that a valid certificate is present.
Procedure
1 In the application profile at Manage > Load Balancer > Application Profiles.
Procedure
Procedure
Procedure
Procedure
4 Click the Monitor tab and then click the Load Balancer tab.
7
Click the Edit ( ) icon.
Procedure
u In the server pool configuration at Manage > Load Balancer > Pools, enable transparent mode.
Procedure
4 Click the Monitor tab and then click the Load Balancer tab.
Procedure
4 Click the Monitor tab and then click the Load Balancer tab.
7
Click the Edit ( ) icon.
Procedure
4 Click the Monitor tab and then click the Load Balancer tab.
Procedure
Procedure
Prerequisites
To work around this, add the following application rule on the VIP load balancing the Web servers using
NTLM authentication:
add # NTLM authentication and keep the server connection open between requests
no option http-server-close
This application rule keeps the server connection open between requests.
Logic Network
VM VM VM
Legend
Request
Responce
In proxy mode, the load balancer uses its own IP address as the source address to send requests to a
backend server. The backend server views all traffic as being sent from the load balancer and responds
to the load balancer directly. This mode is also called SNAT mode or non-transparent mode.
A typical NSX one-armed load balancer is deployed on the same subnet with its backend servers, apart
from the logical router. The NSX load balancer virtual server listens on a virtual IP for incoming requests
from client and dispatches the requests to backend servers. For the return traffic, reverse NAT is required
to change the source IP address from the backend server to a virtual IP (VIP) address and then send the
virtual IP address to the client. Without this operation, the connection to the client would break.
After the ESG receives the traffic, it performs two operations: Destination Network Address Translation
(DNAT) to change the VIP address to the IP address of one of the load balanced machines, and Source
Network Address Translation (SNAT) to exchange the client IP address with the ESG IP address.
Then the ESG server sends the traffic to the load balanced server and the load balanced server sends
the response back to the ESG then back to the client. This option is much easier to configure than the
Inline mode, but has two potentials caveats. The first is that this mode requires a dedicated ESG server,
and the second is that the load balancer servers are not aware of the original client IP address. One
workaround for HTTP/HTTPS applications is to enable Insert X-Forwarded-For in the HTTP application
profile so that the client IP address will be carried in the X-Forwarded-For HTTP header in the request
sent to the backend server.
If client IP address visibility is required on the backend server for applications other than HTTP/HTTPS,
you can configure the IP pool to be transparent. In case clients are not on the same subnet as the
backend server, inline mode is recommended. Otherwise, you must use the load balancer IP address as
the default gateway of the backend server.
In DSR mode, the backend server responds directly to the client. Currently, NSX load balancer does not
support DSR.
Procedure
1 Create a certificate by double-clicking the Edge and then selecting Manage > Settings > Certificate.
2 Enable the load balancer service by selecting Manage > Load Balancer > Global Configuration >
Edit.
3 Create an HTTPS application profile by selecting Manage > Load Balancer > Application Profiles.
Note The screenshot above uses self-signed certificates for documentation-purposes only.
4 Optionally, click Manage > Load Balancer > Service Monitoring and edit the default service
monitoring to change it from basic HTTP/HTTPS to specific URL/URIs, as required.
5 Create server pools by selecting Manage > Load Balancer > Pools.
To use SNAT mode, leave the Transparent check box unchecked in the pool configuration.
6 Optionally, click Manage > Load Balancer > Pools > Show Pool Statistics to check the status.
7 Create a virtual server by selecting Manage > Load Balancer > Virtual Servers.
If you would like to use the L4 load balancer for UDP or higher-performance TCP, check Enable
Acceleration. If you check Enable Acceleration, make sure that the firewall status is Enabled on
the load balancer NSX Edge, because a firewall is required for L4 SNAT.
8 Optionally, if using an application rule, check the configuration in Manage > Load Balancer >
Application Rules.
9 If using an application rule, ensure that the application rule is associated with the virtual server in
Manage > Load Balancer > Virtual Servers > Advanced.
In non-transparent mode, the backend server cannot see the client IP, but can see the load balancer
internal IP address. As a workaround for HTTP/HTTPS traffic, check Insert X-Forwarded-For HTTP
header. With this option checked, the Edge load balancer adds the header "X-Forwarded-For" with
the value of the client source IP address.
After you configure the NSX load balancer, you can provide the NSX Edge device uplink interface IP
address for vCenter Single Sign-On.
Prerequisites
n Perform the PSC High Availability preparation tasks listed in the knowledge. See
http://kb.vmware.com/kb/2113315.
n Save the /ha/lb.crt and /ha/lb_rsa.key from first PSC node to configure certificates.
n Verify that you have at least one uplink for configuring VIP and one interface attached to internal
logical switch.
Procedure
a Save the PSC root.cer and certificate, RSA and passphrase generated from the OpenSSL
command.
You must have a working NSX Edge instance before you can use any of the above services. For
information on setting up NSX Edge, see NSX Edge Configuration.
n Uses the IP address of the internal interface on NSX Edge as the default gateway address for all
clients (except for non-directly connected pools), and the broadcast and subnet mask values of the
internal interface for the container network.
You must restart the DHCP service on client virtual machines in the following situations:
n You changed or deleted a DHCP pool, default gateway, or DNS server.
Procedure
4 Click the Manage tab and then click the DHCP tab.
Option Action
Auto Configure DNS Select to use the DNS service configuration for the DHCP binding.
Lease never expires Select to bind the address to the MAC address of the virtual machine forever. If
you select this, Lease Time is disabled.
Domain Name Type the domain name of the DNS server. This is optional.
Primary Name Server If you did not select Auto Configure DNS, type the Primary Nameserver for the
DNS service. You must enter the IP address of a DNS server for hostname-to-IP
address resolution. This is optional.
Secondary Name Server If you did not select Auto Configure DNS, type the Secondary Nameserver for
the DNS service. You must enter the IP address of a DNS server for hostname-to-
IP address resolution. This is optional.
Default Gateway Type the default gateway address. If you do not specify the default gateway IP
address, the internal interface of the NSX Edge instance is taken as the default
gateway. This is optional.
Subnet Mask Specify the subnet mask. The subnet mask must be same as the subnet mask of
the Edge interface or the DHCP Relay, in case of distributed router.
Lease Time Select whether to lease the address to the client for the default time (1 day), or
type a value in seconds. You cannot specify the lease time if you selected Lease
never expires. This is optional.
7 Click OK.
Prerequisites
Procedure
4 Click the Manage tab and then click the DHCP tab.
5 Click Enable.
What to do next
Procedure
4 Click the Manage tab and then click the DHCP tab.
Procedure
4 Click the Manage tab and then click the DHCP tab.
Option Action
Auto Configure DNS Select to use the DNS service configuration for the DHCP binding.
Lease never expires Select to bind the address to the MAC address of the virtual machine forever.
VM vNIC Index Select the virtual machine NIC to bind to the IP address.
Host Name Type the host name of the DHCP client virtual machine.
IP Address Type the address to which to bind the MAC address of the selected virtual
machine.
Subnet Mask Specify the subnet mask. The subnet mask should be same as the subnet mask
of the Edge interface or the DHCP Relay, in case of distributed router.
Primary Name Server If you did not select Auto Configure DNS, type the Primary Nameserver for the
DNS service. You must enter the IP address of a DNS server for hostname-to-IP
address resolution.
Secondary Name Server If you did not select Auto Configure DNS, type the Secondary Nameserver for
the DNS service. You must enter the IP address of a DNS server for hostname-to-
IP address resolution.
Default Gateway Type the default gateway address. If you do not specify the default gateway IP
address, the internal interface of the NSX Edge instance is taken as the default
gateway.
Lease Time If you did not select Lease never expires, select whether to lease the address to
the client for the default time (1 day), or type a value in seconds.
8 Click Add.
Procedure
4 Click the Manage tab and then click the DHCP tab.
5 Select Bindings from the left panel and click the binding to edit.
DHCP configuration is applied on the logical router port and can list several DHCP servers. Requests are
sent to all listed servers. While relaying the DHCP request from the client, the relay adds a Gateway IP
Address to the request. The external DHCP server uses this gateway address to match a pool and
allocate an IP address for the request. The gateway address must belong to a subnet of the NSX port on
which the relay is running.
You can specify a different DHCP server for each logical switch and can configure multiple DHCP servers
on each logical router to provide support for multiple IP domains.
When configuring pool and binding at DHCP server, ensure that the subnet mask of the pool/binding for
the relayed queries is same as the interface of the DHCP relay. Subnet mask information must be
provided in API while DLR is acting as DHCP relay between VMs and Edge providing DHCP service. This
subnet mask should match the one configured on gateway interface for VMs on DLR.
Note
n DHCP relay does not support overlapping IP address space (option 82).
n DHCP Relay and DHCP service cannot run on a port/vNic at the same time. If a relay agent is
configured on a port, a DHCP pool cannot be configured on the subnet(s) of this port.
Procedure
1 In the vSphere Web Client, navigate to Networking & Security > NSX Edges.
2 Double-click the appropriate Edge and ensure that that you are in the Manage > DHCP tab.
b
Move the selected IP set to the Selected Objects list by clicking the icon.
c Click OK.
5 To add IP addresses or domain names, type the address or name in the appropriate area.
6 Click OK.
Procedure
The Gateway IP Address displays the primary IP address of the selected vNic.
3 Click OK.
Procedure
4 Click the Manage tab and then click the Settings tab.
9 Click Enable Logging to log DNS traffic and select the log level.
10 Click Ok.
Security Group
You begin by creating a security group to define assets that you want to protect. Security groups may be
static (including specific virtual machines) or dynamic where membership may be defined in one or more
of the following ways:
n Security tags, IPset, MACset, or even other security groups. 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.
Note that security group membership changes constantly. For example, a virtual machine tagged with the
AntiVirus.virusFound tag is moved into the Quarantine security group. When the virus is cleaned and this
tag is removed from the virtual machine, it again moves out of the Quarantine security group.
Security Policy
Firewall rules Rules that define the traffic to be allowed to, from, or within the security group. vNIC
Endpoint Data Security or third party solution provider services such as anti-virus or virtual machines
service vulnerability management services.
Network Services that monitor your network such as IPS. virtual machines
introspection
services
During service deployment in NSX, the third party vendor selects the service category for the service
being deployed. A default service profile is created for each vendor template.
When third party vendor services are upgraded to NSX 6.1, default service profiles are created for the
vendor templates being upgraded. Existing service policies that include Guest Introspection rules are
updated to refer to the service profiles created during the upgrade.
You map a security policy (say SP1) to a security group (say SG1). The services configured for SP1 are
applied to all virtual machines that are members of SG1.
Note When you have many security groups to which you need to attach the same security policy, create
an umbrella security group that includes all these child security groups, and apply the common security
policy to the umbrella security group. This will ensure that the NSX distributed firewall utilises ESXi host
memory efficiently.
Security group
If a virtual machine belongs to more than one security group, the services that are applied to the virtual
machine depends on the precedence of the security policy mapped to the security groups.
Service Composer profiles can be exported and imported as backups or for use in other environments.
This approach to managing network and security services helps you with actionable and repeatable
security policy management.
Let us walk through an example to show how Service Composer helps you protect your network end-to-
end. Let us say you have the followings security policies defined in your environment:
n An initial state security policy that includes a vulnerability scanning service (InitStatePolicy)
n A remediation security policy that includes a network IPS service in addition to firewall rules and an
anti-virus service (RemPolicy)
Ensure that the RemPolicy has higher weight (precedence) than InitStatePolicy.
n An applications assets group that includes the business critical applications in your environment
(AssetGroup)
n A remediation security group defined by a tag that indicates the virtual machine is vulnerable
(VULNERABILITY_MGMT.VulnerabilityFound.threat=medium) named RemGroup
You now map the InitStatePolicy to AssetGroup to protect all business critical applications in your
environment. You also map RemPolicy to RemGroup to protect vulnerable virtual machines.
When you initiate a vulnerability scan, all virtual machines in AssetGroup are scanned. If the scan
identifies a virtual machine with a vulnerability, it applies the
VULNERABILITY_MGMT.VulnerabilityFound.threat=medium tag to the virtual machine.
Service Composer instantly adds this tagged virtual machine to RemGroup, where a network IPS solution
is already in place to protect this vulnerable virtual machine.
VULNERABILITY_MGMT.
VulnerabilityFound.threat
=medium
Partner Solution
VULNERABILITY_MGMT. Business Critical Application
VulnerabilityFound.threat
=medium
Remediation Security
Group
This topic will now take you through the steps required to consume the security services offered by
Service Composer.
Procedure
3 Click the Security Groups tab and then click the Add Security Group icon.
4 Type a name and description for the security group and click Next.
5 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. 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.
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.
6 Click Next.
7 On the Select objects to include page, select the object type from the drop-down.
8 Double-click the object you want to add to the include list. You can include the following objects in a
security group.
n Other security groups to nest within the security group you are creating.
n Cluster
n Logical switch
n Network
n Virtual App
n Datacenter
n IP sets
n AD groups
Note 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.
n MAC Sets
n Security tag
n vNIC
n Virtual Machine
n Resource Pool
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.
9 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 .
10 Click Finish.
{Expression result (derived from Step 5) + Inclusions (specified inStep 8} - Exclusion (specified in Step 9)
which means that inclusion items are first added to the expression result. Exclusion items are then
subtracted from the combined result.
Prerequisites
Ensure that:
n the required VMware built in services (such as Distributed Firewall, Data Security, and Guest
Introspection) are installed.
n the required partner services have been registered with NSX Manager.
n the desired default applied to value is set for Service Composer firewall rules. See Edit Service
Composer Firewall Applied To Setting.
Procedure
4
Click the Create Security Policy ( ) icon.
5 In the Add Security Policy dialog box, type a name for the security policy.
NSX assigns a default weight (highest weight +1000) to the policy. For example, if the highest weight
amongst the existing policy is 1200, the new policy is assigned a weight of 2200.
Security policies are applied according to their weight - a policy with the higher weight has
precedence over a policy with a lower weight.
7 Select Inherit security policy from specified policy if you want the policy that you are creating to
receive services from another security policy. Select the parent policy.
All services from the parent policy are inherited by the new policy.
8 Click Next.
9 In the Guest Introspection Services page, click the Add Guest Introspection Service ( ) icon.
a In the Add Guest Introspection Service dialog box, type a name and description for the service.
When you inherit a security policy, you may choose to block a service from the parent policy.
If you apply a service, you must select a service and service profile. If you block a service, you
must select the type of service to block.
If you select Data Security, you must have a data security policy in place. See Chapter 19 Data
Security.
d If you chose to apply the Guest Introspection service, select the service name.
The default service profile for the selected service is displayed, which includes information about
the service functionality types supported by the associated vendor template.
e In State, specify whether you want to enable the selected Guest Introspection service or disable
it.
You can add Guest Introspection services as placeholders for services to be enabled at a later
time. This is especially useful for cases where services need to be applied on-demand (for
example, new applications).
f Select whether the Guest Introspection service is to be enforced (i.e. it cannot be overridden). If
the selected service profile supports multiple service functionality types, then this is set to
Enforce by default and cannot be changed.
If you enforce an Guest Introspection service in a security policy, other policies that inherit this
security policy would require that this policy be applied before the other child policies. If this
service is not enforced, an inheritance selection would add the parent policy after the child
policies are applied.
g Click OK.
You can add additional Guest Introspection services by following the above steps. You can manage
the Guest Introspection services through the icons above the service table.
You can export or copy the services on this page by clicking the icon on the bottom right side of
the Guest Introspection Services page.
10 Click Next.
Here, you are defining firewall rules for the security groups(s) that this security policy will be applied
to.
a Type a name and description for the firewall rule you are adding.
b Select Allow or Block to indicate whether the rule needs to allow or block traffic to the selected
destination.
c Select the source for the rule. By default, the rule applies to traffic coming from the security
groups to which this policy gets applied to. To change the default source, click Change and select
the appropriate security groups.
Note Either the Source or Destination (or both) must be security groups to which this policy gets
applied to.
Say you create a rule with the default Source, specify the Destination as Payroll, and select
Negate Destination. You then apply this security policy to security group Engineering . This
would result in Engineering being able to access everything except for the Payroll server.
e Select the services and/or service groups to which the rule applies to.
h Click OK.
You can add additional firewall rules by following the above steps. You can manage the firewall rules
through the icons above the firewall table.
You can export or copy the rules on this page by clicking the icon on the bottom right side of the
Firewall page.
The firewall rules you add here are displayed on the Firewall table. VMware recommends that you do
not edit Service Composer rules in the firewall table. If you must do so for an emergency
troubleshooting, you must re-synchronize Service Composer rules with firewall rules by selecting
Synchronize Firewall Rules from the Actions menu in the Security Policies tab.
12 Click Next.
The Network Introspection Services page displays NetX services that you have integrated with your
VMware virtual environment.
a In the Add Network Introspection Service dialog box, type a name and description for the service
you are adding.
You can make additional selections based on the service you selected.
h Click OK.
You can add additional network introspection services by following the above steps. You can manage
the network introspection services through the icons above the service table.
You can export or copy the services on this page by clicking the icon on the bottom right side of
the Network Introspection Service page.
Note Bindings created manually for the Service Profiles used in Service Composer policies will be
overwritten.
14 Click Finish.
The security policy is added to the policies table. You can click the policy name and select the
appropriate tab to view a summary of the services associated with the policy, view service errors, or
edit a service.
What to do next
When Service Composer firewall rules have an applied to setting of distributed firewall, the rules are
applied to all clusters on which distributed firewall is installed. If the firewall rules are set to apply to the
policy's security groups, you have more granular control over the firewall rules, but may need multiple
security policies or firewall rules to get the desired result.
Procedure
2 Click Networking & Security, click Service Composer, and click the Security Policies tab.
3 Click Actions > Edit Firewall Policy Settings. Select a default setting for Applied To and click OK.
Option Description
Distributed Firewall Firewall rules are applied to all clusters on which Distributed Firewall is installed.
Policy's Security Groups Firewall rules are applied to security groups on which the security policy is
applied.
The default Applied To setting can also be viewed and changed via the API. See the NSX API Guide.
In this example scenario, your default firewall rule action is set to block. You have two security groups:
web-servers and app-servers, which contain VMs. You create a security policy, allow-ssh-from-web, which
contains the following firewall rule, and apply it to the security group app-servers.
n Name: allow-ssh-from-web
n Source: web-servers
n Service: ssh
n Action: allow
If the firewall rule applies to Distributed Firewall, you will be able to ssh from a VM in the security group
web-servers to a VM in the security group app-servers.
If the firewall rule applies to Policy's Security Group, you will not be able to ssh, as the traffic will be
blocked from reaching the app servers. You will need to create an additional security policy to allow ssh to
the app servers, and apply this policy to the security group web-servers.
n Name: allow-ssh-to-app
n Destination: app-servers
n Service: ssh
n Action: allow
Procedure
4
Select a security policy and click the Apply Security Policy ( ) icon.
5 Select the security group that you want to apply the policy to.
If you select a security group defined 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.
Network Introspection rules and Endpoint rules associated with the policy will not take effect for
security groups containing IPSet and/or MacSet members.
6 Click the Preview Service Status icon to see the services that cannot be applied to the selected
security group and the reason for the failure.
For example, the security group may include a virtual machine that belongs to a cluster on which one
of the policy services has not been installed. You must install that service on the appropriate cluster
for the security policy to work as intended.
7 Click OK.
This topic introduces Service Composer by walking you through a partially configured system so that you
can visualize the mappings between security groups and security policy objects at a high level from the
canvas view.
Procedure
All security groups within the selected NSX Manager (that are not contained within another security
group) are displayed along with the policies applied on them. The NSX Manager drop-down lists all
NSX Managers on which the currently logged in user has a role assigned.
Each rectangular box in the canvas represents a security group and the icons within the box represents
security group members and details about the security policy mapped to the security group.
A number next to each icon indicates the number of instances - for example, indicates that 1
security policy is mapped to that security group.
Virtual machines that are currently part of the main security group as well as nested security groups. Click the Errors
tab to see virtual machines with service errors.
Effective Endpoint services associated with the security policy mapped to the security group. Suppose you have two
policies applied to a security group and both have the same category Endpoint service configured. The effective
service count in this case will be 1 (since the second lower priority service is overridden).
Endpoint service failures, if any, are indicated by the alert icon. Clicking the icon displays the error.
Effective firewall rules associated with the security policy mapped to the security group.
Service failures, if any, are indicated by the alert icon. Clicking the icon displays the error.
Effective network introspection services associated with the security policy mapped to the security group.
Service failures, if any, are indicated by the alert icon. Clicking the icon displays the error.
Figure 17‑5. Details displayed when you click an icon in the security group
You can search for security groups by name. For example, if you type PCI in the search field in the top
right corner of the canvas view, only the security groups with PCI in their names are displayed.
To see the security group hierarchy, click the Top Level ( ) icon at the top left of the window and select
the security group you want to display. If a security group contains nested security groups, click to
display the nested groups. The top bar displays the name of the parent security group and the icons in
the bar display the total number of security policies, endpoint services, firewall services, and network
introspection services applicable to the parent group. You can navigate back up to the top level by clicking
the Go up one level ( ) icon in the top left part of the window.
You can zoom in and out of the canvas view smoothly by moving the zoom slider on the top right corner
of the window. The Navigator box shows a zoomed out view of the entire canvas. If the canvas is much
bigger than what fits on your screen, it will show a box around the area that is actually visible and you can
move it to change the section of the canvas that is being displayed.
What to do next
Now that we have seen how the mapping between security groups and security policies work, you can
begin creating security policies to define the security services you want to apply to your security groups.
Procedure
1 Select the security policy that you want to apply to the security group.
3 Click Save.
Prerequisites
A data security or antivirus scan must have been run and a tag applied to the appropriate virtual machine.
Note Refer to the third party solution documentation for details of the tags applied by those solutions.
Procedure
3 Click an NSX Manager in the Name column and then click the Manage tab.
A list of tags applied in your environment is displayed along with details about the virtual machines to
which those tags have been applied. Note down the exact tag name if you plan on adding a security
group to include virtual machines with a specific tag.
5 Click the number in the VM Count column to view the virtual machines to which that tag in that row
has been applied.
Prerequisites
Procedure
3 Click an NSX Manager in the Name column and then click the Manage tab.
6 Type a name and description for the tag and click OK.
Procedure
3 Click an NSX Manager in the Name column and then click the Manage tab.
5 Select a security tag and click the Assign Security Tag ( ) icon.
Procedure
3 Click an NSX Manager in the Name column and then click the Manage tab.
5
Select a security tag and click the Edit Security Tag ( ) icon.
Procedure
3 Click an NSX Manager in the Name column and then click the Manage tab.
5 Select a security tag and click the Delete Security Tag ( ) icon.
Procedure
5 Ensure that you are in the Manage > Information Security tab.
Each of the three tabs (Endpoint Services, Firewall, Network Introspection Services) displays the
corresponding services for the security policy.
Services that are not effective are greyed out. The Overridden column displays the services that are
actually applied on the security policy and the Inherited from column displays the security policy from
which services are inherited.
Procedure
5 Ensure that you are in the Monitor > Service Errors tab.
Clicking the link in the Status column takes you to the Service Deployment page where you can
correct service errors.
Procedure
4 Ensure that you are in the Monitor > Service Composer tab.
The following network and security services can be grouped into a security policy:
Multiple security policies may be applied to a virtual machine either because the security group that
contains the virtual machine is associated with multiple policies or because the virtual machine is part of
multiple security groups associated with different policies. If there is a conflict between services grouped
with each policy, the weight of the policy determines the services that will be applied to the virtual
machine. For example, say policy 1 blocks internet access and has a weight value of 1000 while policy 2
allows internet access and has a weight value of 2000. In this particular case, policy 2 has a higher
weight and hence the virtual machine will be allowed internet access.
Procedure
4
Click the Manage Precedence ( ) icon.
5 In the Manage Precedence dialog box, select the security policy that you want to change the
precedence for and click the Move Up ( ) or Move Down ( )icon.
6 Click OK.
Procedure
4
Select the security policy that you want to edit and click the Edit Security Policy ( ) icon.
5 In the Edit Security Policy dialog box, make the appropriate changes and click Finish.
Procedure
4 Select the security policy that you want to delete and click the Delete Security Policy ( ) icon.
Procedure
4 Select the security group you want to edit and click the Edit Security Group icon.
Our sample scenario shows how you can protect your desktops end to end.
Create security Create security Create security policy Create security policy
policy for desktops policy for infected VMs to scan desktops to isolate infected systems
(DesktopPolicy) (QuarantinePolicy) (DesktopPolicy) (QuarantinePolicy)
Administrator tasks
Vulnerability Tagged VM VM in
Vulnerable VM
Management instantly added to QuarantineSecurityGroup
tagged
scan QuarantineSecurityGroup protected with IPS
Automatic action by
Administrator tasks
Service Composer
Prerequisites
We are aware that Symantec tags infected virtual machine with the AntiVirus.virusFound tag.
Procedure
a Click the Security Policies tab and click the Add Security Policy icon.
d Change the weight to 51000. The policy precedence is set very high so as to ensure that it is
enforced above all other policies.
e Click Next.
f On the Add Endpoint Service page, click and fill in the following values.
Option Value
Name Desktop AV
g Click OK.
h Do not add any firewall or network introspection services and click Finish.
a Click the Security Policies tab and click the Add Security Policy icon.
e Click Next.
f On the Add Endpoint Service page, do not do anything and click Next.
g In Firewall, add three rules - one rule to block all outgoing traffic, the next rule to block all traffic
with groups, and the last rule to allow incoming traffic only from remediation tools.
4 Move QuarantinePolicy to the top of the security policy table to ensure that it is enforced before all
other policies.
c Click the Security Groups tab and click the Add Security Group icon.
g Review your selections on the Ready to Complete page and click Finish.
6 Create a Quarantine security group where the infected virtual machines are to be placed.
a Click the Security Groups tab and click the Add Security Group icon.
c In Description, type
Dynamic group membership based on infected VMs identified by the antivirus
scan.
d On the Define membership Criteria page click and add the following criteria.
e Do not do anything on the Select objects to include or Select objects to exclude pages and click
Next.
f Review your selections on the Ready to Complete page and click Finish.
a On the Security Policies tab, ensure that the DesktopPolicy policy is selected.
b
Click the Apply Security Policy ( ) icon and select the SG_Desktops group.
c Click OK.
This mapping ensures that all desktops (part of the DesktopSecurityGroup) are scanned when
an antivirus scan is triggered.
8 Navigate to the canvas view to confirm that QuarantineSecurityGroup does not include any virtual
machines yet.
The scan discovers infected virtual machine and tags them with the security tag
AntiVirus.virusFound. The tagged virtual machines are instantly added to
QuarantineSecurityGroup. The QuarantinePolicy allows no traffic to and from the infected
systems.
Procedure
2 Create a security group for the first tier of the Share Point application - web servers.
c Click the Security Groups tab and click the Add Security Group icon.
f Do not do anything on the Define membership Criteria page and click Next.
g On the Select objects to include page, select the web server virtual machines.
h Do not do anything on the Select objects to exclude page and click Next.
i Review your selections on the Ready to Complete page and click Finish.
3 Now create a security group for your database and share point servers and name them
SG_Database, and SG_Server_SharePoint respectively. Include the appropriate objects in each
group.
4 Create a top level security group for your application tiers and name it SG_App_Group. Add SG_Web,
SG_Database, and SG_Server_SharePoint to this group.
a Click the Security Policies tab and click the Add Security Policy icon.
d Change the weight to 50000. The policy precedence is set very high so as to ensure that it is
enforced above most other policies (with the exception of quarantine).
e Click Next.
f On the Endpoint Services page, click and fill in the following values.
Option Value
Action Do not modify the default value
g Do not add any firewall or network introspection services and click Finish.
7 Navigate to the canvas view to confirm that the SP_App has been mapped to SG_App_Group.
b
Click the number next to the icon to see that the SP_App is mapped.
a
Click the Security Policies tab and then click the Export Blueprint ( ) icon.
c Click Next.
f Select the directory on your computer where you want to download the exported file and click
Save.
The security policy as well as all the security groups to which this policy has been applied (in our
case, the Application security group as well as the three security groups nested within it) are
exported.
9 In order to demonstrate how the exported policy works, delete the SP_App policy.
10 Now we will restore the Template_ App_ DevTest policy that we exported in step 7.
a Click Actions and then click the Import Service Configuration icon.
b Select the FromAppArtchitect_Template_App file from your desktop (you saved it in step 7).
c Click Next.
d The Ready to complete page displays the security policies along with associated objects (security
groups on which these have been applied, as well as Endpoint services, firewall rules, and
network introspection services) to be imported.
e Click Finish.
The configuration and associated objects are imported to the vCenter inventory and are visible in
the canvas view.
Guest Introspection health status is conveyed by using alarms that show in red on the vCenter Server
console. In addition, more status information can be gathered by looking at the event logs.
Important Your vCenter Server must be correctly configured for Guest Introspection security:
n Not all guest operating systems are supported by Guest Introspection. Virtual machines with non-
supported operating systems are not protected by the security solution.
n All hosts in a resource pool containing protected virtual machines must be prepared for Guest
Introspection so that virtual machines continue to be protected as they are vMotioned from one ESX
host to another within the resource pool.
For autodeploy setup on stateless hosts, you must manually restart VMware NSX for vSphere 6.x Service
Virtual Machines (SVM) after an ESXi host reboot. For more information, see the Knowledge Base article
http://kb.vmware.com/kb/2120649.
Caution In a VMware NSX for vSphere 6.x environment, when a Service VM (SVM) is migrated
(vMotion/SvMotion), you may experience these symptoms:
n An interruption in the service (workload VM) for which the Service VM (SVM) is providing data
n ESXi host fails with a purple diagnostic screen contains backtraces similar to:
This is a known issue affecting VMware ESXi 5.5.x and 6.x hosts. To work around the issue, do not
manually migrate a Service VM (SVM) (vMotion/SvMotion) to another ESXi host in the cluster. To migrate
a SVM to another datastore (svMotion), VMware recommends a cold migration by turning the SVM off,
and then migrating it to another datastore.
Prerequisites
The installation instructions that follow assume that you have the following system:
n A datacenter with supported versions of vCenter Server and ESXi installed on each host in the
cluster.
n If the hosts in your clusters were upgraded from vCenter Server version 5.0 to 5.5, you must open
ports 80 and 443 on those hosts.
n Hosts in the cluster where you want to install Guest Introspection have been prepared for NSX. See
Prepare Host Clusters for NSX in the NSX Installation Guide. Guest Introspection cannot be installed
on standalone hosts. If you are using NSX for deploying and managing Guest Introspection for anti-
virus offload capability only, you do not need to prepare the hosts for NSX, and the NSX for vShield
Endpoint license does not allow it.
n Ensure the NSX Manager and the prepared hosts that will run Guest Introspection services are linked
to the same NTP server and that time is synchronized. Failure to do so may cause VMs to be
unprotected by anti-virus services, although the status of the cluster will be shown as green for Guest
Introspection and any third-party services.
If an NTP server is added, VMware recommends that you then redeploy Guest Introspection and any
third-party services.
If you want to assign an IP address to the NSX Guest Introspection service virtual machine from an IP
pool, create the IP pool before installing NSX Guest Introspection. See Working with IP Pools in the NSX
Administration Guide.
Procedure
3 In the Deploy Network and Security Services dialog box, select Guest Introspection.
4 In Specify schedule (at the bottom of the dialog box), select Deploy now to deploy Guest
Introspection as soon as it is installed or select a deployment date and time.
5 Click Next.
6 Select the datacenter and cluster(s) where you want to install Guest Introspection, and click Next.
7 On the Select storage and Management Network Page, select the datastore on which to add the
service virtual machines storage or select Specified on host. It is recommended that you use shared
datastores and networks instead of "specified on host" so that deployment workflows are automated.
The selected datastore must be available on all hosts in the selected cluster.
If you selected Specified on host, follow the steps below for each host in the cluster.
a On the vSphere Web Client home page, click vCenter and then click Hosts.
b Click a host in the Name column and then click the Manage tab.
8 Select the distributed virtual port group to host the management interface. If the datastore is set to
Specified on host, the network must also be Specified on host.
The selected port group must be able to reach the NSX Manager’s port group and must be available
on all hosts in the selected cluster.
If you selected Specified on host, follow the substeps in Step 7 to select a network on the host.
When you add a host (or multiple hosts) to the cluster, the datastore and network must be set before
each host is added to the cluster.
Select To
DHCP Assign an IP address to the NSX Guest Introspection service virtual machine
through Dynamic Host Configuration Protocol (DHCP). Select this option if your
hosts are on different subnets.
An IP pool Assign an IP address to the NSX Guest Introspection service virtual machine from
the selected IP pool.
10 Click Next and then click Finish on the Ready to complete page.
11 Monitor the deployment until the Installation Status column displays Succeeded.
12 If the Installation Status column displays Failed, click the icon next to Failed. All deployment errors
are displayed. Click Resolve to fix the errors. In some cases, resolving the errors displays additional
errors. Take the required action and click Resolve again.
What to do next
Prerequisites
Ensure that the guest virtual machine has ESX 5.1 or later and a supported version of Windows installed.
The following Windows operating systems are supported for NSX Guest Introspection:
Procedure
1 Follow the procedure Manually Install or Upgrade VMware Tools in a Windows Virtual Machine.
2 After you select Custom setup in step 7, expand the VMCI Driver section, select vShield Drivers,
and select This feature will be installed on the local hard drive.
Procedure
1 In the vSphere Web Client, click vCenter, and then click Datacenters.
The Guest Introspection Health and Alarms page displays the health of the objects under the
datacenter you selected, and the active alarms. Health status changes are reflected within a minute
of the actual occurrence of the event that triggered the change.
vCenter Server alarms can be displayed without a custom vSphere plug-in. See the vCenter Server
Administration Guide on events and alarms.
Upon registering as a vCenter Server extension, NSX Manager defines the rules that create and remove
alarms, based on events coming from the three Guest Introspection components: SVM, Guest
Introspection module, and thin agent. Rules can be customized. For instructions on how to create new
custom rules for alarms, see the vCenter Server documentation. In some cases, there are multiple
possible causes for the alarm. The tables that follow list the possible causes and the corresponding
actions you might want to take for remediation.
Host Alarms
Host alarms are generated by events affecting the health status of the Guest Introspection module.
The Guest Introspection module has been installed 1 Ensure that Guest Introspection is running by logging in to the host
on the host, but is no longer reporting status to the and typing the command /etc/init.d/vShield-Endpoint-Mux
NSX Manager. start.
2 Ensure that the network is configured properly so that Guest
Introspection can connect to NSX Manager.
3 Reboot the NSX Manager.
SVM Alarms
SVM alarms are generated by events affecting the health status of the SVM.
There is a protocol version mismatch with the Guest Ensure that the Guest Introspection module and SVM have a protocol
Introspection module that is compatible with each other.
Guest Introspection could not establish a connection Ensure that the SVM is powered on and that the network is configured
to the SVM properly.
The SVM is not reporting its status even though Internal error. Contact your VMware support representative.
guests are connected.
Events can be displayed without a custom vSphere plug-in. See the vCenter Server Administration Guide
on events and alarms.
Events are the basis for alarms that are generated. Upon registering as a vCenter Server extension, the
NSX Manager defines the rules that create and remove alarms.
Common arguments for all events are the event time stamp and the NSX Manager event_id.
The following table lists Guest Introspection events reported by the SVM and the NSX Manager.
The NSX Manager has lost connection with the ESX module. info timestamp
Guest Introspection solution SolutionName was contacted by a non- error timestamp, solution version, ESX
compatible version of the ESX module. module version
A connection between the ESX module and SolutionName failed. error timestamp, ESX module version,
solution version
n Failure to establish communication with SVM (when first such failure occurs).
Generated log messages have the following substrings near the beginning of each log message: vf-
AUDIT, vf-ERROR, vf-WARN, vf-INFO, vf-DEBUG.
Caution Before you uninstall a Guest Introspection module from a cluster, you must uninstall all third-
party products that are using Guest Introspection from the hosts on that cluster. Use the instructions from
the solution provider.
1 In vCenter, navigate to Home > Networking & Security > Installation and select the Service
Deployments tab.
Note As of NSX 6.2.3, the NSX Data Security feature has been deprecated. In NSX 6.2.3, you can
continue to use this feature at your discretion, but be aware that this feature will be removed from NSX in
a future release.
To begin using NSX Data Security, you create a policy that defines the regulations that apply to data
security in your organization and specifies the areas of your environment and files to be scanned. A
regulation is composed of content blades, which identify the sensitive content to be detected. NSX
supports PCI, PHI, and PII related regulations only.
When you start a Data Security scan, NSX analyzes the data on the virtual machines in your vSphere
inventory and reports the number of violations detected and the files that violated your policy.
Note As of NSX 6.2.3, the NSX Data Security feature has been deprecated. In NSX 6.2.3, you can
continue to use this feature at your discretion, but be aware that this feature will be removed from NSX in
a future release.
Prerequisites
NSX Guest Introspection must be installed on the cluster where you are installing Data Security.
If you want to assign an IP address to the Data Security service virtual machine from an IP pool, create
the IP pool before installing Data Security. See Grouping Objects in the NSX Administration Guide.
Procedure
3 In the Deploy Network and Security Services dialog box, select Data Security and click Next.
4 In Specify schedule (at the bottom of the dialog box), select Deploy now to deploy Data Security as
soon as it is installed or select a deployment date and time.
5 Click Next.
6 Select the datacenter and cluster(s) where you want to install Data Security and click Next.
7 On the Select storage and Management Network page, select the datastore on which to add the
service virtual machines storage or select Specified on host.
The selected datastore must be available on all hosts in the selected cluster.
If you selected Specified on host, the datastore for the ESX host must be specified in the AgentVM
Settings of the host before it is added to the cluster. See vSphere API/SDK Documentation.
8 Select the distributed virtual port group to host the management interface. This port group must be
able to reach the NSX Manager’s port group.
If the datastore is set to Specified on host, the network to be used must be specified in the
agentVmNetwork property of each host in the cluster. See vSphere API/SDK Documentation.
When you add a host(s) to the cluster, the agentVmNetwork property for the host must be set before
it is added to the cluster.
The selected port group must be available on all hosts in the selected cluster.
Select To
DHCP Assign an IP address to the Data Security service virtual machine through
Dynamic Host Configuration Protocol (DHCP).
An IP pool Assign an IP address to the Data Security service virtual machine from the
selected IP pool.
10 Click Next and then click Finish on the Ready to complete page.
11 Monitor the deployment until the Installation Status column displays Succeeded.
12 If the Installation Status column displays Failed, click the icon next to Failed. All deployment errors
are displayed. Click Resolve to fix the errors. In some cases, resolving the errors displays additional
errors. Take the required action and click Resolve again.
Security Administrator Create and publish policies and view violation reports. Cannot start or stop a data security scan.
Regulations A regulation is a data privacy law for protecting PCI (Payment Card
Industry), PHI (Protected Health Information) and PII (Personally
Identifiable Information) information. You can select the regulations that
your company needs to comply to. When you run a scan, Data Security
identifies data that violates the regulations in your policy and is sensitive for
your organization.
File Filters You can create filters to limit the data being scanned and exclude file types
unlikely to contain sensitive data from the scan.
Select Regulations
After you select the regulations that you want your company data to comply with, NSX can identify files
that contain information in violation of these regulations.
Prerequisites
Procedure
Note For information on available regulations, see the Data Security Reference guide.
Certain regulations require additional information for NSX Data Security to recognize sensitive data. If
you selected a regulation that monitors Group Insurance Numbers, Patient Identification Numbers,
Medical Record Numbers, Health Plan Beneficiary Numbers, US Bank Account Numbers, Custom
Accounts, or Student identification numbers, specify a regular expression pattern for identifying that
data.
Specifying incorrect regular expressions can slow down the discovery process. For more information
on regular expressions, see Creating Regular Expressions.
7 Click Next.
8 Click Finish.
Prerequisites
Procedure
1 In the Manage tab of the Data Security panel, click Edit next to Files to scan.
2 You can either monitor all files on the virtual machines in your inventory, or select the restrictions you
want to apply.
Option Description
Monitor all files on the guest virtual NSX Data Security scans all files.
machines
Monitor only the files that match the Select the following options as appropriate.
following conditions n Size indicates that NSX Data Security should only scan files less than the
specified size.
n Last Modified Date indicates that NSX Data Security should scan only files
modified between the specified dates.
n Types: Select Only files with the following extensions to enter the file
types to scan. Select All files, except those with extensions to enter the file
types to exclude from the scan.
For information on file formats that NSX Data Security can detect, see the Data Security Reference
guide.
3 Click Save.
Prerequisites
You must be a NSX Administrator to start, pause, or stop a data security scan.
Procedure
Note If a virtual machine is powered off, it will not be scanned until it is powered on.
If Data Security is part of a Service Composer policy, virtual machines in the security group mapped to
that Service Composer policy are scanned once during a scan. If the policy is edited and published while
a scan is running, the scan restarts. This rescan ensures that all virtual machines comply with the edited
policy. A rescan is triggered by publishing an edited policy, not by data updates on your virtual machines.
If a virtual machine is moved to an excluded cluster or resource pool while the data security scan is in
progress, the files on that virtual machine are not scanned. In case a virtual machine is moved by vMotion
to another host, the scan continues on the second host. Files that were scanned while the virtual machine
was on the previous host are not rescanned.
When the Data Security engine starts scanning a virtual machine, it records the scan start time. When the
scan ends, it records the end of the scan. You can view the scan start and end time for a cluster, host, or
virtual machine on the Tasks and Events tab.
NSX Data Security throttles the number of virtual machines concurrently scanned on a host to minimize
impact on performance. VMware recommends that you pause the scan during normal business hours to
avoid any performance overhead.
Prerequisites
Procedure
Using a regular expression is like performing a wildcard search, but regular expressions are far more
powerful. Regular expressions can be very simple or very complex. An example of a simple regular
expression is cat.
This finds the first instance of the letter sequence cat in any body of text that you apply it to. If you want to
make sure it only finds the word cat, and not other strings like cats or hepcat, you could use this slightly
more complex regular expression: \bcat\b.
This expression includes special characters that ensure a match occurs only if there are word breaks on
both sides of the cat sequence. As another example, to perform a near equivalent to the typical wildcard
search string c+t, you could use this regular expression: \bc\w+t\b.
This means find a word boundary (\b) followed by a c, followed by one or more non-whitespace
characters, non-punctuation characters (\w+), followed by a t, followed by a word boundary (\b). This
expression finds cot, cat, croat, but not crate.
Expressions can be very complex. The following expression finds any valid email address.
\b[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}\b
As of NSX 6.2.3, the NSX Data Security feature has been deprecated. In NSX 6.2.3, you can continue to
use this feature at your discretion, but be aware that this feature will be removed from NSX in a future
release.
Procedure
2 Select the NSX Data Security service and click the Delete Service Deployment ( ) icon.
3 In the Confirm Delete dialog box, click Delete now or select a date and time for the delete to take
effect.
4 Click OK.
NSX
Virtual Networks vSphere
Overlay transport
HW partner
extensions
Any network hardware
Edge service
insertion
There are various deployment methods for inserting third party services into NSX.
Vendor solutions that make use of this type of service insertion include Intrusion Prevention Service
(IPS)/Intrusion Detection Service (IDS), Firewall, Anti Virus, File Identity Monitoring (FIM), and
Vulnerability Management.
Vendor solutions that make use of this type of service insertion include ADC/Load Balancer devices.
Procedure
1 Register the third-party service with NSX Manager on the vendor's console.
You need NSX login credentials to register the service. For more information, refer to the vendor
documentation.
Once deployed, the third-party service is displayed in the NSX Service Definitions window and is
ready to be used. The procedure for using the service in NSX depends on the type of service
inserted.
For example, you can enable a host-based firewall service by creating a security policy in Service
Composer or creating a firewall rule to redirect traffic to the service. See Consuming Vendor Services
through Service Composer or Redirecting Traffic to a Vendor Solution through Logical Firewall. For
information on using an Edge based service, see Using a Partner Load Balancer.
Prerequisites
Ensure that:
Procedure
2 Click the Service Deployments tab and click the New Service Deployment ( ) icon.
3 In the Deploy Network and Security Services dialog box, select the appropriate solution(s).
4 In Specify schedule (at the bottom of the dialog box), select Deploy now to deploy the solution
immediately or select a deployment date and time.
5 Click Next.
6 Select the datacenter and cluster(s) where you want to deploy the solution and click Next.
7 Select the datastore on which to add the solution service virtual machines storage or select Specified
on host.
The selected datastore must be available on all hosts in the selected cluster.
If you selected Specified on host, the datastore for the ESX host must be specified in the AgentVM
Settings of the host before it is added to the cluster. See vSphere API/SDK Documentation.
8 Select the distributed virtual port group to host the management interface. This port group must be
able to reach the NSX Manager’s port group.
If the network is set to Specified on host, the network to be used must be specified in the Agent VM
Settings > Network property of each host in the cluster. See vSphere API/SDK Documentation.
You must set the agent VM network property on a host before you add it to a cluster. Navigate to
Manage > Settings > Agent VM Settings > Network and click Edit to set the agent VM network.
The selected port group must be available on all hosts in the selected cluster.
Select To
DHCP Assign an IP address to the service virtual machine through Dynamic Host
Configuration Protocol (DHCP).
An IP pool Assign an IP address to the service virtual machine from the selected IP pool.
10 Click Next and then click Finish on the Ready to complete page.
11 Monitor the deployment until the Installation Status displays Successful. If the status displays
Failed, click the icon next to Failed and take action to resolve the error.
What to do next
You can now consume the partner service through NSX UI or NSX API.
A security group is a set of vCenter objects such as clusters, virtual machines, vNICs, and logical
switches. A security policy is a set of Guest Introspection services, firewall rules, and network
introspection services.
When you map a security policy to a security group, redirection rules are created on the appropriate third-
party vendor service profile. As traffic flows from virtual machines belonging to that security group, it is
redirected to registered third-party vendor services that determine how to process that traffic. For more
information on Service Composer, see Using Service Composer.
Prerequisites
n The third party service must be registered with NSX Manager, and the service must be deployed in
NSX.
n If the default firewall rule action is set to Block, you must add a rule to allow the traffic to be
redirected.
Procedure
1 In the vSphere Web Client, navigate to Networking & Security > Firewall.
3 In the section to which you want to add a rule, click the Add rule ( ) icon.
A new any any allow rule is added at the top of the section.
4 Point to the Name cell of the new rule, click , and type a name for the rule.
5 Specify the Source, Destination, and Service for the rule. For more information, see Add a Firewall
Rule
b In Redirect To, select the service profile and the logical switch or security group to which you
want to bind the service profile.
The service profile is applied to virtual machines connected to or contained in the selected logical
switch or security group.
c Indicate whether the redirected traffic is to be logged and type comments, if any.
d Click OK.
The selected service profile is displayed as a link in the Action column. Clicking the service
profile link displays the service profile bindings.
Prerequisites
The third-party load balancer must be registered with NSX Manager, and it must be deployed in NSX.
Procedure
1 In the vSphere Web Client, navigate to Networking & Security > NSX Edges.
8 Complete the remaining fields and set up the load balancer by adding a service monitor, server pool,
application profile, application rules, and a virtual server. When adding a virtual server, select the
template provided by the vendor. For more information, see Setting Up Load Balancing.
Traffic for the specified Edge is load balanced by the third party vendor's management console.
There is a correct order of software when removing any 3rd-party software solution.
Procedure
1 In the Sphere Web Client, navigate to Networking & Security > Service Composer, and delete the
rules (or security polices) that are redirecting traffic to the 3rd-party solution.
2 Navigate to Service Definitions and double-click the name of the 3rd-party solution.
4 Navigate to Installation > Service Deployments and delete the 3rd-party deployment.
What to do next
Make notes of the configuration settings, and then remove NSX from the 3rd-party solution. For example,
you may need to delete rules that reference other objects and then delete the objects.
NSX also supports Single Sign On (SSO), which enables NSX to authenticate users from other identity
services such as Active Directory, NIS, and LDAP.
User management in the vSphere Web Client is separate from user management in the CLI of any NSX
component.
Roles Definition
The available roles are as follows:
Permission Types
The permission types are read and write.
auditor.object_permission = read
system_urm.object_permission = read
Root Definition
The root definition describes the superuser roles.
super_user.superuser = true
system_write.superuser = true
super_user.object_access_scope.global = true
system_write.object_access_scope.global = true
system_urm.object_access_scope.global = true
dlp_svm.object_access_scope.global = true
epsec_host.object_access_scope.global = true
enterprise_admin.object_access_scope.global = true
system_write.object_access_scope.universal=true
Services
The following services are available in NSX:
administration, urm, edge, app, namespace, spoofguard, dlp, epsec, library, install, vdn, eam, si,
truststore, component_manager, ipam, secfabric, security_policy, messaging, replicator
Feature Definitions
The feature definitions within each service are as follows:
namespace.featurelist = namespace.config
spoofguard.featurelist = spoofguard.config
eam.featurelist = eam.install
truststore.featurelist = truststore.trustentity_management
component_manager.featurelist = healthstatus
messaging.featurelist = messaging.messaging
replicator.featurelist = replicator.configuration
When a feature and role combination is not listed, this means the user with that role has no access to this
feature.
For example:
auditor.app.firewall = read
This means the auditor role on the app.firewall feature has read-only access, whereas the security_admin
role on the app.firewall feature has read/write access.
vshield_admin.administration.audit_logs = read
vshield_admin.urm.object_access_control = read
vshield_admin.urm.feature_access_control = read
vshield_admin.edge.dns = read
vshield_admin.edge.autoplumbing = read
vshield_admin.edge.statistics = read
vshield_admin.edge.nat = read
vshield_admin.edge.dhcp = read
vshield_admin.edge.loadbalancer = read
vshield_admin.edge.vpn = read
vshield_admin.edge.routing = read
vshield_admin.edge.firewall = read
vshield_admin.edge.bridging = read
vshield_admin.edge.certificate = read
vshield_admin.library.grouping = read
vshield_admin.epsec.health_monitoring = read
vshield_admin.library.tagging = read
vshield_admin.secfabric.alarms = read_write
security_admin.administration.audit_logs = read
security_admin.edge.system = read
security_admin.edge.appliance = read
security_admin.edge.highavailability = read
security_admin.edge.statistics = read
security_admin.app.forcesync = read
security_admin.app.syslog = read
security_admin.namespace.config = read
security_admin.epsec.reports = read
security_admin.epsec.health_monitoring = read
security_admin.install.app = read
security_admin.install.epsec = read
security_admin.install.dlp = read
security_admin.vdn.config_nsm = read
security_admin.vdn.provision = read
security_admin.eam.install = read
security_admin.si.serviceprofile = read
security_admin.secfabric.alarms = read
security_admin.secfabric.deploy = read
security_admin.blueprint_sam.reports = read
security_admin.blueprint_sam.ad_config = read
security_admin.blueprint_sam.control_data_collection = read
security_admin.blueprint_sam.db_maintain = read
security_admin.replicator.configuration = read
auditor.administration.audit_logs = read
auditor.edge.appliance = read
auditor.edge.highavailability = read
auditor.edge.vnic = read
auditor.edge.dns = read
auditor.edge.ssh = read
auditor.edge.autoplumbing = read
auditor.edge.statistics = read
auditor.edge.nat = read
auditor.edge.dhcp = read
auditor.edge.loadbalancer = read
auditor.edge.vpn = read
auditor.edge.syslog = read
auditor.edge.routing = read
auditor.edge.firewall = read
auditor.edge.bridging = read
auditor.edge.system = read
auditor.edge.certificate = read
auditor.edge.systemcontrol = read
auditor.app.firewall = read
auditor.app.flow = read
auditor.app.forcesync = read
auditor.app.syslog = read
auditor.namespace.config = read
auditor.spoofguard.config = read
auditor.dlp.scan_scheduling = read
auditor.dlp.policy = read
auditor.dlp.reports = read
auditor.library.grouping = read
auditor.epsec_host.health_monitoring = read
auditor.epsec.policy = read
auditor.epsec.reports = read
auditor.epsec.registration = read
auditor.vdn.config_nsm = read
auditor.epsec.scan_scheduling = read
auditor.vdn.provision = read
auditor.si.service = read
auditor.si.serviceprofile = read
auditor.truststore.trustentity_management = read
auditor.secfabric.alarms = read
auditor.secfabric.deploy = read
auditor.security_policy.configuration = read
auditor.security_policy.security_group_binding = read
auditor.blueprint_sam.reports = read
auditor.blueprint_sam.ad_config = read
auditor.blueprint_sam.control_data_collection = read
auditor.blueprint_sam.db_maintain = read
auditor.library.tagging = read
auditor.ipam.configuration = read
auditor.ipam.ipallocation = read
auditor.messaging.messaging = read
auditor.replicator.configuration = read
dlp_svm.epsec.registration = read
dlp_svm.epsec.policy = read
dlp_svm.epsec.scan_scheduling = read
epsec_host.epsec.health_monitoring = write
enterprise_admin.administration.audit_logs = read
enterprise_admin.urm.object_access_control = read
enterprise_admin.urm.feature_access_control = read
enterprise_admin.epsec.health_monitoring = read
enterprise_admin.blueprint_sam.reports = read
replicator.administration.audit_logs = read
replicator.urm.object_access_control = read
replicator.urm.feature_access_control = read
replicator.edge.highavailability = read
replicator.edge.dns = read
replicator.edge.ssh = read
replicator.edge.statistics = read
replicator.edge.nat = read
replicator.edge.loadbalancer = read
replicator.edge.vpn = read
replicator.edge.syslog = read
replicator.edge.support = read
replicator.edge.firewall = read
replicator.edge.bridging = read
replicator.edge.certificate = read
replicator.edge.systemcontrol = read
replicator.epsec.health_monitoring = read
replicator.blueprint_sam.reports = read
With SSO, NSX supports authentication using authenticated Security Assertion Markup Language
(SAML) tokens from a trusted source via REST API calls. NSX Manager can also acquire authentication
SAML tokens for use with other VMware solutions.
NSX caches group information for SSO users. Changes to group memberships will take up to 60 minutes
to propagate from the identity provider (for example, active directory) to NSX.
Prerequisites
n To use SSO on NSX Manager, you must have vCenter Server 5.5 or later, and single sign on (SSO)
authentication service must be installed on the vCenter Server. Note that this is for embedded SSO.
Instead, your deployment might use an external centralized SSO server.
For information about SSO services provided by vSphere, see http://kb.vmware.com/kb/2072435 and
http://kb.vmware.com/kb/2113115.
n NTP server must be specified so that the SSO server time and NSX Manager time is in sync.
For example:
Procedure
3 Type the name or IP address of the host that has the lookup service.
If you are using vCenter to perform the lookup service, enter the vCenter Server's IP address or
hostname, and enter the vCenter Server user name and password.
Enter port 443 if you are using vSphere 6.0. For vSphere 5.5, use port number 7444.
The Lookup Service URL is displayed based on the specified host and port.
For example:
5 Check that the certificate thumb print matches the certificate of the vCenter Server.
If you installed a CA-signed certificate on the CA server, you are presented with the thumbprint of the
CA-signed certificate. Otherwise, you are presented with a self-signed certificate.
For example:
What to do next
n You cannot add a role to a user or remove an assigned role from a user. You can, however, change
the assigned role for a user.
NSX Administrator NSX operations only: for example, install virtual appliances, configure port groups.
Security Administrator NSX security only: for example, define data security policies, create port groups, create
reports for NSX modules.
The Enterprise Administrator and NSX Administrator roles can be assigned only to vCenter users.
You can manage NSX Manager appliance admin user only through CLI commands.
3 Click an NSX Manager in the Name column and then click the Manage tab.
4 Click Users.
5 Click Add.
Alias: corp
When a group is assigned a role on the NSX Manager any user from that group can be logged in to
the NSX Manager user interface.
When assigning a role to a user, type the user alias. For example, user1@corp.
8 Click Next.
9 Select the role for the user and click Next. For more information on the available roles, see Managing
User Rights.
10 Click Finish.
Prerequisites: vCenter Server has been registered with NSX Manager, and SSO has been configured.
c Click an NSX Manager in the Name column and then click the Manage tab.
f Click Next.
a Click the Home icon and then click vCenter Home > Datacenters.
b Select a datacenter and click Actions > All vCenter Actions > Add Permission.
f In Assigned Role, select Read-only and un-select Propagate to children and click OK.
Sally can perform NSX operations only. For example, install virtual appliances, create logical
switches, and so on..
Name G1
Name John
Belongs to group G1
John belongs to group G1, which has been assigned the auditor role. John inherits the group role and
resource permissions.
Name G1
Name G2
Resources Datacenter1
Name Joseph
Joseph belongs to groups G1 and G2 and inherits a combination of the rights and permissions of the
Auditor and Security Administrator roles. For example, John has the following permissions:
Name G1
Name Bob
Belongs to group G1
Resources Datacenter1
Bob has been assigned the Security Administrator role, so he does not inherit the group role permissions.
Bob has the following permissions
n Read, write (Security Administrator role) for Datacenter1 and its child resources
Procedure
2 Click Networking & Security and then under Networking & Security Inventory click NSX
Managers.
3 Click an NSX Manager in the Name column and then click the Manage tab.
4 Click Users.
6 Click Edit.
Procedure
2 Click Networking & Security and then under Networking & Security Inventory click NSX
Managers.
3 Click an NSX Manager in the Name column and then click the Manage tab.
4 Click Users.
Procedure
2 Click Networking & Security and then under Networking & Security Inventory click NSX
Managers.
3 Click an NSX Manager in the Name column and then click the Manage tab.
4 Click Users.
Procedure
2 Click Networking & Security and then under Networking & Security Inventory click NSX
Managers.
3 Click an NSX Manager in the Name column and then click the Manage tab.
4 Click Users.
6 Click Delete.
If you delete a vCenter user account, only the role assignment for NSX Manager is deleted. The user
account on vCenter is not deleted.
Procedure
2 Click Networking & Security and then under Networking & Security Inventory click NSX
Managers.
3 Click an NSX Manager in the Name column and then click the Manage tab.
u You must select the primary NSX Manager if you need to manage universal IP address groups.
10 (Optional) Select Mark this object for Universal Synchronization to create a universal IP address
group.
11 Click OK.
Procedure
2 Click Networking & Security and then under Networking & Security Inventory click NSX
Managers.
3 Click an NSX Manager in the Name column and then click the Manage tab.
u You must select the primary NSX Manager if you need to manage universal IP address groups.
5
Select the group that you want to edit and click the Edit ( ) icon.
7 Click OK.
2 Click Networking & Security and then under Networking & Security Inventory click NSX
Managers.
3 Click an NSX Manager in the Name column and then click the Manage tab.
u You must select the primary NSX Manager if you need to manage universal IP address groups.
5 Select the group that you want to delete and click the Delete ( ) icon.
Procedure
2 Click Networking & Security and then under Networking & Security Inventory click NSX
Managers.
3 Click an NSX Manager in the Name column and then click the Manage tab.
u You must select the primary NSX Manager if you need to manage universal MAC address
groups.
4 Click the Grouping Objects tab and then click MAC Sets.
10 (Optional) Select Mark this object for Universal Synchronization to create a universal MAC
address group.
11 Click OK.
2 Click Networking & Security and then under Networking & Security Inventory click NSX
Managers.
3 Click an NSX Manager in the Name column and then click the Manage tab.
u You must select the primary NSX Manager if you need to manage universal MAC address
groups.
4 Click the Grouping Objects tab and then click MAC Sets.
5
Select the group that you want to edit and click the Edit ( ) icon.
6 In the Edit MAC Set dialog box, make the appropriate changes.
7 Click OK.
2 Click Networking & Security and then under Networking & Security Inventory click NSX
Managers.
3 Click an NSX Manager in the Name column and then click the Manage tab.
u You must select the primary NSX Manager if you need to manage universal MAC address
groups.
4 Click the Grouping Objects tab and then click MAC Sets.
5 Select the group that you want to delete and click the Delete ( ) icon.
For information on adding an IP pool, see Configure Network Access SSL VPN-Plus or Configure Web
Access SSL VPN-Plus.
Create an IP Pool
Procedure
2 Click Networking & Security and then under Networking & Security Inventory click NSX
Managers.
3 Click an NSX Manager in the Name column and then click the Manage tab.
6 Type a name for the IP pool and type the default gateway and prefix length.
7 (Optional) Type the primary and secondary DNS and the DNS suffix.
8 Type the IP address ranges to be included in the pool and click OK.
Edit an IP Pool
You can edit an IP pool - you cannot edit the CIDR and gateway.
Procedure
2 Click Networking & Security and then under Networking & Security Inventory click NSX
Managers.
3 Click an NSX Manager in the Name column and then click the Manage tab.
Delete IP Pool
Procedure
2 Click Networking & Security and then under Networking & Security Inventory click NSX
Managers.
3 Click an NSX Manager in the Name column and then click the Manage tab.
5 Select the IP pool that you want to delete and click the Delete icon.
Prerequisites
If you are creating a security group based on Active Directory group objects, ensure that one or more
domains have been registered with NSX Manager. NSX Manager gets group and user information as well
as the relationship between them from each domain that it is registered with. See Register a Windows
Domain with NSX Manager.
Procedure
2 Click Networking & Security and then under Networking & Security Inventory click NSX
Managers.
3 Click an NSX Manager in the Name column and then click the Manage tab.
u You must select the primary NSX Manager if you need to manage universal security groups.
4 Click the Grouping Objects tab, click Security Group, then click the Add Security Group icon.
6 (Optional) If you need to create a universal security group, select Mark this object for universal
synchronization.
7 Click Next.
8 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. This gives you the ability to include virtual machines by defining a
filter criteria with a number of parameters supported to match the search criteria.
Note If you are creating a universal security group, the Define dynamic membership step is not
available.
For example, you may include a criterion to add all virtual machines tagged with the specified security
tag (such as AntiVirus.virusFound) to the security group. Security tags are case sensitive.
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.
9 Click Next.
10 On the Select objects to include page, select the tab for the resource you want to add and select one
or more resources to add to the security group. You can include the following objects in a security
group.
Table 22‑1. Objects that can be included in security groups and universal security groups.
Security Group Universal Security Group
n Other security groups to nest within the security group n Other universal security groups to nest within the
you are creating. universal security group you are creating.
n Cluster n Universal IP sets
n Logical Switch n Universal MAC sets
n Network
n Virtual App
n Datacenter
n IP sets
n Directory Groups
The objects selected here are always included in the security group regardless of whether or not they
match the criteria in Step 8.
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.
11 Click Next and select the objects that you want to exclude from the security group.
Note If you are creating a universal security group, the Select objects to exclude step is not
available.
The objects selected here are always excluded from the security group regardless of whether or not
they match the dynamic criteria.
12 Click Finish.
{Expression result (derived from Step 8) + Inclusions (specified in Step 10} - Exclusion (specified in
Step 11)
This means that inclusion items are first added to the expression result. Exclusion items are then
subtracted from the combined result.
2 Click Networking & Security and then under Networking & Security Inventory click NSX
Managers.
3 Click an NSX Manager in the Name column and then click the Manage tab.
u You must select the primary NSX Manager if you need to manage universal security groups.
4 Click the Grouping Objects tab and then click Security Group.
5
Select the group that you want to edit and click the Edit ( ) icon.
6 In the Edit Security Group dialog box, make the appropriate changes.
7 Click OK.
2 Click Networking & Security and then under Networking & Security Inventory click NSX
Managers.
3 Click an NSX Manager in the Name column and then click the Manage tab.
u You must select the primary NSX Manager if you need to manage universal security groups.
4 Click the Grouping Objects tab and then click Security Group.
5 Select the group that you want to delete and click the Delete ( ) icon.
Create a Service
You can create a service and then define rules for that service.
Procedure
2 Click Networking & Security and then under Networking & Security Inventory click NSX
Managers.
3 Click an NSX Manager in the Name column and then click the Manage tab.
u You must select the primary NSX Manager if you need to manage universal services.
8 Select a Protocol.
a Depending on the protocol selected, you may be prompted to enter further information, such as
destination port.
10 (Optional) Select Mark this object for Universal Synchronization to create a universal service.
11 Click OK.
Procedure
2 Click Networking & Security and then under Networking & Security Inventory click NSX
Managers.
3 Click an NSX Manager in the Name column and then click the Manage tab.
u You must select the primary NSX Manager if you need to manage universal service groups.
4 Click the Grouping Objects tab and then click Service Groups.
8 (Optional) Select Mark this object for Universal Synchronization to create a universal service
group.
9 In Members, select the services or service groups that you want to add to the group.
11 Click OK.
Procedure
2 Click Networking & Security and then under Networking & Security Inventory click NSX
Managers.
3 Click an NSX Manager in the Name column and then click the Manage tab.
u You must select the primary NSX Manager if you need to manage universal services or service
groups.
4 Click the Grouping Objects tab and then click Service or Service Groups.
5
Select a custom service or service group and click the Edit ( ) icon.
7 Click OK.
Procedure
2 Click Networking & Security and then under Networking & Security Inventory click NSX
Managers.
3 Click an NSX Manager in the Name column and then click the Manage tab.
u You must select the primary NSX Manager if you need to manage universal services or service
groups.
4 Click the Grouping Objects tab and then click Service or Service Groups.
5 Select a custom service or service group and click the Delete ( ) icon.
6 Click Yes.
n Flow Monitoring
n Activity Monitoring
n Traceflow
Procedure
3 Under Management, select the controller for which you want to change the password.
We recommend deleting the controller cluster when one or more of the controllers encounter catastrophic,
unrecoverable errors or when one or more of the controller VMs become inaccessible and cannot be
fixed.
We recommend deleting all controllers in such a case, even if some of the controllers seem healthy. The
recommended process is to create a new controller cluster and use the Update Controller State
mechanism on the NSX Manager to synchronize the state to the controllers.
Procedure
3 In the NSX Controller nodes section, click each controller and take screen shots/print-screens of the
details screens or write down the configuration information for later reference.
For example:
4 In the NSX Controller nodes section, delete all three of them by selecting each one and clicking the
Delete Node (x) icon.
When there are no controllers in the system, the hosts are operating in what is called "headless"
mode. New VMs or vMotioned VMs will have networking issues until new controllers are deployed
and the synchronization is completed.
5 Deploy three new NSX Controller nodes by clicking the Add Node (+) icon.
6 In the Add Controller dialog box, select the datacenter on which you are adding the nodes, and
configure the controller settings.
d Select the IP pool from which IP addresses are to be assigned to the node.
e Click OK, wait for installation to complete, and ensure all nodes have a status of Normal.
7 Resynchronize the controller state by clicking Actions > Update Controller State.
Update Controller State pushes the current VXLAN and Distributed Logical Router configuration
(including Universal Objects in a Cross-VC NSX deployment) from NSX Manager to the Controller
Cluster.
Starting in NSX 6.2.3, the default VXLAN port is 4789, the standard port assigned by IANA. Before NSX
6.2.3, the default VXLAN UDP port number was 8472.
Any new NSX installations will use UDP port 4789 for VXLAN.
If you upgrade to NSX 6.2.3, and your installation used the old default (8472), or a custom port number
(for example, 8888) before the upgrade, that port will continue to be used after the upgrade unless you
take steps to change it.
If your upgraded installation uses or will use hardware VTEP gateways (ToR gateways), you must switch
to VXLAN port 4789.
Cross-vCenter NSX does not require that you use 4789 for the VXLAN port, however, all hosts in a cross-
vCenter NSX environment must be configured to use the same VXLAN port. If you switch to port 4789,
this will ensure that any new NSX installations added to the cross-vCenter NSX environment are using
the same port as the existing NSX deployments.
Changing the VXLAN port is done in a three phase process, and will not interrupt VXLAN traffic. In a
cross-vCenter NSX environment the change will propagate to all NSX Manager appliances and all hosts
in the cross-vCenter NSX environment.
Prerequisites
n Verify that the port you want to use for VXLAN is not blocked by a firewall.
n Verify that host preparation is not running at the same time as the VXLAN port change.
Procedure
1 Click the Logical Network Preparation tab, then click VXLAN Transport.
2 Click the Change button in the VXLAN Port panel. Enter the port you want to switch to. 4789 is the
port assigned by IANA for VXLAN.
It will take a short time for the port change to propagate to all hosts.
GET https://nsxmgr-01a/api/2.0/vdn/config/vxlan/udp/port/taskStatus
...
Procedure
1 In the vSphere Web Client, navigate to Networking & Security > Installation > Host Preparation.
2
Select a cluster or expand clusters and select a host. Click Actions ( ) then Communication
Channel Health.
Details regarding the data collected through CEIP and the purposes for which it is used by VMware are
set forth at the Trust & Assurance Center at http://www.vmware.com/trustvmware/ceip.html.
To join or leave the CEIP for NSX, or edit program settings, see Edit the Customer Experience
Improvement Program Option.
Prerequisites
n Verify that the NSX manager is connected and can sync with vCenter Server.
Procedure
7 Select or deselect the Join the VMware Customer Experience Improvement Program option.
9 Click OK.
With the NSX ticket logger feature, you can track the changes you make with a ticket ID. Audit logs for
operations tracked by a ticket will include the ticket ID.
For information on configuring syslog for hosts managed by a vCenter Server, see VMware vSphere ESXi
and vCenter Server 5.5 Documentation.
Note Syslog or jump servers used to collect logs and access an NSX Distributed Logical Router (DLR)
Control VM can't be on the logical switch that is directly attached to that DLR's logical interfaces.
NSX Manager
To specify a syslog server, see Specify a Syslog Server.
To download technical support logs, see Download Technical Support Logs for NSX.
NSX Edge
To specify a syslog server, see Configure Remote Syslog Servers.
To download technical support logs, see Download Tech Support Logs for NSX Edge.
Firewall
You must configure the remote syslog server for each cluster that has firewall enabled. The remote syslog
server is specified in the Syslog.global.logHost attribute. See ESXi and vCenter Server 5.5
Documentation.
Identifier vsip_pkt
Firewall specific portion INET, match, PASS, Rule 0/3, Ruleset domain-c7, Rule ID 100, OUT, Len 60,
SRC 10.24.106.96, DST 10.24.106.52, TCP SPORT 59692, DPORT 22 S
Reason Possible values: match, bad-offset, fragment, short, normalize, memory, bad-timestamp, congestion, ip-
option, proto-cksum, state-mismatch, state-insert, state-limit, src-limit, synproxy, spoofguard
Action PASS, DROP, SCRUB, NOSCRUB, NAT, NONAT, BINAT, NOBINAT, RDR, NORDR, SYNPROXY_DROP,
PUNT, REDIRECT, COPY
Rule ID ID matched
Direction ROUT, IN
Source IP IP address
address
Destination IP address
identifier
Procedure
2 Click Networking & Security and then click the Manage tab.
The NSX Ticket Logging pane is displayed at the right side of the vSphere Web Client window. Audit
logs for the operations that you perform in the current UI session include the ticket ID in the
Operation Tags column.
If multiple vCenter Servers are being managed by the vSphere Web Client, the ticket ID is used for
logging on all applicable NSX Managers.
What to do next
Ticket logging is session based. If ticket logging is on and you log out or if the session is lost, ticket
logging will be turned off by default when you re-login to the UI. When you complete the operations for a
ticket, you turn logging off by repeating steps 2 and 3 and clicking Turn Off.
Procedure
2 Click Networking & Security and then under Networking & Security Inventory click NSX
Managers.
3 Click an NSX Manager in the Name column and then click the Monitor tab.
You can click the arrows in the column headers to sort events, or use the Filter text box to filter
events.
Local CLI Run show log follow Run show log follow Run show log follow Run show log follow
command. command. command. command.
GUI NA NA NA NA
Local CLI Run show process monitor Run show system memory Run show filesystem command.
command. command.
GUI NA NA NA
The system event message logged in the syslog has the following structure.
The fields and types of the system event contain the following information.
Procedure
2 Click Networking & Security and then under Networking & Security Inventory click NSX
Managers.
3 In the Name column, click an NSX server and then click the Monitor tab.
5 When details are available for an audit log, the text in the Operation column for that log is clickable.
To view details of an audit log, click the text in the Operation column.
6 In the Audit Log Change Details, select Changed Rows to display only those properties whose
values have changed for this audit log operation.
Procedure
1 Open a Web browser window and type the IP address assigned to the NSX Manager. For example,
https://192.168.110.42.
The NSX Manager user interface opens in a web browser window using SSL.
3 Log in to the NSX Manager virtual appliance by using the user name admin and the password you set
during installation.
Procedure
5 Click OK.
Syslog data is useful for troubleshooting and reviewing data logged during installation and configuration.
NSX Edge supports two syslog servers. NSX Manager and NSX Controllers support one syslog server.
Procedure
2 Log in as admin with the password that you configured during NSX Manager installation.
For example:
6 Type the IP address or hostname, port, and protocol of the syslog server.
If you do not specify a port, the default UDP port for the IP address/host name of the syslog server is
used.
For example:
7 Click OK.
vCenter Server remote logging is enabled, and logs are stored in your standalone syslog server.
Procedure
6 Click OK.
Procedure
6 Click OK.
Procedure
7 Click OK.
Procedure
3
Click and then click Download Tech Support Log.
4 Click Download.
5 After the log is ready, click the Save to download the log to your desktop.
What to do next
You can open the log using a decompression utility by browsing for All Files in the directory where you
saved the file.
To obtain the NSX Manager certificate, you can use NSX Manager's built-in CSR generator or you can
use another tool such as OpenSSL.
A CSR generated using NSX Manager's built-in CSR generator cannot contain extended attributes such
as subject alternate name (SAN). If you wish to include extended attributes, you must use another CSR
generation tool. If you are using another tool such as OpenSSL to generate the CSR, the process is 1)
generate the CSR, 2) have it signed, and 3) proceed to the section Convert the NSX Manager Certificate
File to PKCS#12 Format.
This method is limited in that the CSR cannot contain extended attributes such as subject alternate name
(SAN). If you wish to include extended attributes, you must you another CSR generation tool. If you are
using another CSR generation tool, skip this procedure.
Procedure
Option Action
Key Size Select the key length used in the selected algorithm.
Common Name Type the IP address or fully qualified domain name (FQDN) of the NSX Manager.
VMware recommends that you enter the FQDN.
Organization Unit Enter the department in your company that is ordering the certificate.
City Name Enter the full name of the city in which your company resides.
State Name Enter the full name of the state in which your company resides.
Country Code Enter the two-digit code that represents your country. For example, the United
States is US.
6 Click OK.
Using this method, the private key never leaves the NSX Manager.
c Get the Signed Certificate and Root CA and any intermediary CA certificates in PEM format.
d To convert CER/DER formatted certificates to PEM, use the following OpenSSL command:
e Concatenate all the certificates (server, intermediary and root certificates) in a text file.
f In the NSX Manager UI, click Import and browse to the text file with all of the certificates.
g Once the import is successful, the server certificate and all the CA certificates will be shown on
the SSL Certificates page.
What to do next
Prerequisites
Verify that OpenSSL is installed on the system. You can download openssl from http://www.openssl.org.
Procedure
u After receiving the signed certificate from the authorized signer, use OpenSSL to generate a
PKCS#12 (.pfx or .p12) keystore file from the certificate file and your private key.
For example:
openssl pkcs12 -export -out server.p12 -inkey server.key -in server.crt -certfile CACert.crt
In this example, CACert.crt is the name of the root certificate that was returned by the certificate
authority.
What to do next
Prerequisites
When installing a certificate on NSX Manager, only the PKCS#12 keystore format is supported, and it
must contain a single private key and its corresponding signed certificate or certificate chain.
Procedure
6 Click Import.
SNMP traps must have the SNMPv2c version. The traps must be associated with a management
information base (MIB) so that the SNMP receiver can process the traps with object identifiers (OID).
By default, the SNMP trap mechanism is disabled. Enabling the SNMP trap only activates the critical and
high severity notifications so that the SNMP manager does not get inundated by a high volume of
notifications. An IP address or a host name defines the trap destination. For the host name to work for the
trap destination, the device must be set up to query a Domain Name System (DNS) server.
When you enable the SNMP service, a coldStart trap with OID 1.3.6.1.6.3.1.1.5.1 is sent out the first time.
A warmStart trap with OID 1.3.6.1.6.3.1.1.5.2 is sent out later on each stop-start to the configured SNMP
receivers.
If the SNMP service remains enabled, a heartbeat trap vmwHbHeartbeat with OID
1.3.6.1.4.1.6876.4.190.0.401 is sent out every five minutes. When you disable the service, a
vmwNsxMSnmpDisabled trap with OID 1.3.6.1.4.1.6876.90.1.2.1.0.1 is sent out. This process stops the
vmwHbHeartbeat trap from running and disables the service.
When you add, modify, or delete a SNMP receiver value, a warmStart trap with OID 1.3.6.1.6.3.1.1.5.2
and vmwNsxMSnmpManagerConfigUpdated trap with OID 1.3.6.1.4.1.6876.90.1.2.1.0.2 is sent to the
new or updated set of SNMP receivers.
Prerequisites
n Familiarize yourself with the SNM trap mechanism. See Working with SNMP Traps.
n Download and install the MIB module for the NSX Manager so that the SNMP receiver can process
the traps with OID. See http://kb.vmware.com/kb/1013445.
Procedure
2 Select Networking & Security > Networking & Security Inventory > NSX Managers.
Option Description
Group Notification Predefined set of groups for some system events that are used to aggregate the
events that are raised. By default, this option is enabled.
For example, if a system event belongs to a group, the trap for these grouped
events are withheld. Every five minutes a trap is sent out detailing the number of
system events that have been received from the NSX Manager. The fewer traps
being sent out save the SNMP receiver resources.
6 Click OK.
The SNMP service is enabled and traps are sent out to the receivers.
What to do next
Check whether the SNMP configuration works. See Verify SNMP Trap Configuration.
Prerequisites
Verify that you have SNMP configured. See Configure SNMP Settings.
Procedure
c Click OK.
A warmStart trap with OID 1.3.6.1.6.3.1.1.5.2 is sent out to all the SNMP receivers.
a If the SNMP receiver does not receive the traps, verify that the SNMP receiver is running on a
configured port.
b Check the accuracy of the receiver details under the SNMP settings section.
d If the Heartbeat trap stops, check whether the SNMP service is disabled or test whether the
network connectivity between the NSX Manager and the SNMP receiver is working.
When the Module, SNMP OID, or SNMP trap enabled column value appears as --, it means that those
events have not been allocated a trap OID. Therefore, a trap for these events is not going to be sent out.
A system trap has several columns that list different aspects of a system event.
Option Description
Severity Level of an event can be informational, low, medium, major, critical, or high.
By default when the SNMP service is enabled, traps are sent out for only critical and high severity events to
highlight the traps that require immediate attention.
SNMP OID Represents the individual OID and this OID is sent out when a system event is raised.
Group notification is enabled by default. When group notifications is enabled, the events or traps under this
group show the OID of the group the event or trap belongs to.
For example, group notification OID categorized under configuration group has the OID
1.3.6.1.4.1.6876.90.1.2.0.1.0.1.
Option Description
SNMP trap Shows whether sending out of the trap for this event is enabled or disabled.
enabled You can toggle the icon to individually an event or trap enablement. When group notification is enabled, you
cannot toggle the trap enablement.
Prerequisites
Verify that the SNMP settings are available. See Configure SNMP Settings.
Procedure
2 Select Networking & Security > Networking & Security Inventory > NSX Managers.
6
Click the Edit ( ) icon.
Editing a trap enablement is not allowed when group notification is enabled. You can change the
enablement of traps that do not belong to a group.
7 Change the severity of the system event from the drop-down menu.
8 If you change the severity from Informational to critical, check the Enable as SNMP Trap checkbox.
9 Click OK.
10
(Optional) Click the Enable ( ) icon or Disable ( ) icon in the header to enable or disable sending
a system trap.
11 (Optional) Click the Copy ( ) icon to copy one or more event rows to your clipboard.
The NSX Manager backup contains all of the NSX configuration, including controllers, logical switching
and routing entities, security, firewall rules, and everything else that you configure within the NSX
Manager UI or API. The vCenter database and related elements like the virtual switches need to be
backed up separately.
At a minimum, we recommend taking regular backups of NSX Manager and vCenter. Your backup
frequency and schedule might vary based on your business needs and operational procedures. We
recommend taking NSX backups frequently during times of frequent configuration changes.
NSX Manager backups can be taken on demand or on an hourly, daily, or weekly basis.
n After Day Zero deployment and initial configuration of NSX components, such as after the creation of
NSX Controllers, logical switches, logical routers, edge services gateways, security, and firewall
policies.
To provide an entire system state at a given time to roll back to, we recommend synchronizing NSX
component backups (such as NSX Manager) with your backup schedule for other interacting
components, such as vCenter, cloud management systems, operational tools, and so on.
NSX Manager backup and restore can be configured from the NSX Manager virtual appliance web
interface or through the NSX Manager API. Backups can be scheduled on an hourly, daily or weekly
basis.
The backup file is saved to a remote FTP or SFTP location that NSX Manager can access. NSX Manager
data includes configuration, events, and audit log tables. Configuration tables are included in every
backup.
Restore is only supported on the same NSX Manager version as the backup version. For this reason, it is
important to create a new backup file before and after performing an NSX upgrade, one backup for the
old version and another backup for the new version.
Procedure
3 To specify the backup location, click Change next to FTP Server Settings.
b From the Transfer Protocol drop-down menu, select either SFTP or FTP, based on what the
destination supports.
d Type the user name and password required to login to the backup system.
e In the Backup Directory field, type the absolute path where backups will be stored.
To determine the absolute path, you can log in to the FTP server, navigate to the directory that
you want to use, and run the present working directory command (pwd). For example:
This text is prepended to each backup filename for easy recognition on the backup system. For
example, if you type ppdb, the resulting backup is named as ppdbHH_MM_SS_DayDDMonYYYY.
h Click OK.
For example:
a From the Backup Frequency drop-down menu, select Hourly, Daily, or Weekly. The Day of
Week, Hour of Day, and Minute drop-down menus are disabled based on the selected frequency.
For example, if you select Daily, the Day of Week drop-down menu is disabled as this field is not
applicable to a daily frequency.
b For a weekly backup, select the day of the week the data should be backed up.
c For a weekly or daily backup, select the hour at which the backup should begin.
6 To exclude logs and flow data from being backed up, click Change next to Exclude.
b Click OK.
7 Save your FTP server IP/hostname, credentials, directory details, and pass phrase. This information
is needed to restore the backup.
Prerequisites
Before restoring NSX Manager data, we recommend reinstalling the NSX Manager appliance. Running
the restore operation on an existing NSX Manager appliance might work, too, but is not officially
supported. The assumption is that the existing NSX Manager has failed, and therefore a new NSX
Manager appliance is deployed.
The best practice is to take screen shots of the current settings for the old NSX Manager appliance or
note them so that they can be used to specify IP information and backup location information for the
newly deployed NSX Manager appliance.
Procedure
1 Take screen shots or note all settings on the existing NSX Manager appliance.
The version must be the same as the backed up NSX Manager appliance.
The Host IP Address, User Name, Password, Backup Directory, Filename Prefix, and Pass
Phrase fields in the Backup Location screen must identify the location of the backup to be restored.
6 In the Backups History section, select the check box for the backup to restore and click Restore.
If you have an intact NSX Manager configuration, you can recreate an inaccessible or failed Edge
appliance VM by redeploying the NSX Edge (click the Redeploy NSX Edge icon in the vSphere Web
Client).
The file preserves valid network configurations, enabling distribution of these configurations to other
deployments.
This functionality is available only with the vSphere Web Client 5.1 or later. VDS settings and port-group
settings are imported as part of the import.
As a best practice, export the VDS configuration before preparing the cluster for VXLAN. For detailed
instructions, see http://kb.vmware.com/kb/2034602.
Back Up vCenter
To secure your NSX deployment, it is important to back up the vCenter database and take snapshots of
the VMs.
Refer to the vCenter documentation for your vCenter version for vCenter backup and restore procedures
and best practices.
n http://kb.vmware.com/kb/2057353
n http://kb.vmware.com/kb/2034505
n http://www.vmware.com/files/pdf/techpaper/vmware-vcenter-server-availability-guide.pdf
n https://pubs.vmware.com/vsphere-60/topic/com.vmware.vsphere.install.doc/GUID-539B47B4-114B-4
9BC-9736-F14058127ECA.html
n http://kb.vmware.com/kb/2110294
Flow Monitoring
Flow monitoring is a traffic analysis tool that provides a detailed view of the traffic to and from protected
virtual machines. When flow monitoring is enabled, its output defines which machines are exchanging
data and over which application. This data includes the number of sessions and packets transmitted per
session. Session details include sources, destinations, applications, and ports being used. Session
details can be used to create firewall to allow or block rules.
You can view flow data for many different protocol types, including TCP, UDP, ARP, ICMP, and so on. You
can live monitor TCP and UDP connections to and from a selected vNIC. You can also exclude flows by
specifying filters.
Flow monitoring can thus be used as a forensic tool to detect rogue services and examine outbound
sessions.
Prerequisites
Flow monitoring data is only available for virtual machines in clusters that have the network virtualization
components installed and firewall enabled. See the NSX Installation Guide.
Procedure
2 Select Networking & Security from the left navigation pane and then select Flow Monitoring.
The page might take several seconds to load. The top of the page displays the percentage of allowed
traffic, traffic blocked by firewall rules, and traffic blocked by SpoofGuard. The multiple line graph
displays data flow for each service in your environment. When you point to a service in the legend
area, the plot for that service is highlighted.
n Top Flows displays the total incoming and outgoing traffic per service over the specified time
period based on the total bytes value (not based on sessions/packets). The top five services are
displayed. Blocked flows are not considered when calculating top flows.
n Top Destinations displays incoming traffic per destination over the specified time period. The top
five destinations are displayed.
n Top Sources displays outgoing traffic per source over the specified time period. The top five
sources are displayed.
Details about all traffic for the selected service is displayed. The Allowed Flows tab displays the
allowed traffic sessions and the Blocked Flows tab displays the blocked traffic.
6 Click an item in the table to display the rules that allowed or blocked that traffic flow.
Procedure
2 Select Networking & Security from the left navigation pane and then select Flow Monitoring.
4 Select the time period or type a new start and end date.
The maximum time span for which you can view traffic flow data is the previous two weeks.
5 Click OK.
Procedure
2 Select Networking & Security from the left navigation pane and then select Flow Monitoring.
Depending on the selected tab, rules that allowed or denied traffic for this service are displayed.
n To edit a rule:
3 Click OK.
n To add a rule:
2 Complete the form to add a rule. For information on completing the firewall rule form, see Add
a Firewall Rule.
3 Click OK.
Viewing live flows can affect the performance of NSX Manager and the corresponding virtual machine.
Procedure
2 Select Networking & Security from the left navigation pane and then select Flow Monitoring.
The page refreshes every 5 seconds. You can select a different frequency from the Refresh Rate
drop-down.
6 Click Stop when your debugging or troubleshooting is done to avoid affecting the performance of
NSX Manager or the selected virtual machine.
Procedure
2 Select Networking & Security from the left navigation pane and then select Flow Monitoring.
All firewall related flows are collected across your inventory except for the objects specified in
Exclusion Settings.
5 To specify filtering criteria, click Flow Exclusion and follow the steps below.
Service Excludes flows for the specified services and service groups.
1 Click the Add icon.
2 Select the appropriate services and/or service groups.
c Click Save.
6 To configure flow collection, click IPFix and follow the steps below.
a Click Edit next to IPFix Configuration and click Enable IPFix Configuration.
b In Observation DomainID, type a 32-bit identifier that identifies the firewall exporter to the flow
collector.
c In Active Flow Export Timeout, type the time (in minutes) after which active flows are to be
exported to the flow collector. The default value is 5. For example, if the flow is active for 30
minutes and the export timeout is 5 minutes, then the flow will be exported 7 times during its
lifetime. Once each for creation and deletion, and 5 times during the active period.
d In Collector IPs, click the Add ( ) icon and type the IP address and UDP port of the flow
collector.
e Click OK.
Activity Monitoring
Activity monitoring provides visibility into the applications that are in use on the Windows desktop virtual
machines that are managed by vCenter. This visibility helps ensure that security policies at your
organization are being enforced correctly.
A security policy may mandate who is allowed access to what applications. The cloud administrator can
generate Activity Monitoring reports to see if the IP based firewall rule that they set is doing the intended
work. By providing user and application level detail, activity monitoring translates high level security
policies to low level IP address and network based implementation.
John
VM VM VM NSX Manager
Source Destination
172.16.254.1 172.16.112.2
Once you enable data collection for Activity Monitoring, you can run reports to view inbound traffic (such
as virtual machines being accessed by users) as well as outbound traffic (resource utilization, interaction
between inventory containers, and AD groups that accessed a server).
John
VM VM VM NSX Manager
Endpoint Endpoint Endpoint
Originating Destination
User AD group App name Source IP Destination IP
VM name VM name
Prerequisites
n NSX Manager must be linked with the AD server where it will get groups to which to match Windows
VMs users.
n The vCenter inventory must contain one or more Windows desktop VMs.
n VMware Tools must be running and current on your Windows desktop VMs.
Procedure
1 On the Windows VMs in your vCenter inventory, install the Guest Introspection driver if it is not
already installed.
b Select Modify.
c Under VMCI Driver, click Guest Introspection Drivers > Will be installed on local hard drive.
The guest introspection driver detects what applications are running on each Windows VM and sends
this information to the guest introspection VM.
When first launching the VMware Tools install, choose the Custom option. In the VMCI folder, select
Guest Introspection Driver. The driver is not selected by default.
a In the vCenter Web Client, navigate to Networking & Security > Installation > Service
Deployments.
e Select the appropriate datastores, networks, and IP addressing mechanism. If you are not using
DHCP for your guest introspection VMs, create and assign an IP pool.
Two guest introspection VMs are installed, one on each host within each cluster.
a In the Hosts and Clusters view, select the Windows VM, and select the Summary tab.
Repeat this step for all Windows VMs that you want to monitor.
4 (Optional) Modify the list of vCenter objects that are monitored, or define a dynamic membership rule.
a In the vCenter Web Client, navigate to Networking & Security > Service Composer.
c Define a dynamic membership rule so that as new Windows VMs are added to the cluster, the
VM will automatically be monitored.
d Select vCenter objects to include or exclude in the activity monitoring security group.
The VMs on which you enabled activity monitoring are automatically included in the activity
monitoring security group.
In this example, all VMs with names starting with "win" are automatically added to the activity
monitoring security group. This means that activity monitoring will be automatically enabled on them.
Based on the above, they need controlled access for employees based on user identity to safeguard
corporate assets. As a starting point, the security operator at ACME Enterprise needs to be able to verify
that only administrative access is allowed to the MS SQL servers.
Procedure
4 In Outbound from leave value as All Observed AD Groups to see access from any and all
employees.
5 In Where destination virtual machine, select includes, and leave all observed destination virtual
machines selected.
6 In And where destination application, select includes, click all observed destination
applications and select the MS SQL servers.
7 Click Search.
The search results show that only administrative users are accessing the MS SQL servers. Notice
that are no groups (such as Finance or HR) accessing these servers.
8 We can now invert this query by setting the Outbound from value to HR and Finance AD groups.
9 Click Search.
No records are displayed, confirming that no users from either of these groups can access MS SQL
servers.
Applications on Datacenter
As part of their security policies, ACME Enterprise needs Visibility into all data center applications. This
can help Identify rogue applications that either capture confidential information or siphon sensitive data to
external sources.
John, Cloud Administrator at ACME Enterprise, wants to confirm that access to the SharePoint server is
only through Internet Explorer and no rogue application (such as FTP or RDP) can access this server.
Procedure
4 In Where source VM, select includes, and leave All observed virtual machines selected to
capture traffic originating from all virtual machines in the datacenter.
5 In Where destination VM, select includes, click All observed virtual machines, and select the
SharePoint server.
6 Click Search.
The Outbound App Product Name column in the search results show that all access to the SharePoint
server was only through Internet Explorer. The relatively homogenous search results indicate that there is
a firewall rule applied to this SharePoint server preventing all other access methods.
Also note that the search results display the source user of the observed traffic rather than the source
group. Clicking the arrow in the search result displays details about the source user such as the AD group
to which the user belongs.
Prerequisites
In the Applications on Datacenter scenario, John Admin had observed traffic to the ACME Enterprise
share point server. He now wants to ensure that all access from the share point server to the MSSQL
server is through expected protocols and applications.
Procedure
6 Click Search.
Search results show traffic from the share point server to the MSSQL server. The User and Outbound
App columns show that only systems processes are connecting to the MSSQL server, which is what John
expected to see.
The Inbound Port and App columns show that all access is to the MSSQL server running on the
destination server.
Since there are too many records in the search results for John to analyze in a web browser, he can
export all the entire result set and save the file in a CSV format by clicking the icon on the bottom
right side of the page.
You should also register NSX Manager with the AD Domain Controller. See Register a Windows Domain
with NSX Manager.
Note that only active connections are tracked by Activity Monitoring. Virtual machine traffic blocked by
firewall rules at the vNIC level is not reflected in reports.
Prerequisites
Procedure
4 Click the Manage tab and then click the Settings tab.
6 Click Edit.
7 In the Edit NSX Activity Monitoring Data Collection Settings dialog box, click Yes.
You must enable data collection at least five minutes before running an Activity Monitoring report.
Procedure
4
Select the Activity Monitoring Data Collection security group and click the Edit ( ) icon.
Data collection is enabled on all virtual machines you added to this security group, and disabled on
any virtual machines you excluded from the security group.
You can either do a quick query using the default search criteria by clicking Search, or tailor the query
according to your requirements.
Prerequisites
n A domain must be registered with NSX Manager. For information on domain registration, see Register
a Windows Domain with NSX Manager.
Procedure
4 Click the link next to Where source. Select the virtual machines for which you want to view outbound
traffic. Indicate whether you want to include or exclude the selected virtual machine(s) from the
report.
5 Click the link next to Where destination. Select the virtual machines for which you want to view
inbound traffic. Indicate whether you want to include or exclude the selected virtual machine(s) from
the report.
6
Click the During period ( ) icon and select the time period for the search.
7 Click Search.
Search results filtered by the specified criterion are displayed. Click a row to view detailed information
about the user for that row.
You can export a specific record or all records on this page and save them to a directory in a .csv format
VM
You can either do a quick query using the default search criteria by clicking Search, or tailor the query
according to your requirements.
Prerequisites
n A domain must be registered with NSX Manager. For information on domain registration, see Register
a Windows Domain with NSX Manager.
Procedure
5 Select the type of user group that you want to view activity for.
7 In Where destination virtual machine, select includes or excludes to indicate whether the selected
virtual machines should be included in or excluded from the search.
10 In And where destination application, select includes or excludes to indicate whether the selected
applications should be included in or excluded from the search.
13
Click the During period ( ) icon and select the time period for the search.
14 Click Search.
Search results filtered by the specified criterion are displayed. Click anywhere in the results table to view
information about the users that accessed the specified virtual machines and applications.
You can export a specific record or all records on this page and save them to a directory in a .csv format
VM VM VM VM
Prerequisites
n A domain must be registered with NSX Manager. For information on domain registration, see Register
a Windows Domain with NSX Manager.
Procedure
3 Ensure that the Outbound Activity tab is selected in the left pane.
5 Select the type of user group that you want to view resource utilization for.
7 In Where application, select includes or excludes to indicate whether the selected application
should be included in or excluded from the search.
10 In And where destination, select includes or excludes to indicate whether the selected virtual
machines should be included in or excluded from the search.
13
Click the During period ( ) icon and select the time period for the search.
14 Click Search.
Search results filtered by the specified criterion are displayed. Click a row to view information about users
within that AD group that used the specified application to access the specified virtual machines.
You can export a specific record or all records on this page and save them to a directory in a .csv format
VM
apps
OS
Developer AD group
Developer security group
You can either do a quick query using the default search criteria by clicking Search, or tailor the query
according to your requirements.
Prerequisites
n A domain must be registered with NSX Manager. For information on domain registration, see Register
a Windows Domain with NSX Manager.
Procedure
5 Select the type of user group that you want to view resource utilization for.
7 In Where the destination is, select is or is not to indicate whether the selected group should be
included in or excluded from the search.
11
Click the During period ( ) icon and select the time period for the search.
12 Click Search.
Search results filtered by the specified criterion are displayed. Click in a row to view information about the
users that accessed the specified containers.
You can export a specific record or all records on this page and save them to a directory in a .csv format
If you have defined containers in your vCenter inventory and then added a rule to allow
communication between these containers, you can verify that the rule is working by running this query
with the two containers specified in the Originating from and Where the destination is fields.
If you have defined containers in your vCenter inventory and then added a rule to deny
communication between these containers, you can verify that the rule is working by running this query
with the two containers specified in the Originating from and Where the destination is fields.
If you have implemented a policy that does not allow members of a container communicating with
other members of the same container, you can run this query to verify that the policy works. Select
the container in both Originating from and Where the destination is fields.
Suppose you have defined containers in your vCenter inventory and then added a rule to allow
communication between these containers. There may be members in either container that do not
interact with the other container at all. You may then choose to remove these members from the
appropriate container to optimize security control. To retrieve such a list, select the appropriate
containers in both Originating from and Where the destination is fields. Select is not next to the
Where the destination is field.
You can either do a quick query using the default search criteria by clicking Search, or tailor the query
according to your requirements.
Prerequisites
n A domain must be registered with NSX Manager. For information on domain registration, see Register
a Windows Domain with NSX Manager.
Procedure
5 Select the type of user group that you want to include in the search.
7 In Where AD Group, select includes or excludes to indicate whether the selected AD group should
be included in or excluded from the search.
10
Click the During period ( ) icon and select the time period for the search.
11 Click Search.
Search results filtered by the specified criterion are displayed. Click in a row to view information about the
members of the specified AD group that are accessing network resources from within the specified
security group or desktop pool.
You can export a specific record or all records on this page and save them to a directory in a .csv format
Procedure
4 Select the vCenter Server for which you want to overwrite data collection.
5 Click Edit.
7 Click OK.
Traceflow
Traceflow is a troubleshooting tool that provides the ability to inject a packet and observe where that
packet is seen as it passes through the physical and logical network. The observations allow you to
determine information about the network, such as identifying a node that is down or a firewall rule that is
preventing a packet from being received by its destination.
About Traceflow
Traceflow injects packets into a vSphere distributed switch (VDS) port and provides various observation
points along the packet’s path as it traverses physical and logical entities (such as ESXi hosts, logical
switches, and logical routers) in the overlay and underlay networks. This allows you to identify the path
(or paths) a packet takes to reach its destination or, conversely, where a packet is dropped along the way.
Each entity reports the packet handling on input and output, so you can determine whether issues occur
when receiving a packet or when forwarding the packet.
Keep in mind that traceflow is not the same as a ping request/response that goes from guest-VM stack to
guest-VM stack. What traceflow does is observe a marked packet as it traverses the overlay network.
Each packet is monitored as it crosses the overlay network until it reaches and is deliverable to the
destination guest VM. However, the injected traceflow packet is never actually delivered to the destination
guest VM. This means that a traceflow can be successful even when the guest VM is powered down.
n Layer 2 unicast
n Layer 3 unicast
n Layer 2 broadcast
n Layer 2 multicast
You can construct packets with custom header fields and packet sizes. The source for the traceflow is
always a virtual machine virtual NIC (vNIC). The destination endpoint can be any device in the NSX
overlay or in the underlay. However, you cannot select a destination that is north of an NSX edge services
gateway (ESG). The destination must be on the same subnet or must be reachable through NSX
distributed logical routers.
The traceflow operation is considered Layer 2 if the source and destination vNICs are in the same Layer
2 domain. In NSX, this means that they are on the same VXLAN network identifier (VNI or segment ID).
This happens, for example, when two VMs are attached to the same logical switch.
If NSX bridging is configured, unknown Layer 2 packets are always be sent to the bridge. Typically, the
bridge forwards these packets to a VLAN and reports the traceflow packet as delivered. A packet
reported as delivered does not necessarily mean that the trace packet was delivered to the specified
destination.
For Layer 3 traceflow unicast traffic, the two end points are on different logical switches and have different
VNIs, connected to a distributed logical router (DLR).
For multicast traffic, the source is a VM vNIC, and the destination is a multicast group address.
Traceflow observations may include observations of broadcasted traceflow packets. The ESXi host
broadcasts a traceflow packet if it does not know the destination host's MAC address. For broadcast
traffic, the source is a VM vNIC. The Layer 2 destination MAC address for broadcast traffic is
FF:FF:FF:FF:FF:FF. To create a valid packet for firewall inspection, the broadcast traceflow operation
requires a subnet prefix length. The subnet mask enables NSX to calculate an IP network address for the
packet.
Caution Depending on the number of logical ports in your deployment, multicast and broadcast
traceflow operations might generate high traffic volume.
There are two ways to use traceflow: through the API and through the GUI. The API is the same API that
the GUI uses, except the API allows you to specify the exact settings within the packet, while the GUI has
more limited settings.
n TCP and UDP source and destination port numbers. The default values are 0.
n TCP flags.
n An expiry timeout, in milliseconds (ms), for the traceflow operation. The default is 10,000 ms.
n Ethernet frame size. The default is 128 bytes per frame. The maximum frame size is 1000 bytes per
frame.
n Payload value.
Prerequisites
n Traceflow operations require communication among vCenter, NSX Manager, the NSX Controller
cluster and the netcpa user world agents on the hosts.
n For Traceflow to work as expected, make sure that the controller cluster is connected and in healthy
state.
Procedure
1 In vCenter Web Client, navigate to Home > Networking & Security > Traceflow.
If the VM is managed in the same vCenter Server where you are running the traceflow, you can select
the VM and vNIC from a list.
The destination can be a vNIC of any device in the NSX overlay or underlay, such as a host, a VM, a
logical router, or an edge services gateway. If the destination is a VM that is running VMware Tools
and is managed in the same vCenter Server from which you are running the traceflow, you can select
the VM and vNIC from a list.
Otherwise, you must enter the destination IP address (and the MAC address for a unicast Layer 2
traceflow). You can gather this information from the device itself in the device console or in an SSH
session. For example, if it is a Linux VM, you can get its IP and MAC address by running the
ifconfig command in the Linux terminal. For a logical router or edge services gateway, you can
gather the information from the show interface CLI command.
The packet is switched based on MAC address only. The destination MAC address is
FF:FF:FF:FF:FF:FF.
Both the source and destination IP addresses are required to make the IP packet valid for firewall
inspection.
Both the source and destination IP addresses are required to make the IP packet valid. In the case of
multicast, the MAC address is deduced from the IP address.
8 Click Trace.
Example: Scenarios
The following example shows a Layer 2 traceflow involving two VMs that are running on a single ESXi
host. The two VMs are connected to a single logical switch.
The following example shows a Layer 2 traceflow involving two VMs that are running on two different
ESXi hosts. The two VMs are connected to a single logical switch.
The following example shows a Layer 3 traceflow. The two VMs are connected to two different logical
switches that are separated by a logical router.
The following example shows a broadcast traceflow in a deployment that has three VMs connected to a
single logical switch. Two of the VMs are on one host (esx-01a), and the third is on another host
(esx-02a). The broadcast is sent from one of the VMs on host 192.168.210.53.
The following example shows what happens when multicast traffic is sent in a deployment that has
multicast configured.
The following example shows what happens when a traceflow is dropped because of a distributed firewall
rule that blocks ICMP traffic sent to the destination address. Notice that the traffic never leaves the
original host, even though the destination VM is on another host.
The following example shows what happens when a traceflow destination is on the other side of an edge
services gateway, such as an IP address on the Internet or any internal destination that must be routed
through the edge services gateway. The traceflow is not allowed, by design, because traceflow is
supported for destinations that are either on the same subnet or are reachable through distributed logical
routers (DLRs).
The following example shows what happens when the traceflow destination is a VM that is on another
subnet and is powered off.
For this scenario, NSX Edge connects the internal network 192.0.2.0/24 to the internet. NSX Edge
interfaces are configured as follows:
The remote gateway connects the 172.16.0.0/16 internal network to the internet. The remote gateway
interfaces are configured as follows:
Internet
NSX Edge
Note For NSX Edge to NSX Edge IPSEC tunnels, you can use the same scenario by setting up the
second NSX Edge as the remote gateway.
Terminology
IPSec is a framework of open standards. There are many technical terms in the logs of the NSX Edge
and other VPN appliances that you can use to troubleshoot the IPSEC VPN.
n ISAKMP (Internet Security Association and Key Management Protocol) is a protocol defined by RFC
2408 for establishing Security Associations (SA) and cryptographic keys in an Internet environment.
ISAKMP only provides a framework for authentication and key exchange and is designed to be key
exchange independent.
n Oakley is a key-agreement protocol that allows authenticated parties to exchange keying material
across an insecure connection using the Diffie-Hellman key exchange algorithm.
n IKE (Internet Key Exchange) is a combination of ISAKMP framework and Oakley. NSX Edge provides
IKEv1.
n Diffie-Hellman (DH) key exchange is a cryptographic protocol that allows two parties that have no
prior knowledge of each other to jointly establish a shared secret key over an insecure
communications channel. VSE supports DH group 2 (1024 bits) and group 5 (1536 bits).
Phase 1 Parameters
Phase 1 sets up mutual authentication of the peers, negotiates cryptographic parameters, and creates
session keys. The Phase 1 parameters used by NSX Edge are:
n Main mode
n SHA-1
Phase 2 Parameters
IKE Phase 2 negotiates an IPSec tunnel by creating keying material for the IPSec tunnel to use (either by
using the IKE phase one keys as a base or by performing a new key exchange). The IKE Phase 2
parameters supported by NSX Edge are:
n SHA-1
n Selectors for all IP protocols, all ports, between the two networks, using IPv4 subnets
NSX Edge proposes a policy that requires PSK, 3DES/AES128, sha1, and DH Group 2/5. The peer must
accept this policy; otherwise, the negotiation phase fails.
The following transactions occur in sequence between the NSX Edge and a Cisco VPN device in Main
Mode.
n DPD enabled
n If the Cisco device does not accept any of the parameters the NSX Edge sent in step one, the
Cisco device sends the message with flag NO_PROPOSAL_CHOSEN and terminates the
negotiation.
n If the Cisco device finds that the PSK doesn't match, the Cisco device sends a message with flag
INVALID_ID_INFORMATION; Phase 1 fails.
Cisco device sends back NO_PROPOSAL_CHOSEN if it does not find any matching policy for the
proposal. Otherwise, the Cisco device sends the set of parameters chosen.
To facilitate debugging, you can enable IPSec logging on the NSX Edge and enable crypto debug on
Cisco (debug crypto isakmp <level>).
Procedure
Procedure
4 Click the Monitor tab and then click the VPN tab.
8 Type the IP address of the NSX Edge instance in Local Id. This will be the peer Id on the remote site.
If you are adding an IP to IP tunnel using a pre-shared key, the local Id and local endpoint IP can be
the same.
10 Type the subnets to share between the sites in CIDR format. Use a comma separator to type multiple
subnets.
11 Type the Peer Id to uniquely identify the peer site. For peers using certificate authentication, this ID
must be the common name in the peer's certificate. For PSK peers, this ID can be any string. VMware
recommends that you use the public IP address of the VPN or a FQDN for the VPN service as the
peer ID
12 Type the IP address of the peer site in Peer Endpoint. If you leave this blank, NSX Edge waits for the
peer device to request a connection.
13 Type the internal IP address of the peer subnet in CIDR format. Use a comma separator to type
multiple subnets.
Option Description
PSK (Pre Shared Key) Indicates that the secret key shared between NSX Edge and the peer site is to be
used for authentication. The secret key can be a string with a maximum length of
128 bytes.
Certificate Indicates that the certificate defined at the global level is to be used for
authentication.
16 Type the shared key in if anonymous sites are to connect to the VPN service.
17 Click Display Shared Key to display the key on the peer site.
18 In Diffie-Hellman (DH) Group, select the cryptography scheme that will allow the peer site and the
NSX Edge to establish a shared secret over an insecure communications channel.
20 Select whether to enable or disable the Perfect Forward Secrecy (PFS) threshold. In IPsec
negotiations, Perfect Forward Secrecy (PFS) ensures that each new cryptographic key is unrelated to
any previous key.
21 Click OK.
NSX Edge creates a tunnel from the local subnet to the peer subnet.
What to do next
Procedure
4 Click the Monitor tab and then click the VPN tab.
6 Click Enable.
What to do next
Click Enable Logging to log the traffic flow between the local subnet and peer subnet.
Procedure
interface GigabitEthernet0/0
ip address 10.24.120.90 255.255.252.0
duplex auto
speed auto
crypto map MYVPN
!
interface GigabitEthernet0/1
ip address 172.16.0.1 255.255.0.0
duplex auto
speed auto
!
ip route 0.0.0.0 0.0.0.0 10.24.123.253
Example: Configuration
router2821#show running-config output
Building configuration...
!
interface GigabitEthernet0/1
ip address 172.16.0.1 255.255.0.0
duplex auto
speed auto
!
ip classless
ip route 0.0.0.0 0.0.0.0 10.24.123.253
!
ip http server
no ip http secure-server
!
access-list 101 permit ip 172.16.0.0
0.0.255.255 192.168.5.0 0.0.0.255
!
control-plane
!
line con 0
line aux 0
line vty 0 4
password cisco
login
line vty 5 15
password cisco
login
!
scheduler allocate 20000 1000
!
end
!
interface Ethernet0/2
shutdown
no nameif
no security-level
no ip address
!
interface Ethernet0/3
shutdown
no nameif
no security-level
no ip address
!
interface Management0/0
shutdown
no nameif
no security-level
no ip address
!
boot system disk0:/asa821-18-k8.bin
ftp mode passive
access-list ACL1 extended permit ip 172.16.0.0 255.255.0.0
192.168.5.0 255.255.255.0
access-list ACL1 extended permit ip 192.168.5.0 255.255.255.0
172.16.0.0 255.255.0.0
access-list 101 extended permit icmp any any
pager lines 24
mtu untrusted 1500
mtu trusted 1500
no failover
icmp unreachable rate-limit 1 burst-size 1
icmp permit any untrusted
icmp permit any trusted
no asdm history enable
arp timeout 14400
access-group 101 in interface untrusted
access-group 101 out interface untrusted
access-group 101 in interface trusted
access-group 101 out interface trusted
route untrusted 10.115.0.0 255.255.0.0 10.24.123.253 1
route untrusted 192.168.5.0 255.255.255.0 10.115.199.103 1
timeout xlate 3:00:00
timeout conn 1:00:00 half-closed 0:10:00
udp 0:02:00 icmp 0:00:02
timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00
mgcp-pat 0:05:00
timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00
sip-disconnect 0:02:00
timeout sip-provisional-media 0:02:00 uauth 0:05:00 absolute
timeout tcp-proxy-reassembly 0:01:00
dynamic-access-policy-record DfltAccessPolicy
no snmp-server location
no snmp-server contact
crypto ipsec transform-set MYSET esp-3des esp-sha-hmac
crypto ipsec security-association lifetime seconds 28800
Procedure
5 Select Network > Branch Office VPN > Manual IPSec to configure the remote gateway.
6 In the IPSec Configuration dialog box, click Gateways to configure the IPSEC Remote Gateway.
8 In the IPSec Configuration dialog box, click Add to add a routing policy.
9 Click Close.
NSX Edge
From the NSX Edge command line interface (ipsec auto -status, part of show service ipsec command):
Cisco
Active SA: 1
Rekey SA: 0 (A tunnel will report 1 Active and 1 Rekey SA during rekey)
Total IKE SA: 1
NSX Edge
NSX Edge hangs in STATE_MAIN_I1 state. Look in /var/log/messages for information showing that the
peer sent back an IKE message with "NO_PROPOSAL_CHOSEN" set.
Cisco
If debug crypto is enabled, an error message is printed to show that no proposals were accepted.
EV_START_MM-->MM_START, EV_START_MM-->MM_START,
EV_START_MM-->MM_START, EV_START_MM
Aug 26 18:17:27 [IKEv1 DEBUG]: IP = 10.20.129.80, IKE SA
MM:9e0e4511 terminating: flags 0x01000002, refcnt 0,
tuncnt 0
Aug 26 18:17:27 [IKEv1 DEBUG]: IP = 10.20.129.80, sending
delete/delete with reason message
NSX Edge
NSX Edge hangs at STATE_QUICK_I1. A log message shows that the peer sent a
NO_PROPOSAL_CHOSEN message.
Cisco
Debug message show that Phase 1 is completed, but Phase 2 failed because of policy negotiation failure.
.
.
Aug 26 16:03:49 [IKEv1]: Group = 10.20.129.80, IP = 10.20.129.80,
Session is being torn down. Reason: Phase 2 Mismatch
PFS Mismatch
The following lists PFS Mismatch Error logs.
NSX Edge
PFS is negotiated as part of Phase 2. If PFS does not match, the behavior is similar to the failure case
described in Phase 2 Not Matching.
Cisco
NSX Edge
PSK is negotiated in the last round of Phase 1. If PSK negotiation fails, NSX Edge state is
STATE_MAIN_I4. The peer sends a message containing INVALID_ID_INFORMATION.
Cisco
Payload length: 32
Transform number: 1
Transform ID: KEY_IKE (1)
Life-Type (11): Seconds (1)
Life-Duration (12): Duration-Value (28800)
Encryption-Algorithm (1): 3DES-CBC (5)
Hash-Algorithm (2): SHA (2)
Authentication-Method (3): PSK (1)
Group-Description (4): Alternate 1024-bit MODP group (2)
Vendor ID: 4F456C6A405D72544D42754D
Next payload: Vendor ID (13)
Payload length: 16
Vendor ID: 4F456C6A405D72544D42754D
Vendor ID: RFC 3706 Detecting Dead IKE Peers (DPD)
Next payload: NONE (0)
Payload length: 20
Vendor ID: RFC 3706 Detecting Dead IKE Peers (DPD)