Make a firewall mangle rule that sets a routing mark on packets to the server IP with a destination port matching what you want to route via WAN2. Make a route out WAN2 for that routing mark.
/ip firewall mangle
add chain=prerouting protocol=tcp dst-address=[IP of server] dst-port=[port on server you want to hit via WAN2] action=mark-routing new-routing-mark=via_wan2
/ip route
add dst-address=0.0.0.0/0 gateway=[IP of WAN2 gateway] routing-mark=via_wan2
If you put a lot of traffic through it might be worth optimizing some. With the rules above every packet must be inspected for destination IP address and destination port. You can make that a little more efficient by only doing that at the start of the connection and marking the connection, and marking routing off the connection mark (which is only one thing to be inspected):
/ip firewall mangle
add chain=prerouting protocol=tcp connection-state=new dst-address=[IP of server] dst-port=[port on server you want to hit via WAN2] action=mark-connection new-connection-mark=via_wan2 passthrough=yes
add chain=prerouting connection-mark=via_wan2 action=mark-routing new-routing-mark=via_wan2
/ip route
add dst-address=0.0.0.0/0 gateway=[IP of WAN2 gateway] routing-mark=via_wan2
Might not be worth it though depending on what hardware you have and how many resources you have spare.
I can test this a little later, but i think i dont need to much optimizing.
This is a Alix (Wrap board) with 3 eth and 1 wlan. I am the only user.
I have an office in the basement, where i have access to my work network trough a wireless link. For private use i have a 20mbit cable, wich both are connected to the router.
I am using cable for “everything”, and work network ony when i need to service stuff available only in that network. Don’t seem necessary to waste bandwith on my work wireless when i have plenty bandwith on my cable access. The MT routes all this for me.
This particular setup allows me to download updates/big files and such faster, mostly at night, when most of the customers on the Wireless service are not using their internet connections.
PS:
I manage this WISP network, and need to save all bandwith for customers, i am not extremely nice to a ISP, and not using max available bandwith