In this paper we theoretically investigate phenomenon experimentally observed in [2]: reflection of a relativistic electron beam of finite length and small radius from vacuum-plasma boundary. We suppose that self-focusing of electron beam has been finished. The electron beam reflection on electron time scale is also considered. So plasma ions are fixed in space, but plasma electrons are accelerated in transversal direction. Thus a positive charge appears around the beam. The longitudinal shape of the electric potential is formed by electron beam and positive charge at separation of the beam back front from the plasma boundary. It was shown that this electric potential profile can be cause of reflection of an electron beam part from the plasma boundary. Dependence of the electric potential profile from a beam penetration depth and ratio of the plasma and beam parameters are obtained.