Minister urges ceasefire but backs Israeli self-defence

The aftermath of an Israeli strike in Beirut.
Deputy Prime Minister Richard Marles has urged diplomacy to ease tensions in the Middle East. -EPA

Israel has the right to defend itself following missile attacks from Iran, the deputy prime minister says, but he is reiterating calls for a ceasefire in the region.

Tensions threaten to escalate in the Middle East after Iran fired a barrage of missiles at Israel in response to deadly Israeli attacks in Gaza and Lebanon and the assassination of leaders of Hezbollah.

Israel's Prime Minister Benjamin Netanyahu has vowed retaliation following the strikes, with Iran also promising further strikes if Israel hits back.

Richard Marles says a ceasefire is needed to stem the loss of civilian life. (Mick Tsikas/AAP PHOTOS)

Deputy Prime Minister Richard Marles said Israel had a right to protect itself after the missile attacks, but urged for calm.

"Israel has a right to defend itself. Every country has a right to defend itself and to do so in a proportionate way," he told ABC Radio on Thursday.

"But that said, we are calling for a ceasefire, along with the United States, along with other members of the international community."

Mr Marles said the situation in the Middle East remained "dynamic", urging Australians in Lebanon to leave as soon as possible.

"We need to see every effort being made to try and bring about an end to the hostilities in the Middle East because of the extraordinary loss of civilian life we've seen as a result of this," he said.

"We've been working with our partners, particularly the United Kingdom and Canada, and we have been assisting Australians to leave over the last few days."

A number of airlines have cancelled flights to cities in the region, to avoid affected air space.

The Department of Foreign Affairs wasn't aware of any Australians killed in Lebanon.

Pro-Palestine rally organisers vow to go ahead on the weekend despite court action. (Jeremy Piper/AAP PHOTOS)

The developments in the Middle East come as NSW Police are set to face off in court with the organisers of planned pro-Palestinian rallies.

About 70,000 people are expected to attend protests in Sydney's CBD this weekend, coinciding with the first anniversary of deadly Hamas attacks on Israel.

Police aren't satisfied the protests can go ahead safely and have applied to the NSW Supreme Court to block the protests from taking place.

Labor MP Peter Khalil, the federal government's special envoy for social cohesion, said people had the legal right to protest peacefully, but demonstrators should question the timing of the rally.

"The question is whether they should do that, particularly on October 7," he told ABC TV.

"It is not a ... legal question, setting aside the NSW permit laws and so on, it is a question about basic decency and whether it is appropriate to do that on that day."

Israel launched retaliatory strikes into Gaza in response to Hamas attacks on October 7 last year that killed around 1200 people, with about 250 people taken hostage.

About 42,000 Palestinians have been killed since Israel declared war on Hamas in response, and launched retaliatory strikes on Gaza.