399 points · by Sara70 · 14y ago · 146 comments
http://kabirnews.com/iran-shut-down-gmail-google-yahoo-and-sites-using-https-protocol/202/
The reason for this horrible shutdown is that the Iranian regime celebrates 1979 Islamic revolution tomorrow.
I just wanted to let you guys know about this. If you have any solution regarding bypassing this restriction please help!
Download proxytunnel and follow this guide to set up Apache (or whatever server you prefer) to http proxy ssh connections to port 22: http://dag.wieers.com/howto/ssh-http-tunneling/
Then run ssh with proxytunnel as the ProxyCommand (as shown in the guide). It will make a plaintext HTTP connection, request a CONNECT yoursite.com:22, and if they aren't inspecting "too deep" you should be able to get an ssh connection.
If that doesn't work there's always icmp tunneling (hans), dns tunneling (iodine), and various other options. See if you can make a udp connection over port 53 to a remote host and transmit non-DNS packets; if they aren't intercepting DNS traffic, just make an openvpn udp connection over port 53 for your tunnel.
I actually have a whole paper on circumventing captive portals and firewalls and a crappy tool to probe them if anyone wants it.
I'll have to find the paper and clean it up a bit, but e-mail me and i'll send it when I find it and i'll post it on here. It's not amazing or anything, mostly just a talk with references to tools and articles and common flaws in captive portals.
The fact about the shut down is correct. I would also add that secure connection to servers inside Iran is possible. I've tried some, and they work. But trying to connect to services like Github and PivotalTracker, which we relay on in our starup, results in no response.
Also I will note that the ssh protocol is the same. I can ssh into my university machine (inside Iran) but I can't access my rackspace VPS with ssh for example.
One thing to add is that `Sara70` creator of this thread, mentions some non-related reason for this (The reason for this horrible shutdown is that the Iranian regime celebrates 1979 Islamic revolution tomorrow.) which is wrong.
Here nobody officially said anything about this. But as this shutdown is getting more attention in the media, I suspect this issue to get resolved soon.
How do you know this?
I know this because, this trend (shutting down secure network protocols) started on and off, like 1 year ago.
The problem is, with the people (in the court or the gov.) who don't understand how the Internet works.
Internet is pretty slow (I use a 3G which runs on around 1Mb/sec and costs around $20/month), the infrastructure is poor, the people are either struggling or confused how all these structural problems could get solved.
Not a great place to be in, honestly. If you are in Europe and looking for some Sun, then may be it's a deal for you considering the cost.
If you happen to make a travel, I added my phone number. I'm moving to the capital this summer, and if I happened to purchase a car, I'll take you in a free drive around the capital and Hammamet.
The one main memory I have is leaving my iPhone, with my hotel room key-card inside the case, in a Taxi.
The driver searched for me for 30 minutes to return it. Great people, and I love the barter culture.
https://blog.torproject.org/blog/iran-partially-blocks-encry...
Regarding HTTPS, it appears they detect and disrupt the SSL handshake.
For those who can't access TOR's site, it may be useful to quote their post in full:
“Over the past two days we've been hearing from, and working with, a number of Iranians having difficulty using Tor from inside Iran. It seems the Iranian government has ramped up censorship in three ways: deep packet inspection (dpi) of SSL traffic, selective blocking of IP Address and TCP port combinations, and some keyword filtering. For instance, they have partially blocked access to Tor's website, torproject.org, via IP address (such as 86.59.30.36) and port 443 (which is the HTTPS port). The third level of blocking is by keywords, such as searching for the word 'tor' via regular, non-encrypted search engine websites.
The blocks on SSL are not complete and not nationwide. Where blocking is in place, initial investigations show they are identifying the beginning of the SSL handshake and simply interrupting the handshake. We continue to research and investigate solutions with the assumption that SSL will eventually be blocked nationwide inside Iran. Our goal is to defeat their dpi signatures and allow tor to work by default.
The Iran Media Program has posted their thoughts on what is happening from a journalist's perspective.
So far, it seems the majority of Tor users are not affected by these blocks. Iran is still the #2 country based on direct usage, https://metrics.torproject.org/users.html?graph=direct-users.... This number is on the decline, however.
More details to follow as we have them.”
“these directions” links to an email from Jacob Appelbaum:
https://lists.torproject.org/pipermail/tor-talk/2012-Februar...
“ [tor-talk] Help users in Iran reach the internet
Fri Feb 10 11:41:50 UTC 2012
Hi,
In the last 48 hours a major campaign of filtering has started in Iran - it started slow and now appears to be that nearly all SSL/TLS traffic is blocked on a few major Iranian ISPs. Details are rather rough but we're working on some solutions - we've long had an ace up our sleeves for this exact moment in the arms race but it's perhaps come while the User Interface edges are a bit rough still.
Here's the deal - we need people to run Tor bridges but a special kind of Tor bridge, one that does a kind of traffic camouflaging - we call it an obfuscated bridge. It's not easy to set up just yet because we were not ready to deploy this for everyone yet; it lacks a lot of analysis and it might even only last for a few days at the rate the arms race is progressing, if you could call it progress.
There are highly technical instructions here: https://www.torproject.org/projects/obfsproxy-instructions.h...
Currently if you run such a bridge, you'll either need to manually tell us (via email to tor-assistants at torproject.org ) about it or you'll need to share these bridges with people you want to help directly. It's a pain and we're working on it.
Here's a bug report where we're working around the clock to get stuff going in a user friendly manner: https://trac.torproject.org/projects/tor/ticket/5009#comment...
This kind of help is not for the technically faint of heart but it's absolutely needed for people in Iran, right now. It's likely that more than ~50,000 - ~60,000 Tor users may drop offline.
Watch this graph for an idea of the censorship impact of directly connecting Tor users: https://metrics.torproject.org/users.html?graph=direct-users...
Here's the same graph but for Tor bridge users in Iran: https://metrics.torproject.org/users.html?graph=bridge-users...
We're working on easy to use client software and if you're in Iran or need one desperately, please email help at rt.torproject.org. We'll try to get you a working obfsproxy bridge address and working client software.
All the best, Jacob ”
1: https://twitter.com/#!/ioerror/status/167922546807812096 2: https://www.torproject.org/projects/obfsproxy-instructions.h...
Currently if you run such a bridge, you'll either need to manually tell us (via email to tor-assistants at torproject.org ) about it or you'll need to share these bridges with people you want to help directly. It's a pain and we're working on it.
The Internet is easy to kill, as are digital cell-based radio networks. Proper amateur radio is not.
Jamming is not that effective over a large area before anyone suggests that.
I lived through the communist era in Poland. Amateur radio stations were banned and prosecuted (you would go to jail), even possession of a CB radio was a crime. Things may be similar in Iran.
As usual, if you don't take precautions, that will happen.
Pirate radio stations were and still are common in the UK, particularly around London. They move around regularly and broadcast for short periods so it's hard to trace or predict a location.
The same conditions apply here.
Forcing countries like China, Iran and US to go into dark ages if they don't use the new all encrypted networks.
It's a shame that we are so paranoid as a species that we need to do that, but I don't see any other way.
I know this is extreme, but I don't want to see the freedom I enjoy right now taken away by these obsolete power hungry entities.
The problem is some governments would be perfectly happy with that. In fact for the most repressive ones it's long term goal.
China wants to create a separate internet for Chinese users and they're half way there. They have their own local censored versions of Google, Twitter and Facebook. Soon most internet users in China won't care if the rest of the internet disappears. Likewise for Iran, except they have been more open about it [1].
[1] http://online.wsj.com/article/SB1000142405274870488940457627...
Absolutely but the effect will be not be huge in my opinion because of the language differences. All my Chinese friends here in the EU still use mainly Chinese language website, most of which are based in China, especially the social networking ones.
We can do secure comms over HTTP - all it takes is a binary protocol like TLV, encrypting that, and implementing a well thought through approach to key management. Ideally something derived from the Needham-Schroeder protocol, but if we take on some lessons from PGP and the like, using timestamps instead of nonces.
The Internet is just a piece of wire - what travels across it is up to us. This goes back to the idea of building platforms rather than applications.
Maybe my ramblings here are a bit too much up in the clouds, but I think I'm going to build something that does secure comms over HTTP...
[1] Iran notwithstanding, the recent TrustWave snooping story shows that SSL is even losing its usefulness inside organisations! If you're interested, the story is here:
http://www.theregister.co.uk/2012/02/09/tustwave_disavows_mi...
Not being familiar with specific DPI implementations I would imagine if such filtering was white list -based then anything unrecognisable would be blocked?
In short, if any website goes against their stupid and yes effed up ideals they will ban it. The ISP's can't do anything because they're forced to comply.
Forget ACTA or SOPA, these idiots just do whatever they wish.
I wrote a simple script to do this, and I would like to share it with all of my countrymen:
https://launchpad.net/~mohammad-sepent/+archive/ppa/+package...
To use it, just replace ssh command with issh like this:
issh user@hostname [other-ssh-options]
[1] https://launchpad.net/~mohammad-sepent/+archive/ppa/+files/i...
Edit: Non SSL link: http://ppa.launchpad.net/mohammad-sepent/ppa/ubuntu/pool/mai...
sudo add-apt-repository ppa:mohammad-sepent/ppa
sudo apt-get update
sudo apt-get install issh
For other distros you can grab the .deb or the source package from the given link.
It looks like Iranian government uses a transparent proxy, so all connections to ems01.your-freedom.de (ems01 through ems24) first redirect to iran.ir and then go to YF's servers!
(YF is blocked right now, so I can't re-do this test right now. These images are from my email to YF 10 months ago)
http://www.imeezo.com/v/images/49229825994939115647.png
http://www.imeezo.com/v/images/46490363986030440278.png
A page accessed without a VPN/proxy: http://www.imeezo.com/v/images/98155525346546936123.png
The same page, but with a VPN: http://www.imeezo.com/v/images/30239946359511647325.png
In the third image, the response is from iran.ir's transparent proxy, not YF servers...
[1] your-freedom.de
http://en.wikipedia.org/wiki/Steganography_tools#Cryptograph...
I am wondering whether this approach is better than the one someone else suggested - connecting to a streaming server (like OnLive) - I guess streaming server could be made more undetectable, but more expensive to run
https://github.com/stealth/sshttp
You do need a server on the 'outside' though. (oh bugger, github uses https)
The instruction manual is at: http://web.atomcloud.com/apps/metrobuddy-secure-sms
the app needs no licensing, so can be passed from phone to phone via SD card. Good Luck!
The only solution is in space, or a mesh net run by citizens, http://www.reddit.com/r/darknetplan/
What about ssh tunneling over an alternate port?
Gosh I cannot believe governments that do this to their people.
I wonder if they are ironically using American engineered equipment and software to do the block too.
What exactly would be the irony of it? Iran doesn't forbid buying US products and services, it's the other way around.
If they are blocking https traffic, they are almost certainly intercepting and scanning http traffic (lots of countries do this, e.g. lots of UK ISPs did this to censor wikipedia).
So, even if you were to be able to access gmail over http, you probably don't want to. :)
But thanks for the offer.
tl;dr: Iran gov't is the actor, not ISPs; filtering most but not all SSL in a couple different ways; specific targeting of privacy tools & Google.
See here (will be updating it soon w/ more): https://plus.google.com/u/0/103112149634414554669/posts/PT3e...
In other words, if we know that they are cutting off the handshake at the ServerKeyExchange phase, for example, couldn't we generate large amount fake SSL traffic that stops one step before that, cause the router to hang?
I assume that this level of internet censorship will go away because it is playing into the hands of Western imperial propagandists who are working hard to "justify" or motivate the next major invasion.
[1] http://en.wikipedia.org/wiki/Covert_channel [2] http://code.kryo.se/iodine/
They also shape the bandwidth of encrypted connections. My guess is that they use something like L7 to guess the type-of-connection using different patterns.
What unencrypted protocols are allowed / common?
To download Hotspot Shield, TOR or Ultrasurft
Visit http://www.unblocker.co.nr or http://www.proxysoftwares.co.nr
If yes, you could setup a tunnel on port 80 and then run openvpn through it.
I did this for a friend in China and it worked.
Of course it would also have to be implemented on the server-side but that's another problem.
Just let you know that I used that when I'm in "not-really-freedom-friendly-country" =)
http://nihilex.com/obfuscated-openssh
Slow but works =)
If you don't live within their control, they don't want you to see the propaganda they put out on their "British Broadcasting Corporation" (BBC) television stations and web site. Needless to say, there are ways around their entirely pointless technical restrictions.
(Note_To_Self: As somewhat dyslectic person, I'll never forgive patio11 for nick-naming his product "BCC").
I would like to say that by-passing government sanctioned Internet restrictions is simple and easy, but it's not true. Doing it safely can be impossible at times, and considering the rather severe punishments for getting caught (i.e. death), it may not be the smartest choice you could make. If you want to take your chances, there are often technically possible ways to by-pass the restrictions. It's not easy, and it may not be entirely safe, but usually, it is technically possible.
There are free solutions out there like Tor ("The Onion Router" https://www.torproject.org/), but they mostly suck. If you don't believe me, then just try using them. The other problem with the free solutions is a lot of government filtering knows about them and adjusts accordingly (when possible). There is also a lot of monitoring an profiling done on the traffic on the free solutions like Tor since the traffic is interesting.
If you need a solution that sucks less, you'll need to pay for it. As much as many would like to believe otherwise, bandwidth and servers are not free, so when a service is unable to support itself through advertising, then you'll need to pay for it. The commercial VPN vendors are more reliable and have far better security, privacy and performance than the free alternatives.
I've been a paying customer of https://www.tunnelr.com for over a year, and really enjoy their service. I'm on friendly terms through email with the two founders, Daniel and Jared, so I'm probably guilty of some sock puppetry or fanboyism. They also run the "devio.us" free shell provider service which is very impressive.
The thing to realize is the people responsible for controlling the network you are on and enforcing the restrictions probably have a way out of their own. It could be that their "day job" gives them access to the "other" side of their censorship filters, or possibly they've left a few holes here and there that they can use to by-pass their own filtering system. If the latter, it's probably done with a VPN of some sort.
In the case of a good commercial service like tunnelr.com, you don't need to worry too much about figuring out where things were left open.
Typically, if UDP traffic is found going to port 53, most people expect it to be DNS lookups from client systems. Again typically, if TCP traffic is going to port 53, most people expect it to be DNS lookups done by DNS servers. Of course, if you see TCP traffic going to port 80, you'd expect it to be going to a web server...
The common expectations are not "wrong" in most situations, but these expectations can be wrong if things are configured differently.
In the case of good VPN services, things are configured differently!
For example, I can use TCP and connect to port 80 but establish a SSH connection, or use UDP and connect to port 53 but establish an OpenVPN connection.
This kind of trickery will not fool filters with the capacity to do "Deep Packet Inspection" ("DPI" e.g. protocol profiling), but the vast majority of filtering tech out there can't do deep packet inspection all of the time. It requires too much computation to be effective on fully saturated links, so it slows things down terribly. There are a few products out there that can do DPI at "wire-line" speeds, but they are hellishly expensive and fairly difficult to manage properly.
BTW, if you go the SSH route, check out dsocks by Dug Song. It runs on most UNIX systems, on MacOS, and on MS-Windows through cygwin.
EDIT: I totally forgot about countless the payment options you have available in Iran (i.e. none). If that's an issue for you, contact me privately (email address is in my HN profile).
You mean you don't pay for the TV license since you're not in the UK and you complain that you can't watch their tv? Shocking...
I really don't understand your approach to this - propaganda? restrictions of a regime? very oppressive? There are some things I disagree with in the UK, but you're trying to watch a TV channel they want to get paid for. It's that simple - there's no point in dragging politics into this one. I'm definitely against silly country filtering using geoip on services that don't allow other means of access, but in the context of what's happening in other countries, let's not call it "oppressive", please.
I'm not trying to be an ass by asking; I'm actually curious, but testing it myself (American) is not particularly smart.
Anyhow, if DPI is in place and at wire-speed (rare, but would cover everything), then the answer is obvious; ssh over http. It can be done with gothard [1] and corkscrew [2].
[1] http://www.nazgul.ch/dev.html [2] http://www.agroman.net/corkscrew/
- https://blog.torproject.org/blog/iran-blocks-tor-tor-release... Iran detects ssl parameters and block suspicious connections (they based it on the expiry time of the session certificates)
- http://www.telegraph.co.uk/news/worldnews/middleeast/iran/83...
- http://www.christopher-parsons.com/blog/technology/is-iran-n...
Btw. it is not only Iran running country wide DPI - have a look at http://www.youtube.com/watch?v=DX46Qv_b7F4 about the different techniques currently used to block/prevent access to VPNs/Tor etc.
(edit: added some additional links)
http://www.slideshare.net/bleidl/net-neutrality-and-internet...
True, but wouldn't you expect a repressive regime to be able to afford such equipment? The original post talks about Iran, which probably places more emphasis on blocking traffic than the UK.