Configuring Multiple WAN subnets using static ARP with SonicOS Enhanced

Description

It is not currently possible to directly assign more than a single IP address to a primary or secondary WAN interface, but the SonicWall appliance is capable of answering on behalf of a 1-2-1 NAT policy set up for a network resource. This would be useful in environments where an ISP has assigned a customer multiple dissimilar public IP subnet blocks, and the customer wishes to use IP addresses from these blocks to provide access to internal network resources. One solution is to have the ISP configure upstream routing to point these subnets to the fixed IP address of the primary or secondary WAN interfaces of the SonicWall. An alternative is to configure static ARP and routing on the SonicWall to respond to a second IP subnet. You would do this by configuring a Static ARP entry for the secondary WAN subnet and adding a route for that subnet to the routing table.

  • ISP provided primary subnet configured on the X1 (WAN) interface: 1.1.1.0/24.
  • Additional block of IP addresses provided by the ISP: 2.2.2.0/24. 
  • SMTP Server in the LAN to be accessed from outside using 2.2.2.50. 

    Image

Resolution for SonicOS 7.X

This release includes significant user interface changes and many new features that are different from the SonicOS 6.5 and earlier firmware. The below resolution is for customers using SonicOS 7.X firmware.

  1. Login to the SonicWall management interface.
  2. Click NETWORK on the top bar and navigate to the SYSTEM | ARP | Static ARP Entries page and click on the ADD button.
    Image
  3. IP Address: 2.2.2.1 (specify an IP address from the additional subnet)
    Interface: WAN / X1 (because the additional subnet resides on the WAN interface) 
    Publish Entry - Enabling this option causes SonicWall to respond to ARP queries for the specified IP address with SonicWall's MAC address. This box must be checked when creating additional subnets. 
  4. Click on Save.

Creating a Static Route

  1.   Navigate to the OBJECT| Match Objects page.
  2.  Creating a new Address Object

    Name: the Address Object for your secondary subnet
    Zone: WAN  
    Type: Network
    Network: Enter the Network ID of the Secondary subnet
    Click: Save
  3.  Navigate to the POLICY| Rules and Policies page.
  4. Creating new Custom Rules.

    Source: Any
    Destination: New WAN  Subnet       
    Service:
     Any
    Gateway: 0.0.0.0
    Interface: X1
    Metric: 20

    Image
    Image

     NOTE: The SonicWall will not respond to ICMP/SNMP/HTTP/HTTPS management traffic on a published Static ARP IP address.

Configuring a SMTP server behind SonicWall with the new WAN subnet

The SMTP server at 192.168.168.100 will be NATed to 2.2.2.50 ip address when going out to the Internet. Likewise, the SMTP server can be access from the outside using IP address 2.2.2.50.

  • Create a public and a private address object for the SMTP server (For the same, please navigate to Objects | Address Objects  ).
    Image Image
    2. Configure an Inbound NAT Policy under Rules | NAT Policies.
    Image
    NOTE: Please Enable Create a Reflexive policy under the advanced tab.
    3. Create an access rule allowing inbound SMTP access.
    Image


  • Action:Allow 
  • From Zone:WAN
  • To Zone:LAN                                                            
  • Service: SMTP
  • Source: Any 
  • Destination: SMTP Server_Public 
  • Users Allowed: All
  • Schedule: Always on
  • Enable Logging: checked
  • Allow Fragmented Packets: checked

Resolution for SonicOS 6.5

This release includes significant user interface changes and many new features that are different from the SonicOS 6.2 and earlier firmware. The below resolution is for customers using SonicOS 6.5 firmware.

Creating a Static ARP entry

  1. Login to the SonicWall management interface.
  2. Click MANAGE on the top  bar and navigate to the Network | ARP page and click on the OK button and then hit ACCEPT button at the bottom. Image

    IP Address: 2.2.2.1 (specify an IP address from the additional subnet)
    Interface: WAN / X1 (because the additional subnet resides on the WAN interface) 
    Publish Entry - Enabling this option causes the SonicWall to respond to ARP queries for the specified IP address with the SonicWall's MAC address. This box must be checked when creating additional subnets. 

  3. Click OK.

Creating a Static Route

  1.   Navigate to Network | Routing page.
  2.    Click Add. 

    Source: Any
    Destination :New WAN  Subnet       
    Service :
     Any
    Gateway: 0.0.0.0
    Interface: X1
    Metric: 20

  3. Creating a new Address Object

    Name: the Address Object for your secondary subnet
    Zone: WAN  
    Type: Network
    Network: Enter the Network ID of the Secondary subnet
    Image

     NOTE: The SonicWall will not respond to ICMP/SNMP/HTTP/HTTPS management traffic on a published Static ARP IP address.


Configuring a SMTP server behind SonicWall with the new WAN subnet

The SMTP server at 192.168.168.100 will be NATed to 2.2.2.50 ip address when going out to the Internet. Likewise, the SMTP server can be access from the outside using IP address 2.2.2.50.

  1. Create a public and a private address object for the SMTP server (For the same, please navigate to Objects | Address Objects  ).Image

  2. Configure an Inbound NAT Policy under Rules | NAT Policies.
    Image

  3. Create an access rule allowing inbound SMTP access.
    Image
  • Action:Allow 
  • From Zone:WAN
  • To Zone:LAN                                                            
  • Service: SMTP
  • Source: Any 
  • Destination: SMTP Server_Public 
  • Users Allowed: All
  • Schedule: Always on
  • Enable Logging: checked
  • Allow Fragmented Packets: checked


Resolution for SonicOS 6.2 and Below

The below resolution is for customers using SonicOS 6.2 and earlier firmware. For firewalls that are generation 6 and newer we suggest to upgrade to the latest general release of SonicOS 6.5 firmware.

Creating a Static ARP entry

  1. Login to the SonicWall management interface.
  2. Navigate to the Network | ARP page and click  ADD
    Image  

    • IP Address: 2.2.2.1 (specify an IP address from the additional subnet).
    • Interface: WAN / X1 (because the additional subnet resides on the WAN interface).
    • Publish Entry - Enabling this option causes the SonicWall to respond to ARP queries for the specified IP address with the SonicWall's MAC address. This box must be checked when creating additional subnets.
  3. Click OK.

Creating a Static Route

  1.  Navigate to the Network | Routing page.
  2. Click  Add. Create the following new route policy.

    Source: Any
    Destination :New WAN  Subnet 
    Service : Any
    Gateway: 0.0.0.0
    Interface: X1
    Metric: 20

  3. Creating a new Address Object.

    Name: the Address Object for your secondary subnet (New Wan Subnet)
    Zone: WAN  
    Type: Network
    Network: Enter the Network ID of the Secondary subnet
  1. Image

    NOTE: The SonicWall will not respond to ICMP/SNMP/HTTP/HTTPS management traffic on a published Static ARP IP address.

Configuring a SMTP server behind SonicWall with the new WAN subnet


The SMTP server at 192.168.168.100 will be NATed to 2.2.2.50 ip address when going out to the Internet. Likewise, the SMTP server can be access from the outside using IP address 2.2.2.50.

  1. Create a public and a private address object for the SMTP server
    ImageImage

  2. Configure an Inbound NAT Policy under Network | NAT Policies.
    Image 

    • Original Source: Any
    • Translated Source: Original
    • Original Destination: SMTP Server_Public
    • Translated Destination: SMTP Server_Private
    • Original Service: SMTP
    • Translated Service: Original
    • Inbound Interface: Any
    • Outbound Interface: Any
    • Comment: Webserver behind SonicWall.
    • Enable NAT Policy: Checked
    • Create a reflexive policy: Checked
  3. Create an Access Rule allowing inbound SMTP access.
    Image
  • Action:Allow 
  • From Zone:WAN
  • To Zone:LAN         
  • Service: SMTP
  • Source: Any 
  • Destination: SMTP Server_Public 
  • Users Allowed: All
  • Schedule: Always on
  • Enable Logging: checked
  • Allow Fragmented Packets: checked

Related Articles

  • Using 31-Bit Prefixes on IPv4 Address Error: Index of the interface: Invalid IP Address
    Read More
  • How to block a website using CFS 4.0 CLI commands
    Read More
  • How to Configure Wire / Tap mode in SonicOS
    Read More
not finding your answers?
was this article helpful?