D-Link Forums

The Graveyard - Products No Longer Supported => D-Link NetDefend Firewalls => Topic started by: lingnau on October 23, 2012, 06:54:15 AM

Title: Help With Policy Based Routing
Post by: lingnau on October 23, 2012, 06:54:15 AM
Hello.
Here's the scenario.

Today, all outbound traffic from my network goes trough WAN1, if WAN1 is down, it goes trough WAN2.

The thing is, I want one computer to always make outbound connections trough WAN2. Is that possible? I imagine the solution should be Policy based routing and a new routing table that only has WAN2. Correct?

Any tips? I tried doing it with no sucess.

Below is the image from the main routing table:
(https://lh6.googleusercontent.com/-ETFSRdX_Tjc/UIag_-gEsLI/AAAAAAAAAzk/7NMqLRPDXy8/s912/2012-10-23_114056.png)
Title: Re: Help With Policy Based Routing
Post by: danilovav on October 25, 2012, 06:33:52 AM
Routing > Routing tables
Add new table alt_wan2
Add route wan2 all-nets wan2_gw 100

Routing > Routing rules
lan/special_lan_ip wan/all-nets, forward alt_wan2, return main
Title: Re: Help With Policy Based Routing
Post by: lingnau on October 30, 2012, 04:25:50 AM
Routing > Routing tables
Add new table alt_wan2
Add route wan2 all-nets wan2_gw 100

Routing > Routing rules
lan/special_lan_ip wan/all-nets, forward alt_wan2, return main

Thank you danilovav, it worked perfectly. I already had a "WAN2 All Nets" routing table. I just didn't figure that I had to use that table in the "forward table" and the "main" in returnig table.

Can't thank you enough.