- Navigate to the EC2 console by following https://console.aws.amazon.com/ec2 You will need to logon your AWS account. If you have not got account create one. It’s free!
- Once you’ve logged Create a Key Pair by selecting
Key Pairs
which is near the bottom of the menu on the left. 2.1. SelectCreate a Key pair
, 2.2 enter a name and save the file onto your local file system. 2.3 Change the permission to make it read only (chmod 400 <filename>
) - Create a new Elastic IP Address
- Launch a new Instance.
- Launch the Instance using the Key Pair generated earlier.
- Wait a few minutes for the instance to go live.
- Associate your instance to the previously create Elastic IP Address
- Press the
Connect
button and follow the instructions to connect. If you have previously connected using the same Elastic IP address you will need to remove the entry in the .ssh/known_hosts file. (If you’re not connecting to anything else using SSH you can just remove the known_hosts file as this will be regenerated). - Once connected, you will need to install Squid (
yum install squid
) Once installed edit the
/etc/squid/squid.conf
to allow access from all machines. The configuration I am suggesting should be changed but I am using it initially to get things working. The conf file can be edited with:#http_access allow manager localhost http_access allow all
Start Proxy with: /etc/init.d/squid start
Source: https://pumpkineater.org/creating-a-proxy-using-amazon-ec2/