Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Network Traffic Routing in Sonicwall

Published on
16,782 Points
2 Endorsements
Last Modified:
Network traffic routing plays key role in your network, if you have single site with heavy browsing or multiple sites, replicating important application data from your Primary Default Gateway ,you have to route your other network traffic from your primary gateway to secondary gateway.

This article will step through configuring  static routes in your SonicWALL Network Appliance to route HTTP /  HTTPS or any specific traffic to Secondary Default Gateway. This article applies all SonicWALL Network Appliance supporting Sonicwall Enhance OS.

This article assumes that you have Two (2) ISP, and both connected to your Sonicwall Appliance via ISP Modem/Router.
NOTE: It is assumed that both WAN connection are configured and active.

HTTP Rule :
Login to the SonicWALL Network Appliance and go to Network >Routing > Add (refer to Figure 1) >
Source:      LAN Subnet or Any
Destination:       Any
Service:       HTTP
Gateway:       Secondary Default Gateway
Interface:       X2
Metric:       20
Comment:       HTTP Route

(Optional) Select the Disable route when the interface is disconnected checkbox to have the route automatically disabled when the interface is disconnected. i Recomend to CHECK this BOX.

(Optional) The Allow VPN path to take precedence.I Recomend to leave this box UN-CHECKED.

HTTPS Rule :
Login to the SonicWALL Network Appliance and go to Network >Routing > Add (refer to Figure 2) >
Source:      LAN Subnet or Any
Destination:       Any
Service:       HTTPS
Gateway:       Secondary Default Gateway
Interface:       X2
Metric:       20
Comment:       HTTPS Route

Once both rules created you can also verify, logon to your SonicWALL Network Appliance> Network >Routing. you will be able to see new created rules (refer to Figure 3)

You can create as many rules as you want, if you have two or three ISP  i would strongly suggest you to route trraffic on Multiple ISP. Custom routes can also be created for IT staff Downloading or Uploading Data.
  • 2

Expert Comment

we can achive this by using load balance in sonicwall?? why we will craete static routes?
LVL 16

Author Comment


Thank you for your commets, actually there is a big difference. lets take one example

Customer has a two office, One is HO and other is DR, both connected via VPN and you have 2 ISP connection @ your HO

ISP A-----Leased line----6MB UP/Down
ISP B-----ADSL Line-----512/KB UP / 10MB Down

Customer is using ISP for Mail server, Mail CCR replication to DR, Application replicating to DR or SAN to SAN replication to DR location via 6MB line and he doest not want to use this line @ the same time he want to use this line as a backup if both ADSl fails.

so the solution is to route HTTP, HTTPS, FTP traffic to Secondary default gateway and @ the same time you can enjoy load blance on Primary and Secondary Gateway.

once you will route traffic in normal case the route will go to Secondary gateway and wil not consume your primary gateway bandwidth. but once Secondary GW fails the primary will act on request.

Expert Comment

Yes, make sense


Expert Comment

I came across another instance why this would be useful.  

A client system needed to connect to a secured site with session control.  The session was managed probably via a cookie that recorded the referrer IP address.

With load balancing the browser was being directed through both ISP connections and each time the router switched the user would lose her session forcing her to log in again.  Within minutes her session was lost yet again because of the load balancing.

I had to create a static route directing all traffic to that particular site through a specific interface.

Featured Post

Managing Security Policy in a Changing Environment

The enterprise network environment is evolving rapidly as companies extend their physical data centers to embrace cloud computing and software-defined networking. This new reality means that the challenge of managing the security policy is much more dynamic and complex.

Join & Write a Comment

This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses
Course of the Month15 days, 5 hours left to enroll

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month