[Azure] - Update - Create Proxy Server on Azure to survive the internet blackout or the broken cable

Hi everyone

The AAG fiber cable is currently cut, the ISPs are throttling bandwidth, blah blah blah, all sorts of things.

On top of that, facebook is being blocked every which way, everywhere, on every kilometer, from the tiny alleys out to the highways, from the remotest regions all the way to the far islands.

In this guide I’ll show you how to create a Proxy server on Azure and route your traffic through that proxy.

WARNING: ONCE THE PROXY IS UP, DON’T RUN SPEED TESTS ON IT OR SHARE IT AROUND UNLESS YOU WANT YOUR AZURE CREDIT DRAINED

Testing your network speed to Azure

First, test your connection speed to the nearest azure virtual machine (Southeast Asia: Singapore) with speedtest

Only if it looks decent will this trick be worth anything

Creating an Ubuntu virtual machine

Go pick New > Compute > Virtual Machine > From Gallery

Pick Ubuntu 14.04 Long term support

Hit next to keep filling in the settings for the virtual machine you’re about to create

Note: pick Basic for the Tier and the lowest Size to save money, since this VM’s only job is to be your proxy

Whatever Username you type in, remember it

Tick Provide a password and type a password in so signing in later is easy

This screen differs depending on each person’s azure, but overall: pick the region closest to you, and create an endpoint with a public port and a private port greater than 1024

For ports below 1024 you have to type “sudo” in front of the command that starts the related apps in linux

Once it’s created, go to quick glance — the public IP entry is your proxy’s IP

Configuring the Proxy

Signing in to the virtual machine

To sign in we can use Putty: http://www.putty.org/

Remember to set the port to 22 in Putty to sign in

Once signed in, type the following commands one by one

sudo apt-get install squid

cd /etc/squid

sudo cp squid.conf squid.conf.bak

sudo rm squid.conf

sudo touch squid.conf

sudo vim squid.conf

then type “a” > Enter to edit this file

type

http_access allow all

http_port [the port you created above]

dns_nameservers 208.67.222.222 208.67.220.220 8.8.8.8 8.8.4.4

then hit ESC to get back to the command line

type “:wq” to save and exit

Once that’s done, restart the squid service:

sudo service squid3 restart

After the restart you’ll see squid’s process

That’s it, your Proxy is running. Test it by opening firefox, setting the proxy and trying to connect to google