OSPF problem. How to ?

I have 3 interfaces
WAN 192.168.1.1/24 OSPF area1
LAN 10.1.1.1/24
LAN1 172.16.1.1/24

redistribute connected yes, static yes

I want only redistribute LAN network 10.1.1.1/24, but 172.16.1.1 no. How to do that ?

You have to add routing filters to allow distribution of specific prefixes. For example distribute only 10.1.1.0/24

/routing filter
add chain=ospf-out prefix=10.1.1.0/24 prefix-length=24-32 invert-match=yes action=discard