SlackBuilds Repository

Network > squid

Squid is a high-performance proxy caching server for web clients, sup-
porting FTP, gopher, and HTTP data objects. Unlike traditional caching
software, squid handles all requests in a single, non-blocking, I/O-
driven process.

Squid supports SSL, extensive access controls, and full request log-
ging. By using the lightweight Internet Cache Protocol, squid caches
can be arranged in a hierarchy or mesh for additional bandwidth sav-
ings.

If you need to start squid at boot.
The recommended way is to add the following to your /etc/rc.d/rc.local
script:

if [ -x /etc/rc.d/rc.squid ]; then
/etc/rc.d/rc.squid start
fi

Make sure the rc.squid script is executable.
Uncomment and edit the following lines in /etc/squid.conf:

==============================================================================

cache_peer, never_direct/always_direct

If you have a parent cache, put it here. The administrators of the
parent cache typically provided you with instructions. You should
always ask permission before adding a parent cache. See also the
never_direct/always_direct directives.

cache_dir /var/log/squid/cache 100 16 256

Add here (first number, here 100) the amount of hard disk space
(in megabytes) to devote to caching.

acl, http_access, icp_access

Access control lists. This is important because it prevents people
from stealing your network resources. To fill in the
"allowed_hosts" ACL, use your network address (for instance
192.168.10.0 and your network mask (for instance 255.255.255.0):

acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl all src 0.0.0.0/0.0.0.0
acl allowed_hosts src 192.168.10.0/255.255.255.0

http_access deny manager all
http_access allow allowed_hosts
http_access deny all

icp_access allow allowed_hosts
icp_access deny all

cache_mgr

Put here the e-mail address of the manager:

cache_effective_user

If you must start Squid as root, find a safe user and group to run
as after startup (typically "nobody" and "nogroup"). Do not use
"root", for security reasons.

visible_hostname

The host name you advertise for the cache.

==============================================================================

After editing squid.conf to your liking, run Squid from the command
line TWICE:

% /usr/sbin/squid -z
% /usr/sbin/squid

Check in the cache.log (/var/log/squid/log/cache.log) that
everything is all right.

Approved by: BP{k}

Homepage:
http://www.squid-cache.org/

Download Source:
squid-2.6.STABLE14.tar.bz2

Source MD5SUM:
eadb138d48320df8b99349121159c6bf

Download SlackBuild:
squid.tar.gz
squid.tar.gz.asc

(the SlackBuild does not include the source)

Individual Files:
README
doinst.sh
rc.squid.new
slack-desc
squid.SlackBuild
squid.info

Validated for Slackware 12.0 (Other releases)

See our HOWTO for instructions on how to use the contents of this repository.

Anonymous FTP Access to Repository: ftp://ftp.slackbuilds.org

Access via rsync is also available.
rsync://rsync.slackbuilds.org/slackbuilds

© 2006-2007 SlackBuilds.org Project. All rights reserved.
Slackware® is a registered trademark of Patrick Volkerding
Linux® is a registered trademark of Linus Torvalds
Valid XHTML and CSS by WebSight Designs | Hosting by OnyxLight Communications