WASHINGTON — Prime Minister Benjamin Netanyahu of Israel told President Obama on Friday that he shared his vision for a peace between Israelis and Palestinians, and then promptly listed a series of nonnegotiable conditions that have kept the two sides at an impasse for years.

Sitting at Mr. Obama’s side in the Oval Office, leaning toward him and at times looking him directly in the eye, the Israeli leader bluntly rejected compromises of the sort Mr. Obama had outlined the day before in hopes of reviving a moribund peace process. Mr. Obama, who had sought to emphasize Israel’s concerns in his remarks moments earlier, stared back.

In his public remarks, delivered after a meeting that lasted more than two hours, Mr. Netanyahu warned against “a peace based on illusions,” seemingly leaving the prospect for new talks as remote as they have been since the last significant American push for peace collapsed last fall. Officials said that the meeting was productive, but that there were no plans for formal negotiations or any mechanisms in place to push the two sides forward.

Most significant among his public objections, Mr. Netanyahu said that Israel would not accept a return to the boundaries that existed before the war in 1967 gave it control of the West Bank and Gaza, calling them indefensible.