Iran and Oman have reached a potential agreement for managing ship traffic in the Strait of Hormuz that would exclude military vessels from traversing the vital waterway.

Tehran won’t allow military vessels to transit through the Strait of Hormuz under the agreement that the Islamic Republic is negotiating with Oman, Minister Kazem Gharibabadi, Iran’s deputy foreign minister, said on Tuesday.

It comes after top diplomats of the two countries met to discuss managing commercial shipping traffic in the vital waterway, which remained largely shut down nearly six months after the Iran war began.

Gharibabadi told state television late Tuesday that commercial shipping traffic into the Persian Gulf would pass through Iranian waters, while the outbound route would pass partly through Iranian waters and partly through Oman’s waters.

He said the routes would be temporary and that Iran and Oman must discuss a permanent maritime traffic plan within 30 to 60 days.