To dream that you pass through a gate indicates that you are entering a new chapter in your life. It also signifies fresh possibilities and circumstances.
To dream about a closed gate represents your lack of ability to deal with and conquer troubles. If you cannot open the gate, then this suggests that your efforts will not be viewed with favor. It could also mean that you are not yet prepared to move to the next phase of either a project or life.