Dual Wan help

Hey Guys

I have 2 WAN connections and want to pass all voice traffic through ISP 1 and everything else through ISP2.I have a SP server that is connected to port 7 on RB2011.
So I guess only port 7 will pass traffic to ISP1.

Please give me a start on how to achieve this.

Thanks
KM

You need to mark the voip packets with routing marks. Create a firewall > mangle rule. All packets coming in on port7 (your PBX port), then action = Mark Packets with routing mark=VOIP

In your routes, create a route with dst address as 0.0.0.0/0 and in that route there is an option to apply it against packets with a routing mark.

Anything without a routing mark (all other traffic) will go out the other 0.0.0.0/0 route.

Also for your Firewall > NAT rules, the default out of box config sets ether1 with a masquerade rule. You have to add a second masquerade rule for the other port you’ve designated as a wan port.

If you voip wan is a dynamic IP, then you may have to get a bit creative with the routes. The default route that is created with a DHCP client doesn’t give the option to specify routing marks. So uncheck “Add Default Route” in your DHCP client. You’ll have to create the route manually, and unfortunately have some script that checks to see if your IP has changed and update the static route’s gateway with new gateway IP provided by ISP…