Policy based routing over ospf Network Question

Hello,
I Have a RB1100 in a tower with 2 wireless links to NOC.
This links are over two ospf networks, this provides me failover in case that one link fails.

in this tower there is 2 type of users that belongs 2 different addresses lists.
I Try to do a p.b.r. using this address list, and trying to send one kind of customer over one link and the other kind of customers over the other link, but does’nt work.

I have this 2 rules in mangle:

chain=prerouting action=mark-routing new-routing-mark=23M_usuari passthrough=no src-address-list=!1Mb
chain=prerouting action=mark-routing new-routing-mark=1M_usuari passthrough=no src-address-list=1Mb

and there is 2 route commands:
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=
10.255.255.233 routing-mark=1M_usuari scope=30 target-scope=10
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=
10.255.255.217 routing-mark=23M_usuari scope=30 target-scope=10
and finally there are all the ospf dynamic created routes.

When I enable this routes I am unable to get acces to neither Internet nor NOC.
10.255.255.233 and 10.255.255.217 are the IP of NOC core router ethernet ports attached to wireless links(they are in bridged mode).

What I’m doing wrong in this setup?

Thanks in advance!!!

Most likely because of your policy routing rules you are forming routing loop.
Check with traceroute.

Thanks mrz for the response, but it makes no sense for me.
Why there is a routing loop?

I don’t do masquerade because we are giving to our customers Public Ip addresses through DHCP server and we have 3 address list (for doing bandwith control), and try to do 1M routing mark and not 1M routing mark.

I think there is 3 routing tables main, 1M and not 1M. When I try to send 1 packet that belongs to one packet mark the router try to locate the default gateway for this routing mark, once the router gets the routing decision, I think, it doesn’t try to locate the same address in the main table or other tables ,isn’t it?

What’s the way to avoid routing loops, if is possible, in this setup?

Thanx in advance.

I am not saying 100% that there are routing loops, it is just a suggestion. Run traceroute and you will see on which router is exactly the problem and look from there.