Отправляет email-рассылки с помощью сервиса Sendsay

Re: Установка squid

Squid - quickstart: необходимые изменения чтобы просто заставить squid заработать
на моем RedHat9 в /usr/share/doc/squid2.5...
squid.conf
####
cache_peer

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.

cache_mem

Add here the amount of memory (RAM memory) to devote to caching.
Warning: Squid uses much more than this value. Rule of thumb: if
you have N megabytes free for Squid, put N/3 here.

cache_dir /var/spool/squid 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, miss_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

miss_access allow allowed_hosts
miss_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
здесь надо сразу посмотреть tail /var/log/messages
% /usr/sbin/squid

Check in the cache.log (/var/log/squid/cache.log) that
everything is all right. Note that "WARNING: Cannot write to swap
directory" is normal the first time you run Squid
#######

в качестве cache_effective_user я использую: user "squid" , group "squid" - весь
кэш (/var/spool/squid)
принадежит ему же, сообщения об ошибках выставлены в CP1251 (если что-то не так
как здесь при сборке ->
chmod squid:squid ...)

Собирал c портов и настраивал squid на FreeBSD - полнофункцианальный кэширующий
сервер.
Для фильтрации по контенту использовал редиректор squidGuard - обязательное условие
- наличие BerkleyDB 2-ой версии,
чтобы не говорили статьи в интернет.
Для порезки баннеров privoxy - слушает только localhost (ну а "кальмар" прочие
необходимые интерфейсы)
в squid.conf добавил строчку: cache_peer localhost parent 8118 0 no-query
неплохая связка получилась
######

не забывайте про /etc/sysconfig/squid в RedHat-подобных дистрибутивах.

-*Название листа "Linux: разрешение вопросов, перспективы и общение";
Написать в лист: mailto:comp.soft.linux.discuss-list@subscribe.ru
Адрес правил листа http://subscribe.ru/catalog/comp.soft.linux.discuss/rules
Номер письма: 9039; Возраст листа: 341; Участников: 1194
Адрес сайта рассылки: http://www.linuxrsp.ru
Адрес этого письма в архиве: http://subscribe.ru/archive/comp.soft.linux.discuss/msg/182518



-*Информационный канал Subscribe.Ru
Написать в лист: mailto:comp.soft.linux.discuss-list@subscribe.ru
Отписать : mailto:comp.soft.linux.discuss--unsub@subscribe.ru

http://subscribe.ru/ mailto:ask@subscribe.ru

Ответить   Егор Евтюков Thu, 01 Jul 2004 21:08:09 +0400 (#182518)