Designate a outgoing WAN for traffic to a certain Website

This article demonstrates how to set up a route policy and specify the interface for the traffic which destined for a certain domain name, e.g., draytek.com, so that network administrator may ensure which gateway will the LAN clients use when they are accessing a website.

a screenshot of DrayOS Route Policy List

1. Go to Routing >> Load-Balance/ Route Policy, click on an available index number.

a screenshot of DrayOS Route Policy List

2. Enable this profile, and enter a comment. For Destination in the Criteria field, choose "Domain Name" and enter the domain to which this rule should apply. (NOTE: If you don't see the option Domain Name, it is because the model/firmware version does not support this yet. You could select IP Range instead and use nslookup to find out the IP address of the domain and input it/them at IP Range.)

a screenshot of DrayOS Route Policy Settings

a screenshot of DrayOS Route Policy Settings

3. Select the Interface to which the filtered traffic should take, then click OK to apply.

a screenshot of DrayOS Route Policy Settings

4. Now, we may use "tracert" command to check which route did the packet take when accessing the domain.

a screenshot of Windows command prompt running trace route to www.draytek.com

 

Wildcard Application

1. Go to Objects Settings >> String Object,click on any available index number.

a screenshot of DrayOS Route Policy List

2. Go toRouting >> Load-Balance/ Route Policy, click on any available index number.

a screenshot of DrayOS Route Policy List

3. Enable this profile, and enter a comment. For Destination in the Criteria field, choose "Domain Name" and click the Select,then choose the index number which you wan to apply.

a screenshot of DrayOS Route Policy Settings

a screenshot of DrayOS Route Policy Settings

4. Select the Interface to which the filtered traffic should take, then click OK to apply.

a screenshot of DrayOS Route Policy Settings

a screenshot of DrayOS Route Policy Settings

5. Now, we may use "tracert" command to check which route did the packet take when accessing the domain.

a screenshot of DrayOS Route Policy Settings

1. Go to Objects Setting >> Keyword / DNS Object >> DNS Object tab. Click Add to create a new profile.

 a screenshot of Vigor3900 DNS Object List

2. Name the profile, enter the full domain name of the website in Member Table, then click Apply to save.

a screenshot of Vigor3900 DNS Object Settings

3. Go to Routing >> Policy Route to add a policy rule as follows:

  1. Name the profile
  2. Check Enable.
  3. At Destination, set Destination Type to Object, and select the DNS Object created in the previous step.
  4. At Route Rule, set Out-going Rule to "User-Defined", and set the Out-going Interface to which the traffic should go.
a screenshot of Vigor3900 Policy Rule Settings

4. With the above configuration, all the traffic that destined to www.draytek.com should be routed to WAN 2. We may use the traceroute command on the LAN hosts to verify this.

a screenshot of Windows command prompt running trace route to www.draytek.com

Published On: 2016-10-12 

Was this helpful?   

book icon

Related Articles