Post date: Feb 18, 2018 12:27:37 AM
AWS EC2 instances can be used as proxy servers. To start a proxy server:
From the AWS EC2 Dashboard, select AMIs
From the TinyProxy AMI, right click and choose Launch
Select the General Purpose t2.micro instance
Configuration instance details:
Network: choose a VPC (PlayGround2 recommended)
Subnet: choose any subnet
Auto-assign Public IP: choose 'Enable'
choose Review and Launch
Review Instance Launch
Edit Security Groups, and choose the Launch Wizard 11 security group
Edit Tags, and add a tag: Description = Proxy (just to make it easy to find from the EC2 search bar)
Choose Launch
From the EC2 Security Groups panel:
Find the launch-wizard-11 group
From the Inbound tab, Edit the rules
Add a "Custom TCP Rule", port 8888, source the IP address of the machine that needs to use the proxy server
Save
From the EC2 Instances panel:
Search for 'proxy'
For any new instances, click on the instance, and see it's Public IP address
Use this public IP address as a proxy server from Windows, HttpWebRequest, or any code that enables a custom proxy.
Configuration of the TinyProxy image was based on the following references.
Overview: how to set up a free proxy server on AWS
Windows to Ubuntu EC2 connection:
need to download Putty
remember VI commands, or use: sudo nano {filename}
Issues:
cannot resolve ip-10-X-Y-Z: add it to the etc/hosts file
cannot locate package tinyproxy: apt-get is out of date: sudo apt-get update
then run" sudo apt-get install tinyproxy