/ ip firewall mangle
add chain=prerouting dst-address=10.111.0.0/24 action=accept in-interface=LAN
add chain=prerouting dst-address=10.112.0.0/24 action=accept in-interface=LAN
With policy routing it is possible to force all traffic to the specific gateway, even if traffic is destined to the host (other that gateway) from the connected networks. This way routing loop will be generated and communications with those hosts will be impossible. To avoid this situation we need to allow usage of default routing table for traffic to connected networks.
I don't really understand these two rules can somebody explain further? I interpret as if packet come into LAN and it is destined for those gateway accept it. What confuses me is that aren't this all the packets? All the packet need to go to that gateway to get internet access. So isn't this like marking all the packets that is connecting to internet?