squid

by mainstreamxxx
181 deployments · 172 still active · last rev. 9 months ago

Compatible with: Ubuntu 14.04 LTS
						#!/bin/bash
#
# Ubuntu 14 LTS
#

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
auth_param basic program /usr/lib/squid3/basic_ncsa_auth /etc/squid3/passwords
auth_param basic realm proxy
acl authenticated proxy_auth REQUIRED
http_access allow authenticated

# Choose the port you want. Below we set it to default 3128.
http_port 7707
EOF

service squid3 restart

echo "IP ADDRESS"

curl ifconfig.co