How to Prioritize 1 user / host to specific route.

Hello guys,

/ip address
add address=10.10.10.2/24 interface=wan1 network=10.10.10.0
add address=20.20.20.2/24 interface=wan2 network=20.20.20.0
add address=192.168.1.1/24 interface=ether1 network=192.168.1.0
add address=192.168.2.1/24 interface=ether2 network=192.168.2.0
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether4
add action=masquerade chain=srcnat out-interface=ether5
/ip route
add distance=1 gateway=10.10.10.1
add distance=1 gateway=20.20.20.2

Example :
Host / User 1 : 192.168.1.2/24
Host / User 2 : 192.168.2.2/24

I want to set User 1 go to route wan1 and User 2 go to route wan2. I already tried NAT (srcnat & masquerade) and not working.
Feel free to ask if you confuse of my question.
Thanks.

Much simpler;

/ip firewall nat
add action=masquerade chain=srcnat out-interface=wan1 src-address=192.168.1.0/24
add action=masquerade chain=srcnat out-interface=wan2 src-address=192.168.2.0/24

I’m unsure of why you have these both, use either the interface etherX or wanX, no tboth;

ip address
add address=10.10.10.2/24 interface=wan1 network=10.10.10.0
add address=20.20.20.2/24 interface=wan2 network=20.20.20.0
ip firewall nat
add action=masquerade chain=srcnat out-interface=ether4
add action=masquerade chain=srcnat out-interface=ether5

Thanks for the correction.

But, I just need to change the route for 1 host/user, not for all subnet.

Just amend as needed;

/ip firewall nat
add action=masquerade chain=srcnat out-interface=wan1 src-address=192.168.1.2/32
add action=masquerade chain=srcnat out-interface=wan2 src-address=192.168.2.2/32