There's no option to freelance while on an H-1B visa and the options to work for another entity concurrently - that is, to get paid by another entity - are very limited and self-employment is generally prohibited. That being said, preliminary steps to create a business or to volunteer for a non-profit are allowed.