how do i buy guns online?

Nothing set in stone, but if you’re trying to do it for profit, get an FFL before any felony charges can arise.

If you sell to a person who you are not 100% positive they can pass a background check, and they commit a crime, you can and in most cases will be considered an accessory.