EDIT: SOLVED.
The sudden connection speed after upgrade to v7.12 led me to a bit more googling. It seems, that Fasttrack is not compatible with Mangle. After applying Fasttrack firewall rule only to connections with "no connection mark", all started to work again
And it also means that Fasttrack did not work in v7.6 on Mikrotik hEX (model RB750Gr3)
===
@OriiOn
Have you resolved the problem?
I am facing exactly the same issue with model RB750Gr3 - Routing Marks worked till v7.6. and stopped working on v7.12.
(BTW, I can see a significant connection speed update - from max 200 Mbps on v7.6 up to 700 Mbps on v7.12.)
wg0 - Wireguard tunnel. The objective is that any connection comming from wg0 to Mikrotik must also return via wg0.
New connections outgoing from LAN must go via main routing table.
IP firewall mangle rules:
;;; Connection-mark for incoming wg0
chain=prerouting action=mark-connection new-connection-mark=rtr1-conn passthrough=yes connection-mark=!rtr1-conn in-interface=wg0"
;;; Routing mark rtr1 for returning communication
chain=prerouting action=mark-routing new-routing-mark=rtr1 passthrough=yes connection-mark=rtr1-conn in-interface=!wg0"
IP/Route:
dst-address=0.0.0.0/0 routing-table=rtr1 pref-src="" gateway=wg0 immediate-gw=wg0 distance=1 scope=30 target-scope=10 suppress-hw-offload=no
Routing/table:
;;; table for wg0 replies to incoming connections
name="rtr1" fib
I have worked-around the bug by creating a routing policy rule to route any communication from my LAN server 10.11.13.21 via wg0 temporarily.
src-address=10.11.13.21/32 action=lookup table=rtr1
When I add filter for routing mark `rtr1`, this routing rule stops working:
src-address=10.11.13.21/32 routing-mark=rtr1 action=lookup table=rtr1
So either the routing mark is not applied or it is lost.