The PKK guerrillas are based mainly in the mountains of southeastern Turkey and northern Iraq .