A man who sold heroin and cocaine near the Loras College campus was sentenced to over two years in federal prison Thursday.