Legal regulation of oil and gas transportation through main pipelines