با کلی کلنجار رفتن بالاخره راه افتاد حالا کش داره کار میکنه دیتا ازش کش رد میشه ولی هیچ یک از تنظیمات و اعمال نمیکنه و هیچ چیزی رو کش نمی کنه توجه کنید
کد:
192.168.0.1 - - [08/Aug/2007:14:13:10 +0330] "GET http://www.sanjesh.org/ HTTP/1.1" 200 4732 TCP_MISS:DIRECT
192.168.0.1 - - [08/Aug/2007:14:13:10 +0330] "GET http://www.sanjesh.org/favicon.ico HTTP/1.1" 404 553 TCP_MISS:DIRECT
192.168.0.1 - - [08/Aug/2007:14:13:11 +0330] "GET http://81.91.149.3/Images/Page.css HTTP/1.1" 200 2606 TCP_MISS:DIRECT
192.168.0.1 - - [08/Aug/2007:14:13:11 +0330] "GET http://81.91.149.3/Images/News.css HTTP/1.1" 200 1344 TCP_MISS:DIRECT
192.168.0.1 - - [08/Aug/2007:14:13:12 +0330] "GET http://81.91.149.3/default.php HTTP/1.1" 200 32084 TCP_MISS:DIRECT
192.168.0.1 - - [08/Aug/2007:14:13:12 +0330] "GET http://81.91.149.3/Images/Img_01.jpg HTTP/1.1" 200 3183 TCP_MISS:DIRECT
192.168.0.1 - - [08/Aug/2007:14:13:13 +0330] "GET http://81.91.149.3/Images/T2_04.jpg HTTP/1.1" 200 14203 TCP_MISS:DIRECT
192.168.0.1 - - [08/Aug/2007:14:13:14 +0330] "GET http://81.91.149.3/Images/T1_01.jpg HTTP/1.1" 200 14403 TCP_MISS:DIRECT
192.168.0.1 - - [08/Aug/2007:14:13:14 +0330] "GET http://81.91.149.3/Images/Img_03.jpg HTTP/1.1" 200 14850 TCP_MISS:DIRECT
192.168.0.1 - - [08/Aug/2007:14:13:15 +0330] "GET http://81.91.149.3/Images/T2_03.jpg HTTP/1.1" 200 14414 TCP_MISS:DIRECT
192.168.0.1 - - [08/Aug/2007:14:13:16 +0330] "GET http://81.91.149.3/Images/T1_02.jpg HTTP/1.1" 200 14195 TCP_MISS:DIRECT
192.168.0.1 - - [08/Aug/2007:14:13:16 +0330] "GET http://81.91.149.3/Images/T1_07.jpg HTTP/1.1" 200 13486 TCP_MISS:DIRECT
192.168.0.1 - - [08/Aug/2007:14:13:16 +0330] "GET http://81.91.149.3/NewsImg/Peyk_534.jpg HTTP/1.1" 200 25818 TCP_MISS:DIRECT
192.168.0.1 - - [08/Aug/2007:14:13:17 +0330] "GET http://81.91.149.3/favicon.ico HTTP/1.1" 404 1572 TCP_MISS:DIRECT
192.168.0.1 - - [08/Aug/2007:14:15:48 +0330] "GET http://81.91.149.3/favicon.ico HTTP/1.1" 404 4316 TCP_NEGATIVE_HIT:NONE
192.168.0.1 - - [08/Aug/2007:14:15:56 +0330] "GET http://81.91.149.3/Sarasari/1386/860508_02.php HTTP/1.1" 200 18679 TCP_MISS:DIRECT
همش مستقیمه اینم از فایل کانفیگم حتی برای تست یه چندتا سایت رو زدم که بلاک کنه که اون کارم نمیکنه
کد:
# Enable Trasparent Proxy In Squid 2.5.x Stable
#http_port 3128
#httpd_accel_host virtual
#httpd_accel_port 80
httpd_accel_with_proxy on
#httpd_accel_uses_host_header on
#acl our_networks src 192.168.0.1/24
# Enable Transparent Proxy In Squid 2.6.x Stable
http_port 192.168.0.1:3128 transparent
# Physical Memory Usage :>> memory ro kam bezar ta ba speed bala cache kone !
cache_mem 64 MB
# cache_dir diskd /usr/local/squid/cache 15360 16 256 Q1=72 Q2=64
#Or
#cache_dir ufs /usr/local/squid/cache 15360 16 256
#Dont want to log anything
#cache_access_log /dev/null
#cache_store_log none
#cache_log /dev/null
# Want To Log AnyThing
#cache dir
cache_dir aufs /var/spool/squid/ 200 16 256
# Or
#cache_dir diskd /var/spool/squid 3000 16 256 Q1=72 Q2=64
#coredump_dir /var/spool/squid
# cache logfile
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
cache_swap_log /var/log/squid/swap.log
# The Of Who Works With Squid ;;>> Better Be An Null User !!
cache_effective_user squid
cache_effective_group squid
# Ftp
ftp_user Info@Squid-Cache.org
refresh_pattern ^ftp: 1440 40% 10080
refresh_pattern ^gopher: 1440 20% 1440
refresh_pattern . 320 40% 43200
# Aborts
quick_abort_min 64 KB
quick_abort_max 512 KB
quick_abort_pct 70%
# More Commands
negative_ttl 5 minutes
connect_timeout 2 minutes
read_timeout 15 minutes
request_timeout 30 seconds
shutdown_lifetime 10 seconds
half_closed_clients off
cache_swap_high 100%
cache_swap_low 80%
shutdown_lifetime 3 seconds
# Authentication
#auth_param basic children 5
#auth_param basic realm Squid proxy-caching web server
#auth_param basic credentialsttl 2 hours
#authenticate_ttl 1 hour
#authenticate_ip_ttl 1 second
#request_header_max_size 7 KB
#client_lifetime 14 hours
# Listen ports
http_port 3128
icp_port 3130
# Cache defaults
cache_mgr ehsan310@hotmail.com
ftp_user ehsan310@hotmail.com
visible_hostname Cache
# More Rotates
logfile_rotate 3
forwarded_for on
emulate_httpd_log on
log_fqdn on
# Cache replacement policy
cache_replacement_policy GDSF
# Access List With Two Land In One
acl Manager proto cache_object
acl all src 192.168.0.1-192.168.0.200
http_reply_access allow all
http_reply_access allow Manager all
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl mydomain dstdomain .www.google.com .squid.cache.org .72.14.207.99
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 20 # Dftp
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-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 3000 # MAIL
acl CONNECT method CONNECT
#Http Access
http_access allow Manager all
http_access allow all
#http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny all
#Icp Access
icp_access allow localhost
icp_access deny all
#Avoid caching cgi scripts
acl QUERY urlpath_regex cgi-bin
no_cache deny QUERY
#controle pahnaye band
acl magic_words1 url_regex -i 192.168
acl magic_words2 url_regex -i ftp .exe .mp3 .vqf .tar.gz .gz .rpm .zip .rar .avi .mpeg .mpe .mpg .qt .ram .rm .iso .raw .wav .mov
# Delay Pool
delay_pools 2
#B.W Controlling
delay_class 1 2
delay_parameters 1 128000/128000 12500/128000
delay_access 1 allow magic_words2
delay_class 2 2
delay_parameters 2 -1/-1 -1/-1
delay_access 2 allow magic_words1
#Cancel download if file is bigger than 10MB
#reply_body_max_size 1024 KB
#snmp stuff
acl snmppublic snmp_community public
snmp_access allow snmppublic localhost
snmp_access deny all
# Cache Peer
#cache_peer <proxy> parent 3128 3130 proxy-only
#cache_peer parent.foo.net parent 3128 3130 proxy-only
#cache_peer sib1.foo.net sibling 3128 3130 proxy-only
#cache_peer sib2.foo.net sibling 3128 3130 proxy-only
#icp_access allow lan
#icp_access deny all
# Microsoft Update Refresh Time
refresh_pattern http://*.windowsupdate.microsoft.com/ 0 80% 20160 reload-into-ims
refresh_pattern http://office.microsoft.com/ 0 80% 20160 reload-into-ims
refresh_pattern http://windowsupdate.microsoft.com/ 0 80% 20160 reload-into-ims
refresh_pattern http://wxpsp2.microsoft.com/ 0 80% 20160 reload-into-ims
refresh_pattern http://xpsp1.microsoft.com/ 0 80% 20160 reload-into-ims
refresh_pattern http://w2ksp4.microsoft.com/ 0 80% 20160 reload-into-ims
refresh_pattern http://download.microsoft.com/ 0 80% 20160 reload-into-ims
refresh_pattern http://download.macromedia.com/ 0 80% 20160 reload-into-ims
refresh_pattern ftp://ftp.nai.com/ 0 80% 20160 reload-into-ims
refresh_pattern http://ftp.software.ibm.com/ 0 80% 20160 reload-into-ims