VPN Security, Protocols & Post-Quantum

Step by step

How to check a VPN for leaks in Iran

To test a VPN in Iran, you need to compare the public IP, DNS, IPv6 and WebRTC with and without the connection. You will need a VPN client and a browser: changing the IP alone is not enough. The rules for using a VPN in Iran should be checked in advance.

From VPN Security, Protocols & Post-Quantum — Last reviewed

1. Record the client and the connection profile

Below are sample configurations for testing, without any assessment of how they perform in Iran.

Test scenarioProtocol or transportWho has it
Manual configurationOpenVPNCitadelVPN, configurations in MAX
Connection via a VLESS profileVLESS xhttp/gRPCCitadelVPN

A protocol on its own does not confirm the absence of leaks.

2. Compare four results without the VPN and with the VPN

  1. Without the VPN, run the Comparitech test and record separately the public IP, the DNS servers and the IPv6 result, including the addresses and locations shown.
  2. Without the VPN, open the BrowserLeaks WebRTC check and save the addresses shown.
  3. Connect the VPN with the chosen profile.
  4. In the same browser, repeat both checks, recording the public IP, DNS, IPv6 and WebRTC again.
  5. Match each group of results against the original one separately.

During the initial check without the VPN, the test site receives the usual public address of the connection. If the tool is unavailable, this stage remains unverified; an inaccessible page says nothing about leaks. The meaning of a DNS leak is analysed separately.

The catch: iCloud Private Relay in Safari can change the visible IP and the DNS path independently of the VPN. Its state must be recorded together with the results.

What this check confirms

The result applies to the tested browser, configuration and moment of the test. It does not describe the routing of a torrent client or other applications.

3. Examine the IPv6 warning

The RFC document on VPN traffic leaks describes the possibility of leaks when VPN software does not take IPv6 into account. The warning itself does not prove a leak: you need to compare the behaviour against the client's documentation. CitadelVPN's DNS protection can be complemented by separate WebRTC checks.

4. Establish the cause if it does not work

If the original public IP is visible, you should check the possible causes one by one:

  • The client is not connected: check the connection status.
  • The page is showing a previous result: reload it after connecting.
  • The browser is excluded from the tunnel or uses a manual proxy: compare the settings with the client's documentation.

Then reconnect, choose another server if necessary and repeat the four checks. If the original address persists, sensitive traffic should be postponed until the routing has been clarified.

5. Test the protection on disconnection separately

A stable connection does not test the kill switch. For Windows there is a separate guide. Windscribe recommends regular checks, without a universal schedule.

Frequently asked questions

Does a clean test prove that VPN use goes unnoticed?

No. It checks the addresses that are disclosed, not whether the network recognises the VPN.

Does a successful check mean the VPN works across all networks in Iran?

No. The conclusion is limited to the tested connection and configuration; it cannot be carried over to other networks.

Further sources

  1. Comparitech test, comparitech.com
  2. BrowserLeaks WebRTC check, browserleaks.com
  3. The RFC document on VPN traffic leaks, rfc-editor.org
  4. regular checks, vnm.windscribe.net

Read next