Using EC2 as a Web Proxy
Software Voices.com has a post about how to use Amazon EC2 as a proxy sever for surfing the web, privately and securely. Its a very interesting post, and I have tried this out on my home machine for testing, and it works perfectly. basically, it creates an SSH tunnel between your machine and the EC2 instance. the EC2 instance has a copy of Squid installed, and a port on your machine is forwarded to the Squid port on EC2. once IE or FireFox is setup to use the proxy, all web traffic will get encrypted and sent over the wire securely. and same with what you download.
This is very cool. Could of things I have found out:
- because of the encryption and over head, your max download speed will be reduced slightly. Normally, on my 6mb connection, I can download at about 725-750kbps.with this, its down to about 650-675…
- sites in Europe may load slower, but US files may load faster. this is because EC2 servers are hosted in the States. Since my connection is homed in Europe, my requests are going a lot further.
- interestingly. sites like Pandora, which don’t work with my normal connection, do work with this. So, in theory, any site limited to US only connections should work.
That’s all well and good for web traffic, but what about the rest of your network traffic? Email, NNTP, etc. How do you get that to work? Well, I am thinking VPN…
Mind you, I cant seem to get it working correctly. and I cant find the info I need either… I found this tutorial on the bit-tech.net forums which talks about using pptpd, and this one over at techimo.com using OpenVPN, but both mention editing IP addresses for clients. since EC2 has dynamic IP addresses, and I don’t have spare ones, this is a bit of a problem.
</p>