hackingonstuff

  • about me
  • portfolio
  • calendar
  • Archive
  • RSS

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).

  1. Access the security groups section in the EC2 console
  2. 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).

    • #proxy
    • #ec2
    • #amazon
    • #aws
    • #squid
    • #squid3
    • #http-proxy
  • 11 months ago
  • 2
  • Comments
  • Permalink
  • Share
    Tweet

Logo

hackingonstuff

Elad Ben-Israel
  • @emeshbi on Twitter
  • Facebook Profile
  • My Skype Info
  • Linkedin Profile
  • eladb on github

Twitter

loading tweets…

  • RSS
  • Random
  • Archive
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr