A DFW rule that uses the DNAT IP as a condition does not work
search cancel

A DFW rule that uses the DNAT IP as a condition does not work

book

Article ID: 413861

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

  • In a DNAT configuration, the <destination IP> is translated into the <translated IP>. Refer document Configure an NSX NAT/DNAT/No SNAT/No DNAT/Reflexive NAT
  • The DFW is configured to use the <destination IP> as a filtering condition.
  • The DFW is not functioning properly. For example, a block action cannot block the traffic as intended.

Environment

VMware NSX 4.X

Cause

By default, the firewall settings use “Match Internal Address”. For DNAT, the internal address refers to the translated destination address after NAT is applied. 
Therefore, in “Match Internal Address” mode, the DFW checks whether the <translated IP> matches the condition, not the original <destination IP>.

Resolution

Change the firewall settings to "Match External Address"
For more details, please refer document Configure an NSX NAT/DNAT/No SNAT/No DNAT/Reflexive NAT