Re: [squid-users] Squid3 biend another proxy

From: Thierry Leurent <thierry.leurent_at_asgardian.be>
Date: Mon, 9 Aug 2010 10:25:54 +0200 (CEST)

My goal is just to set a proxy for all internal computers (In a first time).
Here you can see my squid.conf (Without comments)
acl manager proto cache_object
acl Company_lan src 128.1.0.0/16
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 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
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow Company_lan
http_access allow localhost
http_access deny all
adapted_http_access allow Company_lan
adapted_http_access allow localhost
http_reply_access allow all
icp_access allow Company_lan
icp_access deny all
htcp_access allow Company_lan
htcp_access deny all
http_port 8080
cache_peer parent.proxy.home parent 8080 0 default
cache_peer_access parent.proxy.home allow all
hierarchy_stoplist cgi-bin ?
cache_dir ufs /var/spool/squid3 16384 16 256
access_log /var/log/squid3/access.log squid
cache_store_log /var/log/squid3/store.log
cache_log /var/log/squid3/cache.log
debug_options ALL,2
coredump_dir /var/spool/squid3
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
request_header_max_size 64 KB
reply_header_max_size 64 KB
visible_hostname MyProxy

Amos Jeffries a écrit :
> Thierry Leurent wrote:
>> Hello,
>>
>> I'm trying to configure squid3 beind an other proxy and I have some
>> troubles.
>> for some sites, I see this error message on my access.log : 2010/08/09
>> 08:58:27.175| ipcacheMarkBadAddr: www1.euro.dell.com
>> 77.67.28.145:80
>>
>> I don't understand the 80, I must connect the parent proxy with 8080.
>
> Squid failed to connect to www1.euro.dell.com hosted on a machine at IP
> address 77.67.28.145 using port 80.
>
> It looks like it is being fetched direct instead of going through the
> peer. It would be marking the peer IP and port if using the peer.
>
>>
>> In my squid.conf; I have added this lines.
>> cache_peer parent.proxy.home parent 8080 3130
>> cache_peer_access parent.proxy.home allow all
>>
>>
>> Do you have a solution ?
>>
>
> What you code in the config depends on your policies. What exactly are
> you aiming to do? (and I do mean *exactly*).
>
> Amos
> --
> Please be using
> Current Stable Squid 2.7.STABLE9 or 3.1.6
> Beta testers wanted for 3.2.0.1
>

-- 
Thierry Leurent
Phone  : +32 476/20.23.98
E-mail : thierry.leurent_at_asgardian.be
Website (en developpement) : http://www.asgardian.be
Received on Mon Aug 09 2010 - 08:25:56 MDT

This archive was generated by hypermail 2.2.0 : Mon Aug 09 2010 - 12:00:02 MDT