During my short timein the service, I seem to remember signage about entering militarybases. By doing so, you automatically give consent to the CO ofthe installation to inspect any vehicle entering his base.You surrendered your rights when you passed the fence.
Someone want to try to get a photo of one of those signs near a gate? It may be difficult to do because you may incur the wrath of security forces in the area. They don't like you taking photos on or near military bases, either. They post signs about that, too.
I'm trying to find photos of some of these signs. I may be able to take a photo of one tomorrow.