I need a startup scriptfor debian 8.7 which makes the server into an http proxy by using squid. it should be ip authenticated.
> Here is an example of ubuntu 14.04:
#!/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/[login to view URL] /etc/squid3/[login to view URL]
cat << EOF > /etc/squid3/[login to view URL]
http_port 8080
acl localnet src [login to view URL]
http_access allow localnet
http_access deny all
cache deny all
forwarded_for delete
request_header_access Via deny all
EOF
sudo service squid3 restart