winbox from the internet, reply from related NIC

Hi,

This question should be easy though.

I have 2 ISP connected to Mikrotik. Then I want to use winbox from each ISP connection.

ISP 1 has Public IP 1.1.1.1 interface name “Ether1”
ISP 2 has Public IP 2.2.2.2 interface name “Ether2”

I am not setting default route. All route setting are based on mangle and IP destination.

Now the problem is :

I need to remote mikrotik from the internet through 1.1.1.1, and I want the reply connection will go out through Ether1.

And

When I remote mikrotik from the internet through 2.2.2.2, I want the reply connection will go out through Ether2.

How can I set the mangle and/or route to accomplish this?

Please give me some suggestions, I am lost.
Thanks.

I am not setting default route. All route setting are based on mangle and IP destination.

You still need a default route or at least some routes. Post your configuration.

Hi jwcn,

Thanks for your comments.

My Routing Table is definitely working fine.

Let me clarify more about the situation.

My Office Mikrotik has 2 Static IP Public, 1.1.1.1 (from ISP 1 on Ether1) and 2.2.2.2 (from ISP2 on Ether2) just like I mentioned before.

Now I want to connect to my office Mikrotik from home, I have Home Public IP 9.9.9.9 which is I am going to connect to 1.1.1.1.

I can see incoming traffic to Mikrotik (winbox using port 8291) to My Office Mikrotik Server :
From 9.9.9.9 (home Public IP) to 1.1.1.1 (office Public IP from ISP 1)

If I set DEFAULT ROUTE to 2.2.2.254 (gateway of ISP2 which goes out from Ether2), then there will be a problem, because Mikrotik will route the reply connection using Ether2 !! So winbox will fail to connect.

But of course winbox WILL CONNECT if I set DEFAULT ROUTE to 1.1.1.254 (gateway of ISP1)

The idea is How to make mikrotik knows that there is incoming connection from Ether1, so the reply should goes from Ether1 also NOT Ether2? How to set the mangle?

I hope it is a clear description.

http://forum.mikrotik.com/t/policy-based-routing/19589/9

Hello changeip,

Wow, just great… it works like a charm! You are the savior!

Thanks so much for your help!