2 WANs to 2 LANs (task more explained)

How to organize two WAN static ip from my provider (for example: 192.168.2.101 and 192.168.2.102) to two LAN subnets (for example: 10.0.1.0/24 and 10.0.2.0/24).

All packets from 192.168.2.101 goes to subnet 10.0.1.0/24 and from 192.168.2.102 goes to 10.0.2.0/24.


Any help or links would be much appreciated!
Thank you.

Under IP Firewall Mangle you need to routing mark the packets from the source network.

Under IP routes you need to establish a route for each of those routing marks.

That is all.

Thank you!