LAN1 ↔ MT router A with Internet connection and own LAN ↔ MT router B with own LAN ↔ MT router C with Internet connection and own LAN
Is it possible to “reroute” the LAN1 IP subnet to reach router C?
Edit:
I think I need policy routing, but I do not find it in MT 2.9. Where is it or I got it all wrong?
See “routing-mark” in mangle.
Initial testing is promising, but I think the example in MikroTik documentation is a little buggy (http://www.mikrotik.com/docs/ros/2.9/ip/route):
[admin@MikroTik] ip firewall mangle add action=mark-routing new-routing-mark=mt \
\... chain=prerouting
[admin@MikroTik] ip route> add gateway=10.0.0.254 routing-mark=mt
[admin@MikroTik] ip route rule> add src-address=10.0.0.144/32 \
\... table=mt action=lookup
[admin@MikroTik] ip route rule> print
Flags: X - disabled, I - invalid
0 src-address=192.168.0.144/32 action=lookup table=mt
[admin@MikroTik] ip route rule>
The first line should be:
[admin@MikroTik] ip firewall mangle add action=mark-routing new-routing-mark=mt \
\... chain=prerouting src-address=10.0.0.144
The “route rule” line:
[admin@MikroTik] ip route rule> add src-address=10.0.0.144/32 \
\... table=mt action=lookup
seems to be totally useless as packets from this marked host does flow out the new gateway even without this line.
Anyone willing to shed some light?