Route traffic to default gateway based upon traffic type

Hello,

I’ve seen a number of examples that demonstrate how to do traffic shaping based upon mangle rules/queues.

Our Mikrotik FW is connected to a bonded pair of T1s as well as a DSL line. The DSL line is “flaky” compared to the T1s although it is much faster on the downstream.

I would like to set things up so that certain types of traffic will preferentially run over the T1.

For example, lets say that I wanted to route AIM traffic (which I believe is port 5190) to use the T1 instead of the DSL line.

Can someone point me out on where I can learn how to do this?

Thanks

Although we don’t do this on RouterOS I can say it’s a great technique for offloading bulk traffic that does not care about latency etc. from expensive symmetric circuits. In our case we mark http requests which are consequently routed to a squid box that in turn is connected to a “commercial” cable drop. Works very well. Only downside is that some customers with special needs have to be provisioned to route normally.

On a typical day 70-80% of inbound traffic arrives via the el-cheapo cable, leaving our T connections relaxed and ready for VoIP and other stuff that really needs careful handling. Another nice thing about this arrangement is that on the rare occasions we have problems with the T connections customers take a long a time to catch on, the assumption of most being the if the Web works then their ISP must not have a problem. :smiley:

Fancier things are certainly possible, definitely worth learning how to do. I wish I could tell you how to do it on ROS but there’s a whole gang here who have the chops for that!

mangle and set routing marks

and set up routing to use marks.

Thanks for the pointer! :slight_smile: