Setting mangle rule for the router itself............

Topic sounds weird but you will understand the topic…

Ive got a total of 4 outbound routes on MT951G. 2 x ipv4 and 2 x ipv6. Ive got routes set with ping check for fall-over.

One ipv4 route has a routing-mark so I can push certain destination addresses / ports down it. The other I just masquerade out. Reason is one IP is totally private and the other public.

But on the ipv4 side, Ive got a specific mangle rule using the destination IP of the mail server and the port to mark and it goes out the private interface, works perfectly.

Here’s the question…

The MT itself is not effected by the mangle rule and hammers out the default public route.

So my question, how can I create a mangle rule that packet marks the MT itself? Does it use 127.0.0.1?

My MTs all downstream of this MT all route properly of-course as they are entering over the interfaces.

Ive ducked the issue by putting on our ipv6 mail server IP address on and it works.

Its an issue as the public IP is blacklisted for spam and my own server is rejecting it, hence why I’m trying to get the MT to send using the mangle rule and hence routing-mark.

Thanks!