It appears that during the Tehran attacks, the air defense systems did not function at all. As for Natanz, the situation is unclear. There are unconfirmed reports suggesting that air defenses may have been activated sporadically.
https://x.com/SamiraGharaei/status/1933331290717061375