The gate is the last element on that side of the base (right side from inside), next to it there is another fence in a 90 degree angle, the foundation posts of the fence are in front of those from the gate. In this setup it is not possible to close the gate from inside.
(there is no base building category yet)