I was really just responding to your characterization of the ceasefire agreement, but maybe I misunderstood what you meant.
As for the curfew the only real authority Israel has to issue a curfew is that they have a military presence in the area. There's no real legal basis and the civilians don't have an obligation to follow it, but I don't think it's that unreasonable while the military is withdrawing from the area.