URL: https://www.opennet.me/cgi-bin/openforum/vsluhboard.cgi
Форум: vsluhforumID12
Нить номер: 4398
[ Назад ]

Исходное сообщение
"Squid и cachemgr.cgi"

Отправлено kunaksergey , 09-Окт-06 14:17 
Ну никак не могу запустить эту штуку. После ввода в поля Cache Host:195.24.137.170(адрес на котором стоит Apache);Cache port: 3128;Manager name и Password-не ввожу поскольку написано что требуется только для остановки кеша(хотя и с ними тоже не работает)- Access denied.Хоть стреляйся.... Squid.conf-ниже:

http_port 195.24.137.170:3128
icp_port 0
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 80 MB
cache_dir ufs /usr/local/squid/cache 100 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
pid_filename /var/run/squid.pid
ftp_user anonymous@
ftp_list_width 32
ftp_passive on
ftp_sanitycheck on
dns_nameservers 195.24.137.169 195.24.128.65 195.24.128.78
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
refresh_pattern ^ftp:         &n... 1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern .               0       20%     4320
#Recommended minimum configuration:
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
#________________________________
acl Myhost src 192.168.0.211/32 195.24.137.170/32
acl NO_LIMIT src 192.168.0.3/32 192.168.0.10/32 192.168.0.27/32 192.168.0.28/32 192.168.0.29/32 192.168.0.43/32
192.168.0.73/32 192.168.0.95/32 192.168.0.96/32 192.168.0.98/32 192.168.0.99/32 192.168.0.205/32 192.168.0.211/32
192.168.0.214/32  
acl LIMIT_9_18 src 192.168.0.30/32 192.168.0.34/32 192.168.0.69/32 192.168.0.206/32 192.168.0.207/32
acl WORKING time MTWHF 9:00-18:00
acl conn5 maxconn 5
#_______________________________
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80          # http
acl Safe_ports port 21          # ftp
acl Safe_ports port 23          #telnet
acl Safe_ports port 443 563     # https, snews
acl Safe_ports port 70          # gopher
acl Safe_ports port 210         # wais
acl Safe_ports port 1025-65535  # unregistered ports
acl Safe_ports port 280         # http-mgmt
acl Safe_ports port 488         # gss-http
acl Safe_ports port 591         # filemaker
acl Safe_ports port 777         # multiling http
acl Safe_ports port 5190        # ICQ
acl Safe_ports port 53          #DNS
acl Safe_ports port 7124        #Bank
acl CONNECT method CONNECT

http_access allow manager localhost Myhost
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow NO_LIMIT
http_access allow LIMIT_9_18 !WORKING
http_access deny all
http_reply_access allow all
icp_access deny all
cache_mgr admin@fmc.dp.ua
cache_effective_user squid
cache_effective_group squid
logfile_rotate 10
cachemgr_passwd bolt all
client_db on
coredump_dir /usr/local/squid/cache

Где копать?..подскажите!!


Содержание

Сообщения в этом обсуждении
"Squid и cachemgr.cgi"
Отправлено DeadLoco , 09-Окт-06 16:27 
>Ну никак не могу запустить эту штуку
>Где копать?..подскажите!!

>http_access allow manager localhost Myhost
Вот здесь _________________^^^^^^^^^^^^^^^^

Есть мнение, что составляющие АЦЛя объединяются логической связкой "И" - т.е. разрешать манагеру, пришедшему И с локалхоста, И с майхоста одновременно. В то время, как заголовок ТСР-пакета может вмещать лишь одного отправителя. Попробуй сделать так:

>http_access allow manager localhost
>http_access allow manager Myhost


Также бытует мнение, что подобная откровенность:

>http_port ***.***.***.***:3128
>cache_mgr admin@***.***.ua
>cachemgr_passwd **** all

сильно портит карму при последующих перевоплощениях.


"Squid и cachemgr.cgi"
Отправлено kunaksergey , 09-Окт-06 16:46 
>>DeadLoco
Царь то-не настоящий.. Ж))



"Squid и cachemgr.cgi"
Отправлено DeadLoco , 09-Окт-06 17:13 
>>>DeadLoco
>Царь то-не настоящий.. Ж))

Во-первых - не царь, а во-вторых - настоящий.