ALBANY – A Luger-toting prison guard who once sparked controversy by flying a Nazi flag at his house – in a case that went to the state’s top court – was arrested yesterday for allegedly receiving oral sex from a male inmate.

Edward Kuhnel was suspended without pay from his position at the Eastern Correctional Facility in Ulster County and forced to give up his weapons.

Kuhnel is accused of having received consensual oral sex from an inmate twice in May, and for attempting consensual anal sex with the prisoner.

Kuhnel made headlines in 1996 after he was suspended by state prison officials for flying a Nazi flag on the porch of his house.

But the state Court of Appeals unanimously upheld an arbitrator’s decision that Kuhnel’s actions did not violate state law, and he was reinstated.

Kuhnel, 44, pleaded not guilty yesterday in Warwarsing Town Court to two felony counts of third-degree sodomy and one count each of attempted sodomy and official misconduct.