Under forward bias, an ideal p-n junction diode will act as a perfect insulator.
Under the forward biased condition, the ideal diode acts as a perfect conductor with zero resistance whereas, under the reverse biased condition, it acts as a perfect insulator with infinite resistance. In other words, ideal diodes act as a closed circuit or short circuit under forward biased condition and act as an open circuit or open switch under reverse biased condition.