if you're redistributing routes either static or connected, you cant filter anything in or out. If you're using only intra-routes (connected routes), you could do filtering with "Network" by excluding the unwanted subnet (e.g. 10.x) from the networks included in OSPF.