Due to spam comments are moderated and will only appear after approval.

Monday, 25 July 2011

Using Tor to View Restricted Video Sites Internationally

How many times have you been stuck in another country unable to watch your favorite shows and channels? Or perhaps you don't reside there and want to watch them anyway, expat or other? Hulu, Spotify and BBC iPlayer all check IP addresses to ensure you are connecting from the country they are serving, in the BBC's case because they don't want you to get a free ride without a TV license which they are assuming nobody in a foreign country would have paid for.

There are several solutions to this, which revolve around a VPN service or getting a proxy server in the country you're trying to reach (either connecting via a friend's machine located in that country or using a commercial service you can rent for a monthly fee).

The Tor network provides just that, but for free. It was set up as a means of providing anonymity and

"defend against a form of network surveillance that threatens personal freedom and privacy, confidential business activities and relationships, and state security known as traffic analysis",

however, besides the usual traffic we can also use it to route our streaming movies through it, same as somebody in Syria may use it to upload content to Youtube. If you're not familiar with the Tor project I urge you to read the documentation on the website and several other places that explain how and why. First you'll have to install Tor, a proxy server (usually Privoxy) and for nice graphical management Vidalia, a management console that requires QT. Most distributions have this available in one of their repositories, or just download the Tor Browser Bundle which is a self-contained Firefox all set up and use it on a Flash drive. A good guide to installation is here on http://www.ubuntugeek.com/howto-install-torprivoxy-and-tor-gui-programs-vidaliatork-and-torbuttonin-ubuntu.html, but there are many around.

Now we come to the meat, because by default to guarantee anonymity traffic bounces randomly around the Tor nodes (proxies), so there's no telling where you will SEEM to be located next. But we want to watch streaming videos in the UK or the US, so we got some configuring to do. The rest of this document is mainly thanks to this blog post by Cherie Hurwitz, credit where credit is due, and you may want to read that one too including the comments section.

1.) To watch BBC ensure that the last server your request is routed through is a server in the UK. Go to https://torstatus.all.de/. Scroll to the bottom of the page, and click “Show Custom/Advanced Query Options”. Under “Require Flags” choose “Yes” for “Exit” and under “Advanced Search” choose “Country Code” “equals” “GB”. Adjust this for any other country if for any reason you only want to exit through nodes in that country. Click “Apply Options”. Take note of all or some of the Router Names of the resulting servers except those marked Unnamed. These are your exit nodes in the UK. It's best to write down several and use the ones offering higher bandwidth first. Be sure to have at least three or four as this is a network run by volunteers and servers come and go. If that one is down use https://torstatus.blutmagie.de/ or http://tns.hermetix.org. These seem to be the only ones where status reports are currently working.

2.) Open and edit your torrc Tor configuration file. Scroll all the way to the bottom and enter the following lines:
StrictExitNodes 1
ExitNodes ...
i.e.
ExitNodes hammertime,Alice,anonion,Berkey,bob,buxton,bws,dotORG1,dotORG2,gigatux,toroftheworld1
If a line starting with “ExitNodes” already exists, then overwrite the line with your new exit nodes.

3.) Make sure you have the latest version of Adobe Flash installed...doh.

4.) Run Vidalia which should connect you to the Tor network. Your proxy server has to be running for this to work.

5.) Launch your browser of choice and configure it to use your local proxy server that you just installed earlier on, normally '127.0.0.1' using port '8118'. Under Firefox you would enter this under Network-->Advanced--> Settings. Enter this also for SSL Proxy and SOCKS Host, and make sure you have an entry for No Proxy for: '127.0.0.1'.

6.) If you cannot connect and get an error that your proxy server is refusing connections most likely your proxy server isn't running.

7.) Tor comes with a button that allows you to toggle the server on and off. However I prefer the quickProxy extension. The original author used FoxyProxy in her example and designed some elaborate rules designed for the local proxy to kick in automatically only when specific web sites were visited. I prefer the simple method and just switch it on with a click when needed. Beware, there's another extension around called QuickProxy, not quite as simple and friendly in my view.

8.) You can go to one of the sites we used to get our exit nodes and confirm that you're anonymized using Tor and it's all working. You should see something like this:







9.) Obviously you're gonna use a lot of bandwidth from people that is going through several nodes, three to be exact, so it's going to be somewhat slower and loading may take longer. However after the initial wait it is usually working fine and streaming movies or news are smooth. Consider giving something back to the community and running your own relay if you can. And remember, Tor isn't just for frivolous stuff like watching movies undetected. A lot of people in countries where vocal dissent will get you tortured, whistleblowers and others concerned about their privacy depend on this for their instant messaging, browsing etc. Spammers are using this too though.

Unfortunately this method doesn't work with Hulu any more. They seem to maintain a list of known Tor exit nodes in the US and if you're coming from one of these IP addresses are blocked.
The BBC only does its IP check in the beginning, so you can disable the proxy again and do some surfing on the side, a bit speedier. However, when watching long movies (~2 hrs.) they occasionally implement another check. Enjoy -

2 comments:

  1. Tor is fine but i am using a most trusted VPN service provider from last 6 months. I use "Hotspot Shield" free VPN proxy and found it very reliable. Check it out here - http://www.free-vpn-proxy.com

    ReplyDelete
  2. The easy way to install Tor (works with ubuntu, mint, or any debian based distributions)

    For 32 bit systems:
    $ sudo add-apt-repository ppa:upubuntu-com/tor
    $ sudo apt-get update
    $ sudo apt-get install tor-browser

    For 64 bit systems:
    $ sudo add-apt-repository ppa:upubuntu-com/tor64
    $ sudo apt-get update
    $ sudo apt-get install tor-browser

    After the installation is finished, set the right ownership on the ~/.tor-browser:

    $ sudo chown -R $USER ~/.tor-browser

    http://namhuy.net/979/how-to-install-tor-browser-bundle-on-linux.html

    ReplyDelete

Please leave your comment here. Spam will be deleted.

Labels

12.04 LTS (1) 1280x1024 (2) 14.1 (1) absolute (3) accessibility (6) administration (1) afterstep (1) android (1) announcements (12) anonymity (3) anonymous (1) antiX (2) applications (1) arch (9) archbang (11) archone (1) authentication (1) bash (2) bittorrent (1) bodhi (1) books (1) browsers (5) browsing (1) bsd (2) bug (1) bugs (2) calculate (1) centos (1) certification (1) chakra (2) chatzilla (1) chromium (2) click (1) commodore 64 (1) crunchbang (5) crux (1) ctkarch (1) debian (18) desktop (54) digital certificates (1) distributions (71) documentaries (1) documentation (2) drivers (1) e17 (1) encryption (1) enlightenment (1) events (1) fake (1) fedora (6) firefox (3) flash (1) fluxbox (6) fluxflux (1) FPS (2) free software (2) frugalware (1) FSF (1) fusion (1) fvwm (1) fvwm-crystal (1) games (10) gaming (8) gentoo (2) gnome (8) gnome shell (4) gnu/linux (3) google-chrome (2) graphics (1) grml (1) hardcore punk (1) hardware (3) how-to (21) humor (1) icewm (3) interview (1) introduction (1) jibbed (1) jwm (1) kanotix (2) kde (17) kde3 (1) kernel (5) knoppix (1) kongoni (2) kubuntu (1) LAS (1) linux (17) linux light (11) live (40) live medium (12) live system (7) lxde (11) lxqt (1) mageia (1) mandriva (1) marine life (1) mate (1) media center (4) mepis (2) mint (2) mobile (2) movies (5) mozilla (3) music (1) netbook (2) networking (2) news (2) open source (1) openbox (13) openSUSE (2) opinion (12) other (5) overclockix (1) pclinuxos (2) perl (1) poll (2) porteus (3) privacy (3) privoxy (1) programming (1) proxy (2) puppy (3) qt (1) quick look (10) ratpoison (1) red hat (6) relax (1) release (1) reviews (48) rhythmbox (1) RPG (2) sabayon (5) salix (15) scientific (7) screenshots (2) scripts (3) security (1) semplice (1) server (3) shell (1) shooter (4) siduction (1) slackel (1) slackware (44) slackware-current (6) slax (7) slitaz (1) smart phones (2) sms (1) south africa (2) specialist (1) spoof (1) surfing (1) table mountain (1) themes (1) tinyme (1) tips (1) tor (2) traffic analysis (1) trinity (1) trisquel (1) ubuntu (4) unity (2) unity linux (3) unix (1) upgrade (5) vector (2) video (3) vinux (2) virtualbsd (1) visual impairment (5) wallpapers (3) window maker (4) window managers (1) wireless (10) xfce (13) youtube (1) zenwalk (3) zoo (1)