PPC for multiple local subnets

Hi i was reading this wikki article:http://wiki.mikrotik.com/wiki/PCC

I have tested it and it works great with 1 local subnet. But what could i do to change it to fit my needs?

I have 2 internet lines

I have 4 internal interfaces with 4 different subnets for different needs.

From what i see the Wan part should remain the same, but i think some changes should be made for multiple internal interfaces

Any help would be greatly appreciated

Thank you.

Going by the wiki example:

add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses:2/0 \
    action=mark-connection new-connection-mark=wlan1_conn passthrough=yes
add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses:2/1 \
    action=mark-connection new-connection-mark=wlan2_conn passthrough=yes
add chain=prerouting connection-mark=wlan1_conn in-interface=Local action=mark-routing new-routing-mark=to_wlan1
add chain=prerouting connection-mark=wlan2_conn in-interface=Local action=mark-routing new-routing-mark=to_wlan2

The easiest way would be to duplicate those lines once for each internal interface.

Thanks you for a very fast answer.

I still have some problems with this setup if i use those rules for all the lan interfaces:

Is prerouting taking priority over Nat?

On my Wan interfaces i have multiple ip addresses set up through which i am Nat-ing to some private ip’s

My problem is that if i enable the rules above for all the lan interfaces some private ip’s will not Nat out through the Wan ip it should go out through nor i can reach it through the public ip:

chain=srcnat action=src-nat to-addresses=
src-address=10.10.10.200 out-interface=Wan1

chain=dstnat action=dst-nat to-addresses=10.10.10.200
dst-address=

Also i have a pptp connection from a remote office, and when i try to reach that ip (10.10.10.200) i cannot.

Can anyone tell me how i could still have load balance and still nat out some ip’s through certain public ip’s?

Thank you