Forward traffic to other Internet Gateway Router

This article is an application of Route Policy. Suppose the Vigor Router is used for LAN-to-LAN VPN connections, and there is another firewall router on LAN act as the Internet Gateway. We want all the traffic to be sent to the firewall router first, especially those from the remote network. This article shows how to use Route Policy and forward the VPN traffic to another device on LAN.

network topology

Go to Routing > Load-Balance/Route Policy, click an index number to create a new policy. Configure the policy as follows:

  1. Enable this policy.
  2. Enter Source IP as the IP address of the branch office. Or you may leave the Source IP as Any so that this Route Policy will be applied to all the LAN clients including the local ones.
  3. Leave Destination IP and Destination Port as Any.
  4. Select Interface as the LAN where the firewall router is on.
  5. Select Specific Gateway and enter the local IP address of the firewall router.
  6. Set Priority to a number smaller than 150 to give this policy a higher priority than the Routing Table.
  7. Click OK to save the configuration.
a screenshot of DrayOS policy-based routing setup

After the configuration, you may use the "tracert" command to see if the traffic pass the firewall router before it goes to the Internet.

a screenshot of command prompt window

To add a route policy to change the gateway, go to Routing >> Route Policy, click Add a rule as follows:

  1. Input Profile Name
  2. Check Enable
  3. Select ALL for Protocol
  4. Select ANY for Source Type
  5. Select ANY for Destination Type
  6. Select User Defined for Out-going Rule
  7. Select lan1 for Out-going Interface
  8. Input the LAN Gateway's IP address for Out-going (Gateway)
  9. Select NAT for Mode
  10. Check Disable for Failover to Next Rule.
a screenshot of Vigor3900 Policy Rule setup

After that, we can use command tracert -d to check if the traffic to the Internet is going to the specified LAN Gateway.

a screenshot of traceroute

Published On: 2016-05-12 

Was this helpful?