The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]




Версия для распечатки Пред. тема | След. тема
Новые ответы [ Отслеживать ]
Статистика В 2РАЗА БОЛЬШЕ!!! Дублируются записи access.log, !*! KUL, 04-Мрт-11, 07:35  [смотреть все]
Не знаю по какой причине, но squid ведёт лог так, что анализаторы показывают трафик, который намного отличается от статистики провайдера! Заглянув в access.log увидел, что все запросы дублируются! Т.е. скачал 1 картинку, а прописывается запись 2 раза!
Вот кусок из лога:

1299212984.667    389 192.168.0.102 TCP_MISS/200 575 GET http://s.ubuntu.ru/img/menu_divider.png kuleshov DIRECT/89.208.136.153 image/png
1299212984.667    389 192.168.0.102 TCP_MISS/200 575 GET http://s.ubuntu.ru/img/menu_divider.png kuleshov DIRECT/89.208.136.153 image/png
1299212984.675    397 192.168.0.102 TCP_MISS/200 2188 GET http://s.ubuntu.ru/img/logo_ru.png kuleshov DIRECT/89.208.136.153 image/png
1299212984.675    397 192.168.0.102 TCP_MISS/200 2188 GET http://s.ubuntu.ru/img/logo_ru.png kuleshov DIRECT/89.208.136.153 image/png
1299212984.694    416 192.168.0.102 TCP_MISS/200 1007 GET http://s.ubuntu.ru/img/news_feed_bg.png kuleshov DIRECT/89.208.136.153 image/png
1299212984.694    416 192.168.0.102 TCP_MISS/200 1007 GET http://s.ubuntu.ru/img/news_feed_bg.png kuleshov DIRECT/89.208.136.153 image/png
1299212984.696    418 192.168.0.102 TCP_MISS/200 628 GET http://help.ubuntu.ru/lib/exe/indexer.php?id=wiki:пЁп╩п╟п╡п╫п╟я▐&1299212819 kuleshov DIRECT/89.208.136.153 image/gif
1299212984.696    418 192.168.0.102 TCP_MISS/200 628 GET http://help.ubuntu.ru/lib/exe/indexer.php?id=wiki:пЁп╩п╟п╡п╫п╟я▐&1299212819 kuleshov DIRECT/89.208.136.153 image/gif
1299212984.701    423 192.168.0.102 TCP_MISS/200 2981 GET http://s.ubuntu.ru/img/footer_logo_ru.png kuleshov DIRECT/89.208.136.153 image/png
1299212984.701    423 192.168.0.102 TCP_MISS/200 2981 GET http://s.ubuntu.ru/img/footer_logo_ru.png kuleshov DIRECT/89.208.136.153 image/png
1299212984.711    433 192.168.0.102 TCP_MISS/200 2063 GET http://s.ubuntu.ru/img/search_submit_bg_2.png kuleshov DIRECT/89.208.136.153 image/png
1299212984.711    433 192.168.0.102 TCP_MISS/200 2063 GET http://s.ubuntu.ru/img/search_submit_bg_2.png kuleshov DIRECT/89.208.136.153 image/png
1299212984.716    438 192.168.0.102 TCP_MISS/200 4874 GET http://help.ubuntu.ru/_media/wiki/ubuntulogo-new-96x96.png kuleshov DIRECT/89.208.136.153 image/png
1299212984.716    438 192.168.0.102 TCP_MISS/200 4874 GET http://help.ubuntu.ru/_media/wiki/ubuntulogo-new-96x96.png kuleshov DIRECT/89.208.136.153 image/png
1299212984.717    439 192.168.0.102 TCP_MISS/200 688 GET http://s.ubuntu.ru/img/third_nav_divider_r.png kuleshov DIRECT/89.208.136.153 image/png
1299212984.717    439 192.168.0.102 TCP_MISS/200 688 GET http://s.ubuntu.ru/img/third_nav_divider_r.png kuleshov DIRECT/89.208.136.153 image/png

С чем этом может быть связано? Пользователей авторизирую из LDAP

  • Статистика В 2РАЗА БОЛЬШЕ!!! Дублируются записи access.log, !*! reader, 08:14 , 04-Мрт-11 (1)
    что в конфиге в отношении логов?
    • Статистика В 2РАЗА БОЛЬШЕ!!! Дублируются записи access.log, !*! KUL, 08:35 , 04-Мрт-11 (2)
      > что в конфиге в отношении логов?

      Вот весь конфиг:

      http_port 13001
      icp_port 0

      #Настройка кэша
      #cache_effective_user squid
      cache_mem 100 MB
      maximum_object_size 8192 KB
      minimum_object_size 4 KB
      cache_dir ufs /maystro-share/squid 5120 16 256
      cache_swap_high 98
      cache_swap_low 90
      #reference_age 1 month
      refresh_pattern -i \.gif$ 43200 100% 43200 override-lastmod override-expire
      refresh_pattern -i \.png$ 43200 100% 43200 override-lastmod override-expire
      refresh_pattern -i \.jpg$ 43200 100% 43200 override-lastmod override-expire
      refresh_pattern -i \.jpeg$ 43200 100% 43200 override-lastmod override-expire
      refresh_pattern -i \.swf$ 43200 100% 43200 override-lastmod override-expire
      refresh_pattern -i \.zip$ 43200 100% 43200 override-lastmod override-expire
      refresh_pattern -i \.rar$ 43200 100% 43200 override-lastmod override-expire
      refresh_pattern -i \.pdf$ 43200 100% 43200 override-lastmod override-expire
      refresh_pattern -i \.mp3$ 43200 100% 43200 override-lastmod override-expire
      refresh_pattern . 0 80% 14400

      #Ведём логи
      access_log /var/log/squid/access.log squid
      cache_log none
      cache_store_log none
      emulate_httpd_log off
      logfile_rotate 12

      #Как мы ходим по фтп
      ftp_user anonymous@maystro.local

      #Время жизни DNS адресов
      positive_dns_ttl 5 hours
      negative_dns_ttl 20 minutes

      acl all src 0.0.0.0/0.0.0.0
      #----------------------------------------
      #Раздача интернета через прокси
      #cache_peer 192.168.0.254 parent 13001 0
      #never_direct allow all
      #----------------------------------------

      #Логи доступа к сквиду
      access_log /var/log/squid/access.log squid
      hosts_file /etc/hosts

      #Авторизируемся в базе ldap и помним пароль 10 часов
      auth_param basic program /usr/lib/squid/ldap_auth -P -b "dc=maystro,dc=local" -v 3 -f "(uid=%s)" -h 127.0.0.1
      auth_param basic children 30
      authenticate_ttl 10 hour
      auth_param basic realm Web-proxy

      acl admin port 8000 631 9090 9091
      acl safe_ports port 80 21 22 443 910 2221 8443 4500
      acl ssl_ports port 443 563 1025 5190
      acl connect method CONNECT

      #acl all src 0.0.0.0/0.0.0.0
      acl users proxy_auth REQUIRED
      acl bad proxy_auth src "/etc/squid/bad.txt"
      acl god proxy_auth src "/etc/squid/god.txt"

      #Делим канал на всех пользователей
      delay_pools 3
      delay_class 1 1 # 5кб/с
      delay_class 2 1 # 100кб/с
      delay_class 3 1 # 30кб/с
      delay_access 1 allow bad
      delay_access 1 deny all
      delay_access 2 allow god
      delay_access 2 deny all
      delay_access 3 allow users
      delay_access 3 deny all

      #раздаём скорость
      delay_parameters 1 5120/20480
      delay_parameters 2 122880/51200
      delay_parameters 3 30720/51200

      http_access allow bad safe_ports
      http_access allow bad ssl_ports
      http_access allow god admin
      http_access allow god safe_ports
      http_access allow god ssl_ports
      http_access allow users ssl_ports
      http_access allow users safe_ports
      http_access allow connect
      http_access deny all




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру