Before you connect to a VPN when you’re in Iran, be sure to turn on all the protections you see.
For instance, you can utilize the OpenVPN protocol as long as it is accessible. You should also turn on obfuscation options, auto kill switch protection, and other features that can hide your identity and activities.
Nevertheless, by following these things, you will be able to maximize your privacy in Iran.