I have two ip addresses on the same subnet on a single external interface (wan). for example 1.1.1.1/24 & 1.1.1.2/24, default gw 1.1.1.254. local network 192.168.0.0/24.
I want from address 192.168.0.1 to address 77.72.80.15 use second external ip address 1.1.1.2
Perhaps what you really want isn’t routing marks, but rather just this rule before your current masquerade rule:
/ip firewall nat
add action=src-nat chain=srcnat dst-address=77.72.80.15 src-address=192.168.0.1 to-addresses=1.1.1.2
Well, “this is not work” is not very helpful. Try to be more specific. If you put this new rule before your original masquerade rule, there’s no reason why it wouldn’t catch matching packets (src-address=192.168.0.1 dst-address=77.72.80.15) and rewrite their source to 1.1.1.2 (if I understood you correctly, that’s what you want). Unless there’s some other earlier rule preventing that. Or it can be influenced by some other, e.g. filter rules. So it also depends on how exactly you test it and what you see, what exactly does not work as you expect.