proxy w pw

by jakedavis00
3 deployments · 3 still active · last rev. 1 year ago

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

set -v

sudo su

apt-get -y update

apt-get install -y ntpdate
apt-get install squid3 apache2-utils -y

touch /etc/squid3/passwd
htpasswd -b /etc/squid3/passwd dreamtm 1234asdf

cat << EOF > /etc/squid3/squid.conf
http_port 3128
auth_param basic program /usr/lib/squid3/basic_ncsa_auth /etc/squid3/passwd
auth_param basic realm proxy
acl dreamtm proxy_auth REQUIRED
http_access allow dreamtm
cache deny all
forwarded_for delete
request_header_access Via deny all

EOF

service squid3 restart