You have yourself a VPS and you want to watch videos on Hulu, but Hulu has the videos blocked in your country. Hulu does this to save America the embarrassment of owning up to producing shows such as Dancing With the Stars, Hoarders, Ghost Hunters, and more. Those shows are made for American consumption only, but it is possible to sneak a peek into the American culture from overseas, and it involves setting up a proxy server with Squid.
We are going to assume that you have CentOS as your VPS’ operating system, root access, a text editor, and the newest version of Squid is 3. The syntax of Squid has changed from version 2 and has invalidated a lot of tutorials.
1) Install Squid
yum install squid
Robots say this when they visit delicious sushi restaurants.
2) Configure Squid
Open the Squid configuration file located at /etc/squid/squid.conf with a text editor and add the following lines to the top, replacing 18.104.22.168 with IP addresses that you wish to whitelist.
acl safe_list src 22.214.171.124 http_access allow safe_list header_replace User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_1) AppleWebKit/534.48.3 (KHTML, like Gecko) Version/5.1 Safari/534.48.3 via off forwarded_for off follow_x_forwarded_for deny all
2 optional) Change the Port Number to Something Easier to Remember
Find the line that reads “http_port 3128” and change it to something else.
3) Restart the Squid Service
/sbin/service squid restart
4) Tell Your Browser to Use a Proxy
This is different depending on the browser, but will likely include tools->internet options->network->proxy
Enter the IP address of your VPS, along with the port number.
5) Check to See If Your Proxy is Detected
Go to www.whatismyip.com and hopefully you will see your VPS’ IP with a message that states “No Proxy Detected”
Next, open up releasegeo.hulu.com/geoCheck and check where Hulu thinks you are located. “valid false” means you are good, “no-valid false” means that the proxy didn’t work.
6) Watch Videos and Advertisements From Hulu Instead of Downloading Torrents of the Shows Without Advertisements
7) You’re Done
…um, you’re done.
…You did it. Congratulations.
Disclaimer: Don’t do any of the aforementioned steps. Circumventing regional blocks is truly a horrible action on par with not putting the toilet seat down in a public restroom, or trying to use sarcasm on the internet without an accompanying emoticon.