A view into the network shutdown in Iran, June 2025


David Fifield <david@bamsoftware.com>

https://www.bamsoftware.com/talks/crysp-2025-iran/

Two IP addresses
that remained accessible:
140.82.121.6 api.github.com
216.239.38.120 google.com
Internet Connectivity for Iran (Islamic Republic Of)
https://ioda.inetintel.cc.gatech.edu/country/IR?from=1750132839&until=1750896039

https://github.com/net4people/bbs

GitHub and Microsoft are willing collaborators in dictatorship.

Look for alternatives to GitHub.

https://www.theverge.com/2025/1/9/24340039/google-microsoft-trump-inauguration-donation
A screenshot of a GitHub issue. net4people/bbs. Internet is completely blocked in Iran (2025-06-17 to 2025-06-26) #484
https://github.com/net4people/bbs/issues/484

During the shutdown, people in Iran unexpectedly found themselves able to comment on the discussion thread using the GitHub app.

I'm in iran and just got access to outside network using github app on android.

Idk how is this working but i need to replicate it on real vpn connection
#issuecomment-2985672840
We have Internet black out in Iran right now. No news from outside. Just somehow Github app works. Any one has any solution to Circumvent this blockage? I'm using RighTel right now.
#issuecomment-2986195907

The reason was that the GitHub app uses the GitHub REST API (api.github.com at 140.82.121.6).

Turns out api.github.com's ip (140.82.121.6) is open for connections

We got public whitelisted ip in iran before GTA 6
#issuecomment-2987484989

Partway into the shutdown, Google search (google.com at 216.239.38.120) suddenly became accessible. (See IODA graph.)

@wkrp only
#issuecomment-2988483200

No other Google services: no maps, drive, youtube, etc.

Let's try domain fronting:


> How about:
> curl --ssl-revoke-best-effort -H "Host: www.youtube.com" https://google.com

NO
SHOT

mg/logos/favicon_144x144.png" sizes="144x144"title>YouTube</title><link rel="alternate" media="handheld

WHAT TF IS HAPPENING?
is it because google.com and youtube.com have the same ip?
#issuecomment-2988927420

But actually, domain fronting was not required.
(Only an IP filter, no SNI filter.)

Pointing Google domains to 216.239.38.120 in /etc/hosts would make them accessible.

Downloading files from Google Drive through the single accessible IP address:

curl --connect-to ::216.239.38.120 --ssl-revoke-best-effort \
  -L -o champa-client-darwin-amd64 \
  "https://drive.usercontent.google.com/download?
  id=1ROCBSIsnat8uDQSlOFajuW2XAbeqNNZh&export=download&confirm=t"
https://github.com/net4people/bbs/issues/485#issuecomment-2992413851

There was limited success with an AMP cache tunnel (repo.or.cz/champa.git).

Champa is a censorship circumvention proxy that tunnels through an AMP cache. Because the IP address of google.com is currently reachable, you can use that IP address to reach an AMP cache, and then from the AMP cache reach any other service.

Because of rate limits at the AMP cache, the Champa tunnel is slow, no more than 15 KB/s. It may only work for about 15 minutes at a time before rate limits take effect, and then you will need to wait several hours for it to work again. It will only work on a desktop computer where you can run custom software.
https://github.com/net4people/bbs/issues/485
With this I was able to connect to telegram for a few minutes before getting rate limited
We can use this to get small files that normally we couldn't
#issuecomment-2994072267

(AMP cache rendezvous in Snowflake.)

Possible future work: tunnel/rendezvous through GitHub actions? (#issuecomment-2993311379)

The shutdown's effect on Snowflake users:

Top 5 countries with the most Snowflake users by day
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/issues/40465#note_3220753

After the shutdown (ntc.party/t/17068/2):

The June 2025 shutdown was qualitatively different than past shutdowns in Iran. More information: Project Ainita presentation at IETF 123:

November 16–23, 2019
September 19–27, 2022
  • Intermittent and localized shutdowns during the Mahsa Amini protests, primarily affecting mobile ISPs
  • Reduction in BGP
  • OONI report
  • BBS thread
  • Wikipedia

The big difference in June 2025: less reliance on BGP-based blocking (routing); instead using selective middleboxes.

Summary

Some channels of network access remained open, even during a "shutdown".

Different events called "shutdowns" work differently, even in the same country at different times.

Some forms of fairly traditional censorship circumvention worked in this case, though it is not known whether they would have continued to. (The situation did not persist long enough to reach an equilibrium.)