NSX Edge NAT configuration

Using NAT rules to redirect traffic

Last updated 26th November 2021

Objective

NAT stands for network address translation. It’s a way to map multiple addresses to a single one.
There are two types of NAT:

  • DNAT stands for Destination NAT. It modifies the destination address and is used for inbound traffic.
  • SNAT stands for Souce NAT. It modifies the source address and is used for outbound traffic.

This guide explains how to create NAT rules.

Requirements

Instructions

Interface access

In the vSphere interface menu, go to the Networking and Security dashboard.

Menu

On the left side, navigate to the NSX Edges section then click on the appliance you're setting up.

NSX

Go to the NAT tab.

DNAT

Click + Add and select Add DNAT Rule.

DNAT

Set the parameters as follows:

  • the interface the traffic will come from (for DNAT, your public facing interface)
  • the protocol and possibly sub-protocol targeted
  • the source IP or IP range
  • if applicable, the source port
  • the original destination IP (typically, your public facing IP)
  • if applicable, the original port targeted
  • the translated destination IP or IP range
  • enable or disable the rule
  • enable or disable logs on the rule

Click Add.

DNAT

SNAT

Click + Add and select Add SNAT Rule.

SNAT

Set the parameters as follows:

  • the interface the traffic will be sent out of
  • the protocol and possibly sub-protocol targeted
  • the source IP or IP range
  • if applicable, the source port
  • the destination IP or IP range
  • if applicable, the destination port
  • the translated source IP or IP range
  • enable or disable the rule
  • enable or disable logs on the rule

Click Add.

SNAT

Publish

Rules created or modified will not be registered and active until you click the Publish button.

PUB

The rules you created are now functional.

PUB

Go further

Join our community of users on https://community.ovh.com/en/.


Did you find this guide useful?

Please feel free to give any suggestions in order to improve this documentation.

Whether your feedback is about images, content, or structure, please share it, so that we can improve it together.

Your support requests will not be processed via this form. To do this, please use the "Create a ticket" form.

Thank you. Your feedback has been received.


These guides might also interest you...

OVHcloud Community

Access your community space. Ask questions, search for information, post content, and interact with other OVHcloud Community members.

Discuss with the OVHcloud community

In accordance with the 2006/112/CE Directive, modified on 01/01/2015, prices exclude VAT. VAT may vary according to the customer's country of residence.