Difference between revisions of "Squid"
From Teknologisk videncenter
m (New page: = configuration = == Eksempel == <pre> cache_dir ufs /var/cache1 9000 16 256 cache_dir ufs /var/cache2 9000 16 256 http_port 8080 transparent #maximum_object_size 200000 KB acl SNMP snmp_c...) |
m |
||
Line 65: | Line 65: | ||
#redirect_program /usr/local/bin/squidGuard -c /usr/local/etc/squidGuard.conf | #redirect_program /usr/local/bin/squidGuard -c /usr/local/etc/squidGuard.conf | ||
</pre> | </pre> | ||
+ | [[Category:Linux]] |
Revision as of 13:43, 20 November 2009
configuration
Eksempel
cache_dir ufs /var/cache1 9000 16 256 cache_dir ufs /var/cache2 9000 16 256 http_port 8080 transparent #maximum_object_size 200000 KB acl SNMP snmp_community public snmp_access allow SNMP snmp_access allow all snmp_port 3401 access_log /var/squid/access.log squid cache_log /var/squid/cache.log cache_store_log /var/squid/store.log pid_filename /var/squid/squid.pid coredump_dir /tmp acl DELAY1 dstdomain .tdc.dk .ibm.com acl DENY dstdomain .bt.dk http_access deny DENY always_direct allow DELAY1 no_cache deny DELAY1 acl manager proto cache_object acl localhost src 127.0.0.1/32 acl to_localhost dst 127.0.0.0/8 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 SSL_ports port 443 acl SSL_ports port 10000 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 deny DELAY1 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 htcp_access allow localnet htcp_access deny all http_port 3128 hierarchy_stoplist cgi-bin ? refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern (cgi-bin|\?) 0 0% 0 refresh_pattern . 0 20% 4320 icp_port 3130 delay_pools 1 # Total number of delay-pools delay_access 1 allow DELAY1 delay_access 1 deny all delay_class 1 1 delay_parameters 1 50/50 #500/500 cache_mgr heth@eucmidt.dk #redirect_program /usr/local/bin/squidGuard -c /usr/local/etc/squidGuard.conf