Community discussions

MikroTik App
 
User avatar
kameelperdza
Member
Member
Topic Author
Posts: 468
Joined: Thu Nov 27, 2008 11:45 am
Location: Oudtshoorn, South Africa

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

Tue Apr 06, 2010 1:16 pm

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.
 
User avatar
Eising
Member Candidate
Member Candidate
Posts: 272
Joined: Mon Oct 27, 2008 10:21 am
Location: Copenhagen, Denmark

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

Tue Apr 06, 2010 1:51 pm

Use a routing filter.
/routing filter add chain=ospf-in prefix=192.168.1.0/24 action=discard
 
User avatar
kameelperdza
Member
Member
Topic Author
Posts: 468
Joined: Thu Nov 27, 2008 11:45 am
Location: Oudtshoorn, South Africa

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

Wed Apr 07, 2010 12:09 pm

And how do i stop the ip range 192.168.10.0/24 to be redistributed on wlan2
 
User avatar
Eising
Member Candidate
Member Candidate
Posts: 272
Joined: Mon Oct 27, 2008 10:21 am
Location: Copenhagen, Denmark

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

Wed Apr 07, 2010 12:58 pm

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.
 
chickenlittle
just joined
Posts: 13
Joined: Sun Mar 15, 2009 3:35 pm

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

Sat Apr 10, 2010 9:35 pm

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?
 
kazanova
Member
Member
Posts: 406
Joined: Tue Sep 06, 2005 11:52 am

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

Sat Apr 10, 2010 11:17 pm

can i hide my MT from neighbor discover
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

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

Wed Apr 14, 2010 9:40 am

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
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

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

Wed Apr 14, 2010 10:36 am

can i hide my MT from neighbor discover
please do not ask questions in threads that are not related to your question.

http://wiki.mikrotik.com/wiki/Manual:IP ... _discovery
 
kazanova
Member
Member
Posts: 406
Joined: Tue Sep 06, 2005 11:52 am

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

Sat Apr 17, 2010 5:44 pm

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