A federal judge has sentenced a South Texas man to nearly eight years in prison for trafficking guns, bullets and protective gear to Mexico.