Australians can engage in armed service with other government forces without needing to worry about being charged. So Australians could fight with the Israeli Defence Force or in the Italian armed forces, for example, without needing to worry about legal action.

 


So presumably fighting for Hamas would be OK, since Hamas is the elected Government of Gaza.