Have a look at this http://forum.mikrotik.com/t/redundant-wans-script-or-mangle-to-make-both-accessible-and-2-hop-failover/111636/1