In the end we need a two-state solution with Israel and the Palestinians have self-determination and security. The faults of those involved are many, but the solution is known - it is a two-state solution, an end to armed attacks on Israeli civilians/homes and an end to the settlements.
Thomas Friedman has great takes on this regularly in his NYTimes column: https://www.nytimes.com/column/thomas-l-friedman