URL=http://www.squid-cache.org/Versions/v3/3.5/squid-3.5.24.tar.gz apt-get update apt-get -y install make gcc libapache-dbi-perl libclass-dbi-mysql-perl mysql-client libapache-dbi-perl libclass-dbi-mysql-perl mysql-client libldap2-dev apt-get install -y g++ libssl-dev libgnutls-openssl-dev mkdir -p /home/src cd /home/src wget $URL -O squid.tar.gz tar xzvf squid.tar.gz cat > run << 'EoT' ./configure '--prefix=/srv/proxy' '--exec-prefix=/srv/proxy' '--sbindir=/srv/proxy/bin' \ '--libexecdir=/srv/proxy/bin' \ '--datadir=/srv/proxy/etc' '--sysconfdir=/srv/proxy/etc' \ '--sharedstatedir=/srv/proxy/etc' '--localstatedir=/srv/proxy' \ '--libdir=/srv/proxy/bin' '--infodir=/srv/proxy/doc' '--mandir=/srv/proxy/doc' \ '--enable-icmp' --enable-ssl --with-openssl \ '--enable-auth' --enable-auth-basic="LDAP" '--enable-auth-digest=LDAP' \ '--enable-log-daemon-helpers=file' \ '--with-default-user=proxy' \ '--enable-delay-pools' EoT chmod +x run cd squid**** ../run make all make install cd /srv mkdir -p /srv/proxy/etc/acls/ chown -R proxy.proxy proxy Configuracion 1.6 wget "http://red.uclv.cu/_export/code/canalperi?codeblock=0" -O /srv/proxy/etc/acls/canal-ict.acl cat > /srv/proxy/etc/squid.conf << 'EoT' visible_hostname paka http_port 3128 http_access allow manager localhost http_access deny manager acl enlaces-canal-ict dstdomain "/srv/proxy/etc/acls/canal-ict.acl" http_access allow enlaces-canal-ict never_direct allow enlaces-canal-ict cache_peer 200.14.48.120 parent 3128 0 cache_peer_access 200.14.48.120 allow enlaces-canal-ict acl proxy-level1 src 10.12.1.7 10.12.1.77 10.12.1.79 10.12.1.78 http_access allow proxy-level1 http_access deny all hosts_file /etc/hosts EoT /srv/proxy/bin/squid