Valve effect of inhomogeneities on anisotropic wave propagation