I'm still thinking about all this. We don't consider "walled cities" to be a thing in the modern world. And yet our modern cities do have walls, more massive and forbidding than any medieval city wall. They're called highways, and they only let motor vehicles past them in most places.
But there are gates that will let you in if you know where to look for them
