Clearly, the way to end the war, as opposed to merely rescheduling it with a ceasefire, is to remove the cause of the war, and the cause of the war is the Palestinians complete commitment to destroy Israel. The Palestinian cause is the destruction of Israel. There is no evidence they have any ambitions beyond that. This is not going to change, so the closest we can come to peace is to take away their ability to make war against Israel, and that is what Israel is in the process of doing.
In order to maintain this state of near-peace Israel must gain and maintain complete control over Gaza in order to prevent the Palestinians from rearming, but this is a very disagreeable prospect for everyone, so the emigration of the so called Palestinians from Gaza is the only path to long term peace.