FQDN(Fully Qualified Domain Name) based NAT

Description

This article details how to use FQDN (Fully Qualified Domain Name) in the Network Address Translation (NAT) policies.

Cause

FQDN Address Objects for NAT is not supported in 6.5.0.X firmwares and in older firmwares.

Resolution

SonicOS 6.5.1.0 supports NAT policies using FQDN Address Objects for the original source/destination.

Use scenarios include:

Scenario 1. Specifying public IP addresses with FQDN to a local server

 Image

Step 1: Creating the necessary Address Objects

  • Click MANAGE | Network | Address Objects
  • Click Address Objects | Add button and create two Address Objects as below:

 Image

 Image

NOTE: Domain name aaa.com resolves to WAN X1 IP of the SonicWall. DNS record must be configured in the DNS Server.

  • Click ADD to add the Address Objects to the SonicWall's Address Object Table.

Image

Step 2: Creating the inbound NAT Policy

  • Click MANAGE | Rules | NAT Policies | Add

Image

  • Click ADD

Image

Step 3: Creating the inbound Firewall Access Rules

  • Click MANAGE | Rules | Access Rules
  • Click Matrix View | Select your WAN to Appropriate Zone Access Rule. (This will be the Zone the Private IP of the Server resides on.)

Image

  • Click ADD

Image

  • Click ADD

Image

Scenario 2. Specifying a public server with FQDN for consistency across replacement with a server that has a known IP address

 Image

Step 1: Creating the necessary Address Objects

  • Click MANAGE | Network | Address Objects
  • Click Address Objects | Add button and create following FQDN address object, assuming that aaa.com FQDN address object has already been created from scenario 1.

Image

  • Click ADD to add the Address Objects to the SonicWall's Address Object Table.

Image

Step 2: Creating the inbound NAT Policy

  • Click MANAGE | Rules | NAT Policies | Add

Image

  • Click ADD

Image

NOTE: Creating an access rule from LAN to WAN is NOT necessary since all outbound traffics are allowed from LAN to WAN by default.

Scenario 3. Routing traffic from/to a FQDN to have a source IP address other than the outbound interface IP

Image

NOTE: In this case, PC: 10.10.10.11 has been assigned WAN IP: 11.11.11.12 instead of the default WAN X1 IP to access aaa.com which is hosted externally.

Step 1: Creating the necessary Address Objects

  • Click MANAGE | Network | Address Objects
  • Click Address Objects | Add button and create following FQDN address object, assuming that aaa.com FQDN address object has already been created from scenario 1.

Image

  • Click ADD

Image

Step 2: Creating the inbound NAT Policy

  • Click MANAGE | Rules | NAT Policies | Add

Image

  • Click ADD

Image

NOTE: Creating an access rule from LAN to WAN is NOT necessary since all outbound traffics are allowed from LAN to WAN by default.

CAUTION: FQDN is not supported for the translated source/destination. Also, the Advanced page is disabled if FQDN is used in either or both the original source/destination fields.



Related Articles

  • SonicWall UTM throws an error : " Invalid Authentication " Error: SN and EPAID Do Not Match
    Read More
  • Firewall logs show frequent probe status changes after upgrade
    Read More
  • SSO Agent 4.0: Installation, Configurations, and troubleshooting
    Read More
not finding your answers?
was this article helpful?