Do you have any references?
Ask the guard at any military base entrance. Or call base police HQ.
At a former employer, not federal property, but property owned by a contractor, one was not allowed to have firearms, cameras, recorders, knives, illegal drugs, alcohol, personal computers, electronic notebooks, or cell phones on the property. This applied to parking lots too. Cars, bicycles, people, backpacks, dogs, etc. were subject to search. Similarly for those passing through.