Community discussions

MikroTik App
 
melectronics
just joined
Topic Author
Posts: 22
Joined: Fri Oct 06, 2023 7:43 pm
Location: Germany

OSPF - Out filter with accept sending out also when not redistributed?

Fri Apr 18, 2025 12:39 pm

Hello to the MikroTik community and team,

I think I have maybe found a bug in ROSv7.(17.2), when I create a route filter with following content
if(dst == 0.0.0.0/0) {set ospf-ext-metric 10; accept}
and set it in the OSPF instance as the out filter, do nothing else, OSPF is sending out the default route. But I didn´t have redistribute any routes (for my case static) or set "default-originate". Why OSPF / RouterOS is sending it out anyways?
 
User avatar
Larsa
Forum Guru
Forum Guru
Posts: 1938
Joined: Sat Aug 29, 2015 7:40 pm
Location: The North Pole, Santa's Workshop

Re: OSPF - Out filter with accept sending out also when not redistributed?

Fri Apr 18, 2025 1:27 pm

Check if the default route you see is actually comming from OSPF using ”routes print where ospf”.

If so, enable OSPF logging (without packets, i.e. !packets) to trace the sender.
 
melectronics
just joined
Topic Author
Posts: 22
Joined: Fri Oct 06, 2023 7:43 pm
Location: Germany

Re: OSPF - Out filter with accept sending out also when not redistributed?

Fri Apr 18, 2025 6:00 pm

Check if the default route you see is actually comming from OSPF using ”routes print where ospf”.

If so, enable OSPF logging (without packets, i.e. !packets) to trace the sender.
No the default route is not from OSPF. It is from static. When it would be from OSPF I would understand why it is send out.
But how I can set the "!packets" ?
 
User avatar
Larsa
Forum Guru
Forum Guru
Posts: 1938
Joined: Sat Aug 29, 2015 7:40 pm
Location: The North Pole, Santa's Workshop

Re: OSPF - Out filter with accept sending out also when not redistributed?

Fri Apr 18, 2025 6:17 pm

Alright, then I’ve probably misunderstood what you’re looking for.

Anyway, here’s how you enable OSPF logging: "/system logging add action=memory topics=ospf,!packet". With this setting, you should be able to track both inbound and outbound OSPF LSA messages without being flooded by low-level protocol details.
 
melectronics
just joined
Topic Author
Posts: 22
Joined: Fri Oct 06, 2023 7:43 pm
Location: Germany

Re: OSPF - Out filter with accept sending out also when not redistributed?

Fri Apr 18, 2025 6:30 pm

Alright, then I’ve probably misunderstood what you’re looking for.
But you don´t think that this is a bug?