Setting up a squid proxy on AWS
1. Launch a micro Ubuntu EC2 instance
If you don’t have an Amazon AWS account, you can sign up for one here.
2. SSH into your new instance and install squid
$ sudo apt-get update
$ sudo apt-get install squid3
3. Update squid configuration
Edit /etc/squid3/squid.conf as root:
$ sudo nano /etc/squid3/squid.conf
acl all src all
acl SSL_ports port 443
acl CONNECT method CONNECT
http_access allow all
http_port 3128
hierarchy_stoplist cgi-bin ?
coredump_dir /var/spool/squid3
Please note that this configuration is not very secure. See squid configuration wiki for more information.
Restart squid for configuration to be reloaded:
$ sudo restart squid
4. Add inbound port 3128 to the instance security group
Instances are usually launched on the default security group (unless you specify otherwise).
- Access the security groups section in the EC2 console
- Add a custom TCP inbound rule for port 3128 and apply the change.
5. Configure your browser to use the proxy server
Depending on your OS/browser, you should configure the system to access the Internet via the proxy for both HTTP and HTTPS (e.g. ec1-11-11-11-11.compute-2.amazonaws.com:3128).
2 Notes/ Hide
-
garylai1990 likes this
-
bucket likes this
-
eladb posted this