Boondocking, or dispersed camping, is not illegal in California as long as it is done on public lands managed by the Bureau of Land Management (BLM) or the United States Forest Service (USFS). However, it is essential to follow specific rules and regulations, including staying within designated areas, adhering to stay limits (usually 14 days), and practicing Leave No Trace principles. Keep in mind that boondocking is not allowed in all areas, and it's crucial to research the specific location before setting up camp.