Oman 's moderate , independent foreign policy has sought to maintain good relations with all Middle Eastern countries .