Hi,
I have simple setup like this
http://wiki.mikrotik.com/wiki/Load_Bala ... e_Gateways
Basically I have two outgoing interfaces and two different gateways, A and B. I have two LAN segments as well. I want to direct LAN1 segment over gateway A and LAN2 segment over gateway B.
Configuration is like in the example. Packets from LAN1 segment are (routing) marked as A and from LAN2 segment as B. In routing table there are two routes, one for packets with routing mark A and one for packets with routing marks B.
Everything is OK when packets are arriving from LAN interface, they are properly marked.
But I have problems with DNS. Router is resolving DNS requests so the packets that are originating in router itself do not have any marks and therefore do not have any route to follow in routing table.
How can I mark the packets going from router itself with some routing mark? For example I want to mark all the traffic from router itself with routing mark A.
How to do that?
What chain should I use?