ospf how to prevent some dynamic routes to be added??

O have setup ospf with nmba and it seems to be working.

I have also noticed that it add all the routes that it can find as dynamic.

Is there a way to prevent some routes to be added. for security reasons?
Im planning to use 172.16.0.0/24 on my network. Currently i have three 192.168.0.0/24 networks on the same routers.

Use a routing filter.

/routing filter add chain=ospf-in prefix=192.168.1.0/24 action=discard

And how do i stop the ip range 192.168.10.0/24 to be redistributed on wlan2

You have two chains available: ospf-in and ospf-out. The chain ospf-in works by filtering incoming routes. Those that are rejected through that chain will not enter the routers routing table. The chain ospf-out controls which routes will be advertised to ospf neighbours. If you want a specific prefix not advertised to your neighbour, you must filter it in ospf-out. As far as I can tell, you cannot selectively filter out routes per neighbour or output interface.

does the ospf-out filter work on dynamic routes? like pppoe routes for example?? i did’nt manage to get them to work properly. if i choose log as an action i can see they are marked correctly, but dirscarding doesn’t work. the router advertises the routes to his neighbors just as before.. bug or feature?

can i hide my MT from neighbor discover

what was said - you have 2 options, filter out routes when you send them out, but cannot do that per interface, just out. Or you fitler out certain routes when you receive. All routes added by OSPF are dynamic. usually with flags ADo that means - Active, Dynamic, ospf

please do not ask questions in threads that are not related to your question.

http://wiki.mikrotik.com/wiki/Manual:IP/Neighbor_discovery

i don’t see that my question is totally out of object
hid route is filter i see in that way