Magnetic edge states of an impenetrable stripe