2013-11-13 4 views
1

У меня есть squid прокси-сервис на Debian.squid proxy ssl transparent

При подключении к веб-сайту, который использует, например, любая аналитика google или yahoo, она не загружается. Я полагаю, это потому, что мои настройки прокси-сервера из строя:

auth_param basic program /usr/lib/squid3/ncsa_auth /etc/squid3/passwd 
auth_param basic children 5 
auth_param basic realm please login to the squid server? 
auth_param basic credentialsttl 2 hours 
auth_param basic casesensitive off 

acl ncsa_users proxy_auth REQUIRED 
http_access allow ncsa_users 
acl manager proto cache_object 
acl localhost src 127.0.0.1/32 ::1 
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1 
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 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 Safe_ports port 901   # SWAT 
acl CONNECT method CONNECT 
http_access allow manager localhost 
http_access deny manager 


http_access allow localnet 
http_access allow localhost 
http_access allow localhost 

http_port 3128 
coredump_dir /var/cache/squid 
#refresh patterns for caching static files 
refresh_pattern ^ftp: 1440 20% 10080 
refresh_pattern ^gopher: 1440 0% 1440 
refresh_pattern -i \.(gif|png|jpg|jpeg|ico)$ 10080 90% 43200 override-expire ignore-no-cache ignore-no-store ignore-private 
refresh_pattern -i \.(iso|avi|wav|mp3|mp4|mpeg|swf|flv|x-flv)$ 43200 90% 432000 override-expire ignore-no-cache ignore-no-store ignore-private 
refresh_pattern -i \.(deb|rpm|exe|zip|tar|tgz|ram|rar|bin|ppt|doc|tiff)$ 10080 90% 43200 override-expire ignore-no-cache ignore-no-store ignore-private 
refresh_pattern -i \.index.(html|htm)$ 0 40% 10080 
refresh_pattern -i \.(html|htm|css|js)$ 1440 40% 40320 
refresh_pattern . 0 40% 40320 

icp_access allow localnet 
icp_access deny all 
acl ip1 myip xxx.xxx.xxx.xxx 
tcp_outgoing_address xxx.xxx.xxx.xxx ip1 
cache_mgr [email protected] 
cache_mem 1 GB 
visible_hostname onlytestproxy.com 
maximum_object_size 100 MB 
maximum_object_size_in_memory 128 KB 

forwarded_for off 
request_header_access Allow allow all 
request_header_access Authorization allow all 
request_header_access WWW-Authenticate allow all 
request_header_access Proxy-Authorization allow all 
request_header_access Proxy-Authenticate allow all 
request_header_access Cache-Control allow all 
request_header_access Content-Encoding allow all 
request_header_access Content-Length allow all 
request_header_access Content-Type allow all 
request_header_access Date allow all 
request_header_access Expires allow all 
request_header_access Host allow all 
request_header_access If-Modified-Since allow all 
request_header_access Last-Modified allow all 
request_header_access Location allow all 
request_header_access Pragma allow all 
request_header_access Accept allow all 
request_header_access Accept-Charset allow all 
request_header_access Accept-Encoding allow all 
request_header_access Accept-Language allow all 
request_header_access Content-Language allow all 
request_header_access Mime-Version allow all 
request_header_access Retry-After allow all 
request_header_access Title allow all 
request_header_access Connection allow all 
request_header_access Proxy-Connection allow all 
request_header_access User-Agent allow all 
request_header_access Cookie allow all 
request_header_access All deny all 

shutdown_lifetime 3 seconds 

xxx.xxx.xxx.xxx, очевидно, означает, что мой IP, так что, может быть, я делаю что-то неправильно.

Я пытался добавить некоторые iptables правила, как:

iptables -t nat -I PREROUTING -p tcp --dport 443 -j ACCEPT 

Я также попытался кучу кодов, которые я нашел через Google, но не повезло.

Если только кто-то может указать, что случилось, и скажите + - как исправить это, это было бы здорово!

ответ

1

Вы должны добавить transparent или intercept (версии 3.1+), чтобы кальмары знали, что они прозрачны.

так:

http_port 3128 

стали:

http_port 3128 transparent # for old versions 

или:

http_port 3128 intercept # 3.1+ vesrsions 
Смежные вопросы