In this work, the analysis of the behavior of an interior solution in the frame of Einstein’s general theory of relativity is reported. Given the possibility that, for greater densities than the nuclear density, the matter presents anisotropies in the pressures and that these are the orders of density present in the interior of the compact stars, the solution that is discussed considers that the interior region contains an anisotropic fluid, i.e. Pr≠PtPr≠Pt. The compactness value, where u=GMc2Ru=GMc2R, for which the solution is physically acceptable is u≤0.23577u≤0.23577 as such the graphic analysis of the model is developed for the case in which the mass M=(0.85±0.15)M⊙M=(0.85±0.15)M⊙ and the radius R=8.1±0.41kmR=8.1±0.41km which corresponds to the star Her X-1, with maximum compactness umax=0.1919umax=0.1919, although for other values of compactness u≤0.23577u≤0.23577 the behavior is similar. The functions of density and pressures are positive, finite and monotonically decreasing, also the solution is stable according to the cracking criteria and the range of values is consistent with what is expected for these type of stars.