The US State department provided specific authorization empowering telecom companies (incl. Starlink) to operate in Iran and disregard local restrictions. If you can smuggle a dish into the country, you can use it. But the signal wouldn’t be too hard to detect, so it’s risky.