Skip to content

Instantly share code, notes, and snippets.

@luluhoc
Created October 29, 2016 14:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luluhoc/2cc4118d281021105072ccbd3c18b533 to your computer and use it in GitHub Desktop.
Save luluhoc/2cc4118d281021105072ccbd3c18b533 to your computer and use it in GitHub Desktop.
Script to setup squid3 with no authentication accepting all traffic (run as sudo)
#!/bin/bash
#
# Debian
#
set -v
apt-get -y update
apt-get install -y ntpdate
apt-get install -y squid3 apache2-utils
cp /etc/squid3/squid.conf /etc/squid3/squid.conf.bak
cat << EOF > /etc/squid3/squid.conf
http_port 3128
http_access allow all
cache deny all
forwarded_for delete
request_header_access Via deny all
EOF
/etc/init.d/squid3 restart
echo "IP ADDRESS"
curl ifconfig.co
#Be sure to shutdown/terminate your VM after you are done!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment