Znow otwieram nowy temat gdzies czytalem ze config z squida 2.6 odpala na 2.7 ale u mnie nietety nie chcial wiec znalazlem w necie jakis konfig i go przerobilem i squid startuje tak jak chce(standardowy tez dziala oczywiscie) ale nie w tym rzecz moje pytanie dotyczy ZPH TOS, czy jest ten patch w tym squidzie bo po dodaniu
2010/01/31 21:10:42| parseConfigFile: squid.conf:84 unrecognized: 'zph_tos_local'
2010/01/31 21:10:42| parseConfigFile: squid.conf:85 unrecognized: 'zph_tos_peer'
2010/01/31 21:10:42| parseConfigFile: squid.conf:86 unrecognized: 'zph_tos_parent'
#
# config squida 2.7 by rikardo7 dla CDN
#zlozony z kilku plikow ale u mnie dziala
#orginalny jest zbyt duzy do przegladania
acl all src all
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
#TU POWINNIEN BYC ZAKRES SIECI
acl localnet src 192.168.2.0/24
# Ustawiamy srednia oczekiwana (14 KB) i maksymalna wielkosc obiektow (2 MB)
# oraz maksymalna wielkosc obiektu w pamieci (16 KB)
store_avg_object_size 14 KB
maximum_object_size 2048 KB
maximum_object_size_in_memory 16 KB
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 localnet
http_access deny all
icp_access allow localnet
icp_access deny all
http_port 8080 transparent
hierarchy_stoplist cgi-bin ?
# Jakiego typu bedzie cache, gdzie bedzie cache na dysku
# ile b.dzie zajmowal miejsca i jaka bedzie struktura katalogow
cache_dir ufs /var/cache/squid 4096 16 128
# Ustawiamy wielkość pamięci Cache (dla 128 MB RAM'u wystarczy 32 MB)
cache_mem 512 MB
# Gdzie Squid ma zapisywa. logi wylaczamy zmieniajac sciezke na none
# np: cache_log none
cache_log /var/log/squid/cache.log
cache_access_log /var/log/squid/access.log
cache_store_log /var/log/squid/store.log
# Ile plikow zapasowych do logow
logfile_rotate 7
# Ustawiamy komunikaty o bledach na jezyk polski
error_directory /usr/share/squid/errors/Polish
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
acl shoutcast rep_header X-HTTP09-First-Line ^ICY.[0-9]
upgrade_http0.9 deny shoutcast
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
memory_pools on
memory_pools_limit 10 MB
# Ustawienie bitu TOS dla pakiet.w HIT
#zph_tos_local 0x08
#zph_tos_peer 0x00
#zph_tos_parent off