How to create Route Policy on SonicOSX 7.0?

Description

A simple static routing entry specifies how to handle traffic that matches specific criteria, such as destination address, destination mask, gateway to forward traffic, the interface in which gateway is located, and the route metric. This method of static routing satisfies most static requirements, but is limited to forwarding based only on destination addressing.
Policy-based Routing (PBR) allows you to create extended static routes to provide more flexible and granular traffic handling capabilities. SonicOS PBR allows for matching based upon source address, source netmask, destination address, destination netmask, service, interface, and metric. This method of routing allows for full control of forwarding based upon a large number of user defined variables.
PBR supports Fully Qualified Domain Name (FQDN). A FQDN can be used as the source or destination of the PBR entry, and the PBR entry can be redistributed to advanced routing protocols. It also supports routing based on applications and multi-path routing.

Resolution

EXAMPLE 1:  We want source IP: 172.27.78.81 on LAN to use the X2 WAN connection for accessing the Internet.

To create a Route Policy:

  1. Navigate to Policy | Rules and Policies | Route Policy tab and click on Add at the bottom of the screen.
    Image

  2. Give it a relevant name and enter the following in the Lookup tab. 
    Source: Click on the pencil icon to add a new address object. Enter the relevant name and create a host type object on LAN zone with IP as 172.27.78.81. Click Save.
    Image



    Image


    Destination: Any
    Select the radio button for Service
    Service Object: Any


    Image


  3. Enter the following in the Next Hop tab:
    Radio button for Standard Route
    Interface: X2
    Gateway: X2 default gateway
    Metric: 1 (This is for highest priority, any number between 1 and 20 can be used. The lower the number, the higher the priority)
    Image

  4. Enter your TOS and TOS mask values as shown below formate. Click Save.
    Image
    Reference image to understand the TOS and TOS mask value.

    Image

    Image

EXAMPLE 2:  We want all SMTP traffic to be routed on the X1 WAN connection. 


To create a Route Policy

  1. Navigate to Policy | Rules and Policies | Route Policy tab and click on Add at the bottom of the screen.

    Image

  2. Give it a relevant name and enter the following in the Lookup tab.
    Source: Any
    Destination: Any
    Select the radio button for Service
    Service Object: Select SMTP (Send an email) from the drop-down
    Image

  3. Enter the following in the Next Hop tab:
    Radio button for Standard Route
    Interface: X1
    Gateway: X1 default gateway
    Metric: 1 (This is for highest priority, any number between 1 and 20 can be used. The lower the number, the higher the priority)
    Image

  4. Leave all fields under Advanced and Probe tabs on default. Click Save.
    Image
    Image

Related Articles

  • SonicOS 8.1.0 FAQ
    Read More
  • SonicWall GEN8 TZs and GEN8 NSas Settings Migration
    Read More
  • Getting started with SonicWall firewalls
    Read More
not finding your answers?