• February 23, 2025, 04:35:36 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: Help With Policy Based Routing  (Read 5942 times)

lingnau

  • Level 2 Member
  • **
  • Posts: 53
    • www.lingnau.com.br
Help With Policy Based Routing
« 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:
Logged

danilovav

  • Level 4 Member
  • ****
  • Posts: 424
  • Alexandr Danilov
Re: Help With Policy Based Routing
« Reply #1 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
Logged
BR, Alexandr Danilov

lingnau

  • Level 2 Member
  • **
  • Posts: 53
    • www.lingnau.com.br
Re: Help With Policy Based Routing
« Reply #2 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.
Logged