I’ve seen others post this recently within other posts, but it seems to be getting overlooked so I’m posting a specific thread on it.
Policy routing seems completely broken in the latest Beta 9 (though some others have pointed out that it stopped working at Beta 7). Routing marks are not obeyed as they should be. Additionally, the Preferred Source address is being ignored. This all worked in 2.9.
Policy rules based on adresses and such seem to be ok, problem are the routing marks. Marks are being ignored in both routing and policy rules.
I hope it will be fixed in next release.
try adding a routing rule (rule tab) that just specifies the same mark and the table name, this got it working for us… however in 2.9 you didnt have to do that.
That’s correct for packets passing through the router. When it’s a packet originated on the router, the documentation shows that it goes through Mangle before the routing decision, thus a mangle rule on the output chain should be able to add a route mark which is subsequently used to policy route the packet.
I have policy routing working in b9, but it was a little quirky at first. Here are my rules that work - anything coming in the l2tp tunnel gets marked so it can leave thru the same tunnel using the public IP.
mark the incoming connection.
/ip firewall mangle
add action=mark-connection chain=prerouting comment=“”
connection-state=new disabled=no in-interface=l2tp-PortableIP
new-connection-mark=pip-conn passthrough=yes
This is still broken. Even with the simply policy rule of routing-mark=xxx table=xxx, the preferred source of the connected route is overriding the preferred source of the default route in the xxx table.
This is still broken even in RC4. Hopefully this gets fixed before “release”.