Where can this be done legally in the US?
https://vividmaps.com/non-private-land-in-united-states/
But you should check what you can do in it. It will be probably legal to park a vehicle there and very probably illegal to dig a moat around it (public means "of everyone", not just "free").