Usually, your driveway gate should open towards your property.
However, that’s not a hard rule as every property has its unique challenges. Ultimately, driveway gates can open in both directions as long as it doesn’t disrupt traffic and it’s safe.