You have to mangle the packets coming in WAN2, then give them another view of the routing table thats for WAN2.
add chain=prerouting in-interface=l2tp-pip
action=mark-connection
new-connection-mark=in-pip-conn passthrough=yes
comment=“” disabled=yes
add chain=prerouting connection-mark=in-pip-conn
action=mark-packet new-packet-mark=in-pip-packet
passthrough=yes comment=“” disabled=yes
add chain=prerouting packet-mark=in-pip-packet
action=mark-routing new-routing-mark=out-pip
passthrough=yes comment=“” disabled=yes
Mark the connection, then mark the packets, then mark routing. Then, in your routing table, reproduce what you need for WAN2 (include connected routes as well) Add a route rule also (some versions need this, some don’t):
/ ip route rule
add routing-mark=out-pip action=lookup table=out-pip
comment=“” disabled=no
Use routing-test package as well.
Sam