Hey Ahmed,
You can use reload-into-ms, most other squid refresh patterns you have used do more harm than benefits,
something like,
refresh_pattern -i appldnld\.apple\.com 43200 100% 43200 reload-into-ims
would work. I am not sure about the regex you have used, i thought i had different.
On Fri, Sep 23, 2016 at 7:02 PM, --Ahmad-- <ahmed.zaeem@xxxxxxxxxxxx> wrote:
hi foks .i need to know what wrong i have in apple caching updates .1st of all the access.log files as below :1474636714.291 89 192.168.0.11 TCP_MISS/206 9501 GET http://swcdn.apple.com/content/downloads/49/62/031- - ORIGINAL_DST/17.253.37.202 application/octet-stream1878/ hfuvnhh956akbythuxg2im9pdnm3c2 63sf/BookKitDelta.pkg 1474636777.755 95 192.168.0.11 TCP_MISS/206 9501 GET http://swcdn.apple.com/content/downloads/49/62/031- - ORIGINAL_DST/17.253.37.202 application/octet-stream1878/ hfuvnhh956akbythuxg2im9pdnm3c2 63sf/BookKitDelta.pkg 1474636841.194 99 192.168.0.11 TCP_MISS/206 9501 GET http://swcdn.apple.com/content/downloads/49/62/031- - ORIGINAL_DST/17.253.37.202 application/octet-stream1878/ hfuvnhh956akbythuxg2im9pdnm3c2 63sf/BookKitDelta.pkg 1474636934.576 81 192.168.0.11 TCP_MISS/200 2062 GET http://sr.symcd.com/MFYwVKADAgEAME0wSzBJMAkGBSsOAw - ORIGINAL_DST/2.22.139.27 application/ocsp-responseIaBQAEFHQkFGcGn/ XgmD9ePhproGUqVBV1BBQBWavn3ToL WaZkY9bPIAdX1ZHnagIQEyA4ubHXyr HK2FbDJD3q1A== ==========not sure exactly what i need to modify in the ACLS .===========squid.conf :acl localnet src 10.0.0.0/8 # RFC1918 possible internal networkacl localnet src 172.16.0.0/12 # RFC1918 possible internal networkacl localnet src 192.168.0.0/16 # RFC1918 possible internal networkacl localnet src fc00::/7 # RFC 4193 local private network rangeacl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines
acl SSL_ports port 443acl Safe_ports port 80 # httpacl Safe_ports port 21 # ftpacl Safe_ports port 443 # httpsacl Safe_ports port 70 # gopheracl Safe_ports port 210 # waisacl Safe_ports port 1025-65535 # unregistered portsacl Safe_ports port 280 # http-mgmtacl Safe_ports port 488 # gss-httpacl Safe_ports port 591 # filemakeracl Safe_ports port 777 # multiling httpacl CONNECT method CONNECT
http_access allow localnethttp_access allow localhost
# And finally deny all other access to this proxyhttp_access deny all
http_port 3128http_port 3129 intercept
cache_dir ufs /var/cache/squid1 10000 16 256
maximum_object_size 6000 MBrange_offset_limit -1quick_abort_min -1 KB##################acl updatesites dstdom_regex "/etc/squid/updatesites.txt"cache allow updatesitescache deny all############################cache_store_log /var/log/squid/store.logaccess_log daemon:/var/log/squid/access.log squid cache_log /var/log/squid/cache.log
coredump_dir /var/cache/squid
store_id_program /lib/squid/storeid_file_rewrite /etc/squid/storeid_rewrite. conf store_id_children 10 startup=3 idle=1 concurrency=0############################################ refresh_pattern -i appldnld\.apple\.com 43200 100% 43200 ignore-reload ignore-no-store override-expire override-lastmodrefresh_pattern -i \.apple\.com 43200 100% 43200 ignore-reload ignore-no-store override-expire override-lastmodrefresh_pattern -i .apple\.com 43200 100% 43200 ignore-reload ignore-no-store override-expire override-lastmod################################################### cat /etc/squid/updatesites.txt([^.]+.|)apple.com([^.]+\.)?(download|(windows)?update)\.(microsoft\.)?com ([^.]+\.)?adobe.com([^.]+\.)?java.com([^.]+\.)?sun.com([^.]+\.)?oracle.com([^.]+\.)?apple.com([^.]+\.)?apple.com([^.]+\.)?ubuntu.com([^.]+\.)?steampowered.com([^.]+\.)?google.com######################################### cat /etc/squid/storeid_rewrite.conf ^http:\/\/[^\.]+\.phobos\.apple\.com\/(.*) http://appupdates.apple.squid. internal/$1 ^http:\/\/[^\.]+\.cs\.steampowered\.com\/(.*) http: //steamupdates.squid.internal/ $1
_______________________________________________
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users
_______________________________________________ squid-users mailing list squid-users@xxxxxxxxxxxxxxxxxxxxx http://lists.squid-cache.org/listinfo/squid-users