You need a transit visa: as Iran is not in this list of nationalities able to transit without a visa.
All visitors to Australia (except New Zealand passport holders) must obtain a visa, a transit visa or ETA before they enter Australia (including travel to Norfolk Islands).
(Source)
Having completed the form on the Australian visa website, you do need a visa:
(Source)
As shown in the image, this is free, allows you to stay for up to 72 hours and usually processed within 19 days. You can read more details and apply here.