####################################### # Squid configuration file ############# cache_effective_user proxy pid_filename /var/run/squid.pid # tcp_outgoing_address dns_nameservers 127.0.0.1 refresh_pattern -i (.*jpg$|.*gif$) 0 50% 28800 refresh_pattern -i (.*html$|.*htm|.*shtml) 0 20% 1440 refresh_pattern (http://.*/$) 0 20% 1440 refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern . 0 20% 4320 cache_replacement_policy heap LFUDA memory_replacement_policy heap GDSF # obejscie buga internet explorera 5.5 i 5.5SP1 ie_refresh on # visible_hostname #kontrola dostepu acl all src 0.0.0.0/0.0.0.0 acl local src 192.168.1.0/255.255.255.0 acl manager proto cache_object acl localhost src 127.0.0.1/255.255.255.255 acl Safe_ports port 20 # http acl Safe_ports port 21 # http acl Safe_ports port 80 # http acl Safe_ports port 81 # http acl Safe_ports port 82 # http acl Safe_ports port 83 # http acl Safe_ports port 84 # http acl Safe_ports port 443 # http acl Safe_ports port 8080 # http acl Safe_ports port 1024:64500 acl purge method PURGE acl CONNECT method CONNECT http_access deny !Safe_Ports #KONFIGURACJA DOSTEPU DO SIECI http_access allow local http_access deny all http_port 8080 icp_port 0 error_directory /squid/share/errors/Polish acl FTP proto FTP always_direct allow FTP hierarchy_stoplist cgi-bin ? acl QUERY urlpath_regex cgi-bin \? no_cache deny QUERY #Ilosc Ramu dla squida cache_mem 128 MB minimum_object_size 0 KB maximum_object_size 420 MB maximum_object_size_in_memory 12 KB #Katalog na cache cache_dir ufs /var/spool/squid 80000 16 256 cache_access_log none cache_store_log none cache_log /var/log/squid/cache.log #Transparent proxy httpd_accel_host virtual httpd_accel_port 80 httpd_accel_with_proxy on httpd_accel_uses_host_header on zph_tos_local 8 zph_tos_peer 0 zph_tos_parent off