# OSPF-out filter not working

**URL:** <https://forum.mikrotik.com/t/ospf-out-filter-not-working/12082>\
**Category:** General\
**Created:** [March 8, 2007, 2:17am UTC](https://forum.mikrotik.com/t/ospf-out-filter-not-working/12082 "2007-03-08T02:17:59Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![meshnet](https://forum.mikrotik.com/letter_avatar/meshnet/32/6_449c533f586939b6e5f246632a46421f.png) [@meshnet](https://forum.mikrotik.com/u/meshnet)\
**Post date:** [March 8, 2007, 2:17am UTC](https://forum.mikrotik.com/t/ospf-out-filter-not-working/12082/1 "2007-03-08T02:17:59Z")

</div>

I know it is routing-test, but has anyone made the ospf-out filter work?

I have read about 6 different threads in the forums, and they all go  
silent after this determination.

Has anyone tested ospf filters in 3.0bx? Do they work there?

Thanks,  
Richard

---

<div class="post-metadata">

**Author:** ![janisk](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/janisk/32/174_2.png) [@janisk](https://forum.mikrotik.com/u/janisk)\
**Post date:** [March 8, 2007, 8:24am UTC](https://forum.mikrotik.com/t/ospf-out-filter-not-working/12082/2 "2007-03-08T08:24:27Z")

</div>

are you sure that route is not filtered?

please post your route filter here, and describe what you wanted to do with that filter

---

<div class="post-metadata">

**Author:** ![meshnet](https://forum.mikrotik.com/letter_avatar/meshnet/32/6_449c533f586939b6e5f246632a46421f.png) [@meshnet](https://forum.mikrotik.com/u/meshnet)\
**Post date:** [March 8, 2007, 7:16pm UTC](https://forum.mikrotik.com/t/ospf-out-filter-not-working/12082/3 "2007-03-08T19:16:58Z")

</div>

Here is what I’m seeing, and tell me if it is what the filter is supposed to be doing…

When I put in the filters, they seem to apply to what routes that particular router generates only.

Example, I have a MT as a ABR between to areas, I only want to propagate some routes between the borders.

If I put in filters , they do filter what that specific router generates ( statics / connected ), but not what it hears inter-area and propagates to the other area.

Sorry, I’m used to cisco filters, and I’m assuming the MT filters should work like those..

Richard

---

<div class="post-metadata">

**Author:** ![tneumann](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/tneumann/32/99_2.png) [@tneumann](https://forum.mikrotik.com/u/tneumann)\
**Post date:** [March 8, 2007, 8:55pm UTC](https://forum.mikrotik.com/t/ospf-out-filter-not-working/12082/4 "2007-03-08T20:55:06Z")

</div>

> [@meshnet](#):
>
> When I put in the filters, they seem to apply to what routes that particular router generates only.

Correct, and that’s exactly how it should be.

> [@meshnet](#):
>
> Example, I have a MT as a ABR between to areas, I only want to propagate some routes between the borders.

This **can not be done** with OSPF filters. An OSPF router must never drop LSAs - doing so would potentially mess up the link state/topology calculation of other OSPF routers. It is allowed to be selective about which LSAs it installs into its own routing table (that would be the job of OSPF import filtering) or what external (i.e. non-OSPF-originated) routing information (such as static or connected routes) it considers to generate LSAs for in the first place (that - and only that - is the job of OSPF output filters).

> [@meshnet](#):
>
> Sorry, I’m used to cisco filters, and I’m assuming the MT filters should work like those.

Cisco does not filter received LSAs either, they also must (and do) propagate them.

–Tom

---

<div class="post-metadata">

**Author:** ![meshnet](https://forum.mikrotik.com/letter_avatar/meshnet/32/6_449c533f586939b6e5f246632a46421f.png) [@meshnet](https://forum.mikrotik.com/u/meshnet)\
**Post date:** [March 8, 2007, 10:43pm UTC](https://forum.mikrotik.com/t/ospf-out-filter-not-working/12082/5 "2007-03-08T22:43:05Z")

</div>

I would swear this is what we are doing with this..

[http://www.cisco.com/en/US/products/sw/iosswrel/ps1839/products\_feature\_guide09186a00800b5d4f.html](http://www.cisco.com/en/US/products/sw/iosswrel/ps1839/products_feature_guide09186a00800b5d4f.html)

Feature Overview

The OSPF ABR Type 3 LSA Filtering feature extends the ability of an ABR that is running the OSPF protocol to filter type 3 link-state advertisements (LSAs) that are sent between different OSPF areas. This feature allows only packets with specified prefixes to be sent from one area to another area and restricts all packets with other prefixes. This type of area filtering can be applied out of a specific OSPF area, into a specific OSPF area, or into and out of the same OSPF areas at the same time. This feature is supported by the addition of the area filter-list command in router configuration mode.

I’ll have to check out Cisco configs.. maybe they are all generated by the routers, but I’m pretty sure not.

Richard

---

<div class="post-metadata">

**Author:** ![tneumann](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/tneumann/32/99_2.png) [@tneumann](https://forum.mikrotik.com/u/tneumann)\
**Post date:** [March 9, 2007, 8:12am UTC](https://forum.mikrotik.com/t/ospf-out-filter-not-working/12082/6 "2007-03-09T08:12:46Z")

</div>

Richard,

OK, I kind of missed that you were specifically talking about inter-area filtering (though you clearly said so, I should have read your post more carfully).

What I wrote about routers not being allowed to suppress LSAs is true within one area, inter-area is a different thing and of course routing information might be suppressed, summarized, modified etc. between areas.

From your observation it appears that the OSPF-in/out filtering in RouterOS only applies to the scenario that I described and does not apply to the inter-area scenario that you’re trying to configure, but I’m guessing here as I never tried inter-area filtering with RouterOS. Maybe one of the MT guys can shed some light on the capabilities of the RouterOS OSPF implementation regarding this particular feature…

–Tom

---

<div class="post-metadata">

**Author:** ![meshnet](https://forum.mikrotik.com/letter_avatar/meshnet/32/6_449c533f586939b6e5f246632a46421f.png) [@meshnet](https://forum.mikrotik.com/u/meshnet)\
**Post date:** [March 10, 2007, 2:14pm UTC](https://forum.mikrotik.com/t/ospf-out-filter-not-working/12082/7 "2007-03-10T14:14:35Z")

</div>

Ping..

Anything from Mikrotik on this?  
3.0x maybe?

Thanks,  
Richard

---

<div class="post-metadata">

**Author:** ![mrz](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/mrz/32/308_2.png) [@mrz](https://forum.mikrotik.com/u/mrz)\
**Post date:** [March 10, 2007, 5:08pm UTC](https://forum.mikrotik.com/t/ospf-out-filter-not-working/12082/8 "2007-03-10T17:08:58Z")

</div>

only external routes can be filtered

list of routes that can be filtered is here:  
/routing ospf status lsa print external

---

<div class="post-metadata">

**Author:** ![meshnet](https://forum.mikrotik.com/letter_avatar/meshnet/32/6_449c533f586939b6e5f246632a46421f.png) [@meshnet](https://forum.mikrotik.com/u/meshnet)\
**Post date:** [March 10, 2007, 10:30pm UTC](https://forum.mikrotik.com/t/ospf-out-filter-not-working/12082/9 "2007-03-10T22:30:32Z")

</div>

Hrm..

[admin@xxxxxx] routing ospf\> /routing ospf status lsa print external  
no such command or directory (status)

V2.9.40 on a 532 routing-test enabled

I do want to filter external routes… in-between areas.

Richard

---

<div class="post-metadata">

**Author:** ![tneumann](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/tneumann/32/99_2.png) [@tneumann](https://forum.mikrotik.com/u/tneumann)\
**Post date:** [March 10, 2007, 11:48pm UTC](https://forum.mikrotik.com/t/ospf-out-filter-not-working/12082/10 "2007-03-10T23:48:10Z")

</div>

> [@meshnet](#):
>
> /routing ospf status lsa print external  
> no such command or directory (status)

I believe that command is for v3beta and not supported on RouterOS 2.9

> [@meshnet](#):
>
> I do want to filter external routes… in-between areas.

Yeah, the routing information initially came from an external source, but the place where you’d like the filter to apply is when the routing information is propagated from one OSPF area to another, but as it appears RouterOS does not allow a filter to be used for that operation. It can only filter the external routing information at the very first router where it is imported from external into OSPF. Once it is inside OSPF and goes from area to area there’s no more filtering…

–Tom

---

<div class="post-metadata">

**Author:** ![mrz](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/mrz/32/308_2.png) [@mrz](https://forum.mikrotik.com/u/mrz)\
**Post date:** [March 11, 2007, 10:14am UTC](https://forum.mikrotik.com/t/ospf-out-filter-not-working/12082/11 "2007-03-11T10:14:07Z")

</div>

> [@meshnet](#):
>
> Hrm..
> 
> [admin@xxxxxx] routing ospf\> /routing ospf status lsa print external  
> no such command or directory (status)

Yes it’s for v3, sorry

---

<div class="post-metadata">

**Author:** ![meshnet](https://forum.mikrotik.com/letter_avatar/meshnet/32/6_449c533f586939b6e5f246632a46421f.png) [@meshnet](https://forum.mikrotik.com/u/meshnet)\
**Post date:** [March 29, 2007, 2:54pm UTC](https://forum.mikrotik.com/t/ospf-out-filter-not-working/12082/12 "2007-03-29T14:54:45Z")

</div>

Now that the MT guys are back from MUM, can I get a ruling on this?

Richard

---

<div class="post-metadata">

**Author:** ![janisk](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/janisk/32/174_2.png) [@janisk](https://forum.mikrotik.com/u/janisk)\
**Post date:** [March 30, 2007, 10:25am UTC](https://forum.mikrotik.com/t/ospf-out-filter-not-working/12082/13 "2007-03-30T10:25:19Z")

</div>

in v2.9.41 OSPF works very very good, try upgrading and then try again

---

<div class="post-metadata">

**Author:** ![mrz](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/mrz/32/308_2.png) [@mrz](https://forum.mikrotik.com/u/mrz)\
**Post date:** [March 30, 2007, 11:53am UTC](https://forum.mikrotik.com/t/ospf-out-filter-not-working/12082/14 "2007-03-30T11:53:51Z")

</div>

> [@meshnet](#):
>
> Hrm..  
> I do want to filter external routes… in-between areas.

ROS 2.9.x does not support inter-area filtering, and it looks like it is not planned in ROS 3.0 either. Just keep your OSPF clean and don’t redistribute stuff into OSPF that is not needed. This will keep things simple.
