The OpenNET Project / Index page

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




Версия для распечатки Пред. тема | След. тема
Новые ответы [ Отслеживать ]
squid и cache_peer, !*! Mimik, 26-Мрт-10, 08:13  [смотреть все]
Доброго времени гуру, у меня проблема соеденил проксю настроил, у меня перед мои прокси есть ещше один, и следовательно мне приходиться пользовать cache_peer ip parent port port но есть странность, при запросе сайта, все открывается и работает, но при попытке открыть любую поисковую машину типа гугл, и ввести поиск, то прокся ругается на то что ей вернули чтото бердовое и отоброзить сие она не в состоянии О_О как таке бороть?

вот что выводит бравзер

Получен недопустимый ответ при попытке обработки запроса:

    GET /search?hl=ru&source=hp&q=squid+cache_peer&btnG=п÷п╬п╦я│п╨+п╡+Google&lr= HTTP/1.1
    Host: www.google.ru
    User-Agent: Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9.1.6) Gecko/20091216 Fedora/3.5.6-1.fc12 Firefox/3.5.6
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: ru,en-us;q=0.7,en;q=0.3
    Accept-Encoding: gzip,deflate
    Accept-Charset: windows-1251,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 300
    Proxy-Connection: keep-alive
    Referer: http://www.google.ru/
    Cookie: PREF=ID=c2fca7daa745235f:U=797f98d683774724:NW=1:TM=1262160061:LM=1262160075:S=jIMvif1PWlbXIDIZ; NID=30=jgRk-TfZmv1YNOp47SJMnY6zxqncLSNWdyLRbfaDDv2_nCb5DGE_CeK-cEJ7gyRP9aDO_z1-d7dzve8TzTsxIX8z_DAAzUhLuP4nBvmiNETa_CEk8AR9k3he-zZjPXrW

Ответ HTTP, полученный от сервера, не может быть распознан, или он был неверно сформирован. Пожалуйста, свяжитесь с оператором сайта.

  • squid и cache_peer, !*! Mimik, 08:40 , 26-Мрт-10 (1)
    • squid и cache_peer, !*! ipmanyak, 08:54 , 26-Мрт-10 (2)
      • squid и cache_peer, !*! Mimik, 11:40 , 29-Мрт-10 (3)
        >>решено =))) почему не публикуем решение?

        ВОбщем нет, не решено =((

        вот мой конфиг
        #
        # Recommended minimum configuration:
        #
        acl manager proto cache_object
        acl localhost src 127.0.0.1/32
        acl localhost src ::1/128
        #acl to_localhost dst 127.0.0.0/8 0.0.0.0/32
        #acl to_localhost dst ::1/128
        #acl allnet src 10.0.0.0-10.255.255.255/255.255.255.0

        # Example rule allowing access from your local networks.
        # Adapt to list your (internal) IP networks from where browsing
        # should be allowed
        #acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
        #acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
        #acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
        #acl localnet src fc00::/7 # RFC 4193 local private network range
        #acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines

        #acl all src 0.0.0.0/0.0.0.0

        acl admin1 src 10.32.12.16/24
        acl zrgoo src 10.32.12.0/24

        acl SSL_ports port 443
        acl Safe_ports port 80 # http
        acl Safe_ports port 21 # ftp
        acl Safe_ports port 443 # https
        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 CONNECT method CONNECT
        acl fozrgoo src 10.28.33.1-10.28.33.255/24
        acl admin_d src 10.32.12.20/24

        #
        # Recommended minimum Access Permission configuration:
        #
        # Only allow cachemgr access from localhost
        #http_access allow manager localhost
        #http_access deny manager

        # Deny requests to certain unsafe ports
        http_access allow admin_d

        # Deny CONNECT to other than secure SSL ports
        http_access allow admin1

        # We strongly recommend the following be uncommented to protect innocent
        # web applications running on the proxy server who think the only
        # one who can access services on "localhost" is a local user
        #http_access deny to_localhost

        #
        # INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
        #

        # Example rule allowing access from your local networks.
        # Adapt localnet in the ACL section to list your (internal) IP networks
        # from where browsing should be allowed
        #http_access allow localnet
        #http_access allow localhost

        http_access allow zrgoo
        http_access allow fozrgoo
        http_access deny !Safe_ports
        http_access deny CONNECT !SSL_ports
        http_access deny all


        delay_pools 2

        # And finally deny all other access to this proxy
        #http_access allow allnet

        # Squid normally listens to port 3128
        http_port 10.32.12.9:3128 transparent
        visible_hostname zrgoproxy
        # We recommend you to use at least the following line.

        # Uncomment and adjust the following to add a disk cache directory.
        cache_dir ufs /home/squid/squid 100 16 256
        cache_peer 10.4.10.125 parent 3128 0 no-query default
        never_direct allow admin_d admin1 zrgoo fozrgoo
        # Leave coredumps in the first cache dir
        coredump_dir /var/spool/squid

        # Add any of your own refresh_pattern entries above these.
        icp_access allow admin_d
        icp_access allow zrgoo
        #icp_access allow to_localhost
        icp_access allow admin1
        icp_access allow localhost
        icp_access allow CONNECT
        icp_access allow fozrgoo
        http_reply_access allow admin1
        http_reply_access allow zrgoo
        http_reply_access allow fozrgoo
        http_reply_access allow CONNECT
        http_reply_access allow admin_d
        delay_class 1 4
        delay_class 2 3
        delay_parameters 1 -1/-1 -1/-1 -1/-1 -1/-1
        delay_parameters 2 1800/64000 1800/64000 1800/64000
        delay_access 1 allow admin1
        delay_access 2 deny admin1
        delay_access 2 allow fozrgoo
        delay_access 1 deny zrgoo
        delay_access 2 allow zrgoo
        redirect_program /usr/local/bin/squidGuard

        Запросы GET проходят, а вот на запросы POST получаю следущее :


        ERROR
        The requested URL could not be retrieved


        Как быть ??????




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

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