When I ping from outside to IP-WAN1, counters begin to increase on:
chain=input in-interface=wan1 action=mark-connection new-connection-mark=cm-wan1
But are always 0 in:
add chain=output connection-mark=cm-wan1 action=mark-routing new-routing-mark=rm-wan1
I 've found a lot of examples that cover such scenario, but all of them have differences.
I just want to ping both interfaces. When this is working, I want to forward some ports through them.
That 's the way I used to do it with linux routers. I know linux iptables and Mikrotik are quite de same, but … I just want to know if there is an official Mikrotik way to do the same thing.
I 've tested it and it works.
The steps are:
IP configuration under /ip address
interface: wan1 ip: wan1-ip
interface: wan2 ip: wan2-ip
…
interface: wanN ip: wanN-ip
With that simple steps, all connections made to the router coming in a specific interface will be answered back the same interface correctly.
This allows, for example, to make Winbox connections to any WAN link in the router. This could be useful: you can manage the router via wan2 if wan1 is overloaded.
In my case, wan1 is the default-gw for internet browsing, wan2 is used for remote business offices and wan3 is used for users VPNs —> that 's why I need wan2 and wan3 to answer back local connections regardless they are not the main default gateway. No need to load balance or failover.