I have abandoned the connection oriented approach to routing.
Now I am adding routing marks on each packet, based on the src network address. This works and wan interfaces are selected correctly based on src address.
/ip firewall mangle
add action=mark-routing chain=prerouting comment=“route internat via wan2” dst-address-list=
!local-net in-interface=internat new-routing-mark=wan2
add action=mark-routing chain=prerouting comment=“route szkola via wan3” dst-address-list=
!local-net dst-address-type=“” in-interface=szkola new-routing-mark=wan3
/ip route
add distance=1 gateway=10.88.0.1 routing-mark=wan2
add distance=1 gateway=10.46.0.1 routing-mark=wan3
add distance=1 gateway=10.0.0.1I just learned that one can have multiple connection marks, so I may be revisiting the connection oriented routing marks. Packet routing works if I dont have input connections, but I may need that in the future. http://forum.mikrotik.com/t/multiple-connection-marks/54806/1
I hope I can manage following with ROS 6.7
- 3 vlans, each using separate wan (no LB or failover)
- connection oriented routing marks
- connection oriented priorioty marks for queue tree
- separate up/down qos queue tree for each vlan/wan pair.
There are some loose ends I am unable to grasp.
I understand how to control upload, by attaching HTB to wan iface.
But how do I qos download direction from specific wan iface, if the download flow goes to multiple vlans/lans., namly, connections from the router itself + connections from corresponding vlan + connections from port forwards (dstnat) that end up on other lan/vlans, In other words connections through single specific wan fan-out to multiple interfaces. I dont know how to create HTB for download with multiple interfaces.