If there is proof of entry to Israel in your passport, you cannot enter Iran. This also applies if you have land border entry/exit stamps from countries neighboring Israel. Want to get around this? See if your country allows applications for a second passport for special circumstances.