آقا كل كانفيگ
http_port 3128
cache_mem 512 M
dead_peer_timeout 30 seconds
hierarchy_stoplist cgi-bin
?
acl QUERY urlpath_regex cgi-bin
\?
no_cache deny QUERY
maximum_object_size 32000 KB
maximum_object_size_in_memory 64 KB
minimum_object_size 0 KB
cache_replacement_policy heap LFUDA
memory_replacement_policy heap LRU
cache_dir aufs /cache 30000 16 256
cache_access_log /var/log/squid/access.log
cache_store_log none
acl all src 0.0.0.0/0.0.0.0
acl localnet src 192.168.0.0/255.255.255.0
acl localip src x.x.x.x/255.255.255.255
acl users src x.x.x.x/255.255.255.x
#
acl x src 62.60.198.0/255.255.255.0
#
acl xlocal src 192.168.250.0/255.255.255.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl ssl_ports port 873
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
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-mgmto
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl purge method PURGE
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny localip
http_access allow localnet
http_access allow users
#
http_access deny mori
#
http_access deny morilocal
http_access deny manager
http_access deny !Safe_ports
http_access allow purge localhost
http_access deny CONNECT !SSL_ports
http_access deny purge
http_access deny to_localhost
http_access allow localhost
http_access deny all
http_reply_access allow all
cache_effective_user squid
cache_effective_group squid
half_closed_clients on
cache_swap_high 100%
cache_swap_low 80%
visible_hostname localhost
cache_mgr
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
quick_abort_min 32 KB
quick_abort_max 32 KB
quick_abort_pct 95
negative_ttl 3 minutes
positive_dns_ttl 6 hours
pipeline_prefetch on
acl Media urlpath_regex -i \.arj?$ \.au?$ \.asf?$ \.aif?$ \.avi?$ \.bz2?$ \.bin?$ \.cab?$ \.exe?$ \.iso?$ \.msi?$ \.mp3?$ \.mpg?$ \.mpe?$ \.mpeg?$ \.mp2?$ \.mov?$ \.qt?$ \.raw?$ \.ram?$ \.ra?$ \.rar?$ \.rm?$ \.rpm?$ \.tar?$ \.tar.gz?$ \.tgz?$ \.wmv?$ \.wma?$ \.wav?$ \.zip?$ \.mmf?$ \.sis?$ \.midi?$ \.3gp?$ \.psf
?$
delay_pools 1
delay_class 1 2
delay_parameters 1 -1/-1 10000/3000000 5000/50000000 3000/10000000 1000/15000000
delay_access 1 allow Media
#
acl snmpkey snmp_community qazxsw
#
snmp_port 3401
#
snmp_access allow snmpkey localhost
#
snmp_access deny all
http_port 3128
cache_mem 512 MB
dead_peer_timeout 30 seconds
hierarchy_stoplist cgi-bin
?
acl QUERY urlpath_regex cgi-bin
\?
no_cache deny QUERY
maximum_object_size 32000 KB
maximum_object_size_in_memory 64 KB
minimum_object_size 0 KB
cache_replacement_policy heap LFUDA
memory_replacement_policy heap LRU
cache_dir aufs /cache 30000 16 256
cache_access_log /var/log/squid/access.log
cache_store_log none
acl all src 0.0.0.0/0.0.0.0
acl localnet src 192.168.0.0/255.255.255.0
acl localip src x.x.x.x/255.255.255.255
acl users src x.x.x.x/255.255.255.x
#
acl x src x.x.x.0/255.255.255.0
#
acl x src x.x.x.x/255.255.255.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl ssl_ports port 873
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
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-mgmto
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl purge method PURGE
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny localip
http_access allow localnet
http_access allow users
#
http_access deny mori
#
http_access deny morilocal
http_access deny manager
http_access deny !Safe_ports
http_access allow purge localhost
http_access deny CONNECT !SSL_ports
http_access deny purge
http_access deny to_localhost
http_access allow localhost
http_access deny all
http_reply_access allow all
cache_effective_user squid
cache_effective_group squid
half_closed_clients on
cache_swap_high 100%
cache_swap_low 80%
visible_hostname localhost
cache_mgr
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
quick_abort_min 32 KB
quick_abort_max 32 KB
quick_abort_pct 95
negative_ttl 3 minutes
positive_dns_ttl 6 hours
pipeline_prefetch on
acl Media urlpath_regex -i \.arj?$ \.au?$ \.asf?$ \.aif?$ \.avi?$ \.bz2?$ \.bin?$ \.cab?$ \.exe?$ \.iso?$ \.msi?$ \.mp3?$ \.mpg?$ \.mpe?$ \.mpeg?$ \.mp2?$ \.mov?$ \.qt?$ \.raw?$ \.ram?$ \.ra?$ \.rar?$ \.rm?$ \.rpm?$ \.tar?$ \.tar.gz?$ \.tgz?$ \.wmv?$ \.wma?$ \.wav?$ \.zip?$ \.mmf?$ \.sis?$ \.midi?$ \.3gp?$ \.psf
?$
delay_pools 1
delay_class 1 2
delay_parameters 1 -1/-1 10000/3000000 5000/50000000 3000/10000000 1000/15000000
delay_access 1 allow Media
اينم ارسي
#
This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
#
want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables --flush --table nat
iptables --flush --table filter
iptables -t filter -A FORWARD -j ACCEPT
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 3128
#/
usr/local/squid/sbin/squid
لطف كنيد كمك كنيد