Traffic distribution between two WAN interfaces

Hello,

I have two gateways:

  • 192.168.31.1/30 reachable on ether1, which is a 4G router with only 50GB of data available
  • 192.168.32.1./30 reachable on ether2, which is a slow ADSL connection

I’d like to use the 4G gateway only for HTTP and SSL purposes and send the rest of the traffic to the ADSL gateway. This is what I ended up doing:

/ ip firewall mangle
add chain=prerouting action=mark-routing new-routing-mark=“HTTP” passthrough=no dst-port=80 protocol=tcp comment=“HTTP” disabled=no
add chain=prerouting action=mark-routing new-routing-mark=“SSL” passthrough=no dst-port=443 protocol=tcp comment=“SSL” disabled=no
add chain=prerouting action=mark-routing new-routing-mark=“POP3” passthrough=no dst-port=110 protocol=tcp comment=“POP3” disabled=no
add chain=prerouting action=mark-routing new-routing-mark=“SMTP” passthrough=no dst-port=25 protocol=tcp comment=“SMTP” disabled=no
add chain=prerouting action=mark-routing new-routing-mark=“OTHER” passthrough=no comment=“OTHER” disabled=no

/ ip route
add dst-address=0.0.0.0/0 gateway=192.168.31.1 scope=255 target-scope=10 routing-mark=“HTTP” comment=“HTTP” disabled=no
add dst-address=0.0.0.0/0 gateway=192.168.31.1 scope=255 target-scope=10 routing-mark=“SSL” comment=“SSL” disabled=no
add dst-address=0.0.0.0/0 gateway=192.168.32.1 scope=255 target-scope=10 routing-mark=“POP3” comment=“POP3” disabled=no
add dst-address=0.0.0.0/0 gateway=192.168.32.1 scope=255 target-scope=10 routing-mark=“SMTP” comment=“SMTP” disabled=no
add dst-address=0.0.0.0/0 gateway=192.168.32.1 scope=255 target-scope=10 routing-mark=“OTHER” comment=“OTHER” disabled=no

This seems to be wrong or uncomplete, because when I try to test the internet connection of the router it says there’s no route to destination:

SEQ HOST SIZE TTL TIME STATUS
0 no route to host
1 no route to host
2 no route to host
sent=3 received=0 packet-loss=100%

¿What am I missing here?

Thank you un advance.

If this is all you have in “/ip route”, then you didn’t add any default route for router itself. Add one (or two if you want failover) without routing-mark and it will work.