A lot of people have attributed Trump's war to an attempt to sidetrack from the Epstein files and I agree that that is part of the timing for starting the war. But I believe that there are other motives for Netanyahu and Trump.
Netanyahu has decided that there will be no Palestinian state. He wants to annex both Gaza and the West Bank. To do that he needs to eliminate Iran as a threat to Israel because Iran has been behind the terrorist activity in Israel for decades.
Trump's personal interest is his plan for a Trump resort in Gaza. He can't begin construction until Iran's terrorist threat is eliminated.
So Netanyahu and Trump joined together in a common interest regarding Iran. Trump's Board of Peace was created to get Middle East support for Trump's and Bibi's long term goal of crushing Iran's terrorist activities.
Making sure that Iran never has a nuke capability is also involved. But they were not as near such a development as Trump claims. That was handled well through negitiations under Obama, but of course Trump trashed it in his ignorance and penchant for thuggery and melodrama.
Netanyahu, Putin, and Trump all had ties with Epstein. Who knows? Maybe Trump wants his Gaza resort as a replacement for Epstein's island.
ETA: I believe that Trump and Netanyahu (maybe Putin, too) are attempting to create an international network of dictatorial oligarchs to rule the world through their wealth, power, and shared interests. It would operate like Epstein's circle of contacts, which was primarily a political wealth and power organization. The prostitution and pedophilia were entertainment bonuses for them.