OSPF filter - need help

Hello

How to filter 10.10.10.0/24 on R3 towards R2 ?
ospf-filter.PNG
It doesn’t work

/routing filter
add action=accept chain=ospf-out prefix=10.10.30.0/24
add action=discard chain=ospf-out

On R2 filter ospf_in working, but I will not do.

Theoretical.
If you dont need this route at R2 you should filter it in inbound filter on R2 and this route has to be external.

That means that this route needs to be originated by an ABR (Area Border Router) or an ASBR (Autonomous System Border Router).