Skip to content

Instantly share code, notes, and snippets.

@enrialonso
Created October 10, 2021 19:59
Show Gist options
  • Save enrialonso/6713e0c2ac904c58d727cb7dcc80f20f to your computer and use it in GitHub Desktop.
Save enrialonso/6713e0c2ac904c58d727cb7dcc80f20f to your computer and use it in GitHub Desktop.
Proxy on AWS EC2 install on user data. Squid proxy.

Easy bash script for install Squid proxy on AWS EC2 instance, can put this script on the userdata and the instance run and install automaticaly the script.

#!/bin/bash
sudo apt update -y
sudo apt install tinyproxy -y
echo "Allow <YOUR_LOCAL_IP>" >> /etc/tinyproxy/tinyproxy.conf
sudo /etc/init.d/tinyproxy restart

Remenber open de security groups for your ip to the ssh port and 8888, the last port is the default port for get Squid connections.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment