Book Image

VMware NSX Cookbook

By : Bayu Wibowo, Tony Sangha
Book Image

VMware NSX Cookbook

By: Bayu Wibowo, Tony Sangha

Overview of this book

This book begins with a brief introduction to VMware's NSX for vSphere Network Virtualization solutions and how to deploy and configure NSX components and features such as Logical Switching, Logical Routing, layer 2 bridging and the Edge Services Gateway. Moving on to security, the book shows you how to enable micro-segmentation through NSX Distributed Firewall and Identity Firewall and how to do service insertion via network and guest introspection. After covering all the feature configurations for single-site deployment, the focus then shifts to multi-site setups using Cross-vCenter NSX. Next, the book covers management, backing up and restoring, upgrading, and monitoring using built-in NSX features such as Flow Monitoring, Traceflow, Application Rule Manager, and Endpoint Monitoring. Towards the end, you will explore how to leverage VMware NSX REST API using various tools from Python to VMware vRealize Orchestrator.
Table of Contents (19 chapters)
Title Page
Packt Upsell
Foreword
Contributors
Preface
Index

Configuring and viewing the NSX Distributed Firewall Log


In this recipe, we will work through the process of configuring an ESXi host to ship log data to a centralized syslog server, configure a distributed firewall rule to log all flows that match its five tuple rule, and view the DFW log on the ESXi host via the console.

Getting ready

You will need to have the following access and configurations present before proceeding with this recipe:

  • NSX Manager deployed
  • Access to vCenter Server via the vSphere Web Client
  • Syslog collector available for the log shipment
  • Access to the ESXi host via the SSH protocol

How to do it...

This recipe is made up of two different parts-configuring NSX DFW log and viewing NSX DFW logs.

Configuring the NSX DFW logs

NSX DFW logs are part of the ESXi host log and need to be configured on each ESXi host that has NSX DFW installed:

  1. Log in to the vSphere Web Client UI, navigate to Home | Host & Clusters, and select an ESXi host. In the center pane of the selected ESXi host...