LINUX.ORG.RU
ФорумAdmin

Элементарная настройка Squid


0

0

Вот очень простой конфиг Squid, который я хочу запустить:

acl all src 0/0

acl localnet src 10.0.0.0/24

acl filehosting dstdomain .rapidshare.com .depositfiles.com

http_port 10.0.0.10:3128 transparent

access_log /var/log/squid/access.log squid

http_access allow localnet

http_access deny localnet filehosting

http_access deny all

а вот ошибка, которую я получаю при запуске:

Restarting Squid HTTP proxy: squidFATAL: Bungled squid.conf line 4: http_port 10.0.0.10:3128 transparent Squid Cache (Version 2.7.STABLE3): Terminated abnormally. failed!

В интернете пишут про версию 2.5, в которой не было transparent, но у меня версия 2.7 В чем проблема?

может по старинке?:
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_uses_host_header on

gserg ★★
()
Ответ на: комментарий от sdio

>Это синтаксис 3-го сквида

В 3.1 заменили на intercept, судя по squid.conf.documented

redgremlin ★★★★★
()
Ответ на: комментарий от sdio

Неа, у меня в etch такое работает, 2.6.5.

вот мой конфиг, с ним работает всё:

http_port 192.168.2.1:3128 transparent
icp_port 0

cache_dir diskd /var/spool/squid 15480 16 256

cache_access_log /var/log/squid/access.log

cache_log /var/log/squid/cache.log

cache_store_log /var/log/squid/store.log

emulate_httpd_log on

icp_access deny all

visible_hostname SQUID
undertaker ★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.