با سلام
چقدر سخت هست انتخاب 1 موضوع با رعایت مقررات
به هر حال از اساتید اسکوئید کمی راهنمایی میخواستم
به این فایل اسکوئید یک نگاه کنید .مشکلاتش را در زیر شرح میدم .
کد:
acl filternet dstdomain au.download.windowsupdate.com
http_access deny filternet
### Core Configuration
http_port 3128 transparent
cache_mem 1024 MB
maximum_object_size 20 MB
maximum_object_size_in_memory 128 KB
minimum_object_size 0 KB
visible_hostname Ghobar
cache_mgr Ghobar
#negative_ttl 4 minutes
#positive_dns_ttl 12 hours
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
### Refresh Patterns
refresh_pattern http://.*\.windowsupdate\.microsoft\.com/ 0 80% 20160
refresh_pattern http://office\.microsoft\.com/ 0 80% 20160
refresh_pattern http://windowsupdate\.microsoft\.com/ 0 80% 20160
refresh_pattern http://w?xpsp[0-9]\.microsoft\.com/ 0 80% 20160
refresh_pattern http://w2ksp[0-9]\.microsoft\.com/ 0 80% 20160
refresh_pattern http://download\.microsoft\.com/ 0 80% 20160
refresh_pattern http://download\.macromedia\.com/ 0 80% 20160
refresh_pattern ftp://ftp\.nai\.com/ 0 80% 20160
refresh_pattern http://ftp\.software\.ibm\.com/ 0 80% 20160
refresh_pattern -i cgi-bin 1 20% 2
refresh_pattern -i \.asp$ 1 20% 2
refresh_pattern -i \.acgi$ 1 20% 2
refresh_pattern -i \.pl$ 1 20% 2
refresh_pattern -i \.cgi$ 1 20% 2
refresh_pattern -i \.shtml$ 1 20% 2
refresh_pattern -i \.php3$ 1 20% 2
refresh_pattern -i \? 1 20% 2
refresh_pattern -i \.aiff$ 10080 90% 43200
refresh_pattern -i \.arj$ 10080 90% 43200
refresh_pattern -i \.c$ 10080 90% 43200
refresh_pattern -i \.cpt$ 10080 90% 43200
refresh_pattern -i \.dir$ 10080 90% 43200
refresh_pattern -i \.dxr$ 10080 90% 43200
refresh_pattern -i \.hqx$ 10080 90% 43200
refresh_pattern -i \.js$ 10080 90% 43200
refresh_pattern -i \.lha$ 10080 90% 43200
refresh_pattern -i \.lzh$ 10080 90% 43200
refresh_pattern -i \.midi$ 10080 90% 43200
refresh_pattern -i \.movie$ 10080 90% 43200
refresh_pattern -i \.mp2$ 10080 90% 43200
refresh_pattern -i \.mpe$ 10080 90% 43200
refresh_pattern -i \.mpeg$ 10080 90% 43200
refresh_pattern -i \.mpga$ 10080 90% 43200
refresh_pattern -i \.pl$ 10080 90% 43200
refresh_pattern -i \.ppt$ 10080 90% 43200
refresh_pattern -i \.ps$ 10080 90% 43200
refresh_pattern -i \.qt$ 10080 90% 43200
refresh_pattern -i \.qtm$ 10080 90% 43200
refresh_pattern -i \.ras$ 10080 90% 43200
refresh_pattern -i \.sea$ 10080 90% 43200
refresh_pattern -i \.sit$ 10080 90% 43200
refresh_pattern -i \.tif$ 10080 90% 43200
refresh_pattern -i \.tiff$ 10080 90% 43200
refresh_pattern -i \.snd$ 10080 90% 43200
refresh_pattern -i \.wrl$ 10080 90% 43200
refresh_pattern -i \.css$ 10080 90% 43200
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 50% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 50% 1440
refresh_pattern . 1 60% 4320 override-expire override-lastmod
### Access Control List
#acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80
acl Safe_ports port 21
acl Safe_ports port 443 563
acl Safe_ports port 70
acl Safe_ports port 210
acl Safe_ports port 1025-65535
acl Safe_ports port 280
acl Safe_ports port 488
acl Safe_ports port 591
acl Safe_ports port 777
acl CONNECT method CONNECT
acl Purge method PURGE
http_access allow localhost Purge
http_access deny PURGE
always_direct allow all
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny to_localhost
acl locallan src 192.168.20.0/24
http_access allow localhost
http_access allow locallan
http_access deny all
http_reply_access allow all
cache_dir aufs /cache/1 25600 64 256
cache_dir aufs /cache/2 25600 64 256
cache_dir aufs /cache/3 25600 64 256
cache_dir aufs /cache/4 25600 64 256
مشکل در اینجاست که این فایل کانفیگ رو روی 1 پی سی با مشخصات core i5 با رم 4 جی بی و هاردیسک 500 جی بی روی اوبونتو 13.4 و اسکوئید 3.1 اگه اشتباه نکنم نصب کردم اما خیلی روی اینترنت تاثیر منفی گذاشته به جای اینکه در روند سرعت کمک کنه بدتر روی اون تاثر گذاشته و صفحات اینترنت بسیار به سختی لود میشن اما وقتی کشی رو دور میزنم به این صورت نیست و اینترنت بسیار به خوبی جواب میده .
اما جالبی اینجاست که این لوگ اسکوئید رو ببینید .
کد:
TCP_HIT/200 4680 GET http://www.ubuntu.com/ - NONE/- text/html
TCP_HIT/200 4680 GET http://www.ubuntu.com/ - NONE/- text/html
TCP_HIT/200 3692 GET http://assets.ubuntu.com/sites/ubuntu/latest/u/img/logos/logo-ubuntu-orange.png - NONE/- image/png
TCP_HIT/200 21416 GET http://assets.ubuntu.com/sites/ubuntu/latest/u/js/plugins/yui-min.js - NONE/- application/javascript
TCP_HIT/200 2302 GET http://assets.ubuntu.com/sites/ubuntu/latest/u/js/core.js - NONE/- application/javascript
TCP_REFRESH_UNMODIFIED/200 19294 GET http://assets.ubuntu.com/sites/ubuntu/latest/u/css/styles.css - DIRECT/91.189.95.69 text/css
TCP_REFRESH_UNMODIFIED/200 858 GET http://assets.ubuntu.com/sites/ubuntu/latest/u/css/core-print.css - DIRECT/91.189.95.69 text/css
TCP_REFRESH_UNMODIFIED/200 9793 GET http://assets.ubuntu.com/sites/guidelines/css/latest/ubuntu-styles.css - DIRECT/91.189.95.69 text/css
TCP_IMS_HIT/304 280 GET http://platform.twitter.com/widgets.js - NONE/- application/javascript
TCP_MISS/200 2470 GET http://crl.geotrust.com/crls/secureca.crl - DIRECT/23.10.21.163 application/pkix-crl
TCP_MISS/200 2470 GET http://crl.geotrust.com/crls/secureca.crl - DIRECT/23.10.21.163 application/pkix-crl
TCP_HIT/200 2114 GET http://assets.ubuntu.com/sites/ubuntu/latest/u/img/logo.png - NONE/- image/png
TCP_HIT/200 3522 GET http://assets.ubuntu.com/sites/ubuntu/latest/u/img/patterns/body_bg.jpg - NONE/- image/jpeg
TCP_HIT/200 46440 GET http://assets.ubuntu.com/sites/ubuntu/latest/u/img/icons/icon-search.png - NONE/- image/png
TCP_HIT/200 2745 GET http://assets.ubuntu.com/sites/ubuntu/latest/u/img/patterns/grey-textured-background.jpg - NONE/- image/jpeg
TCP_HIT/200 2002 GET http://assets.ubuntu.com/sites/ubuntu/latest/u/img/logos/logo-ubuntu-grey.png - NONE/- image/png
TCP_HIT/200 15410 GET http://assets.ubuntu.com/sites/ubuntu/latest/u/img/homepage/homepage-12.10-launch-ubuntu.png - NONE/- image/png
TCP_HIT/200 24359 GET http://platform.twitter.com/widgets/tweet_button.1368146021.html - NONE/- text/html
TCP_MISS/200 50180 GET http://www.gstatic.com/GoogleInternetAuthority/GoogleInternetAuthority.crl - DIRECT/173.194.35.111 application/pkix-crl
TCP_MISS/200 50180 GET http://www.gstatic.com/GoogleInternetAuthority/GoogleInternetAuthority.crl - DIRECT/173.194.35.111 application/pkix-crl
TCP_HIT/200 16271 GET http://www.google-analytics.com/ga.js - NONE/- text/javascript
TCP_MISS/200 1605 GET http://yui.yahooapis.com/combo? - DIRECT/125.56.199.139 application/javascript
TCP_HIT/200 4680 GET http://www.ubuntu.com/ - NONE/- text/html
TCP_MISS/200 542 GET http://cdn.api.twitter.com/1/urls/count.json? - DIRECT/23.10.17.224 application/javascript
TCP_MISS/200 1753 GET http://yui.yahooapis.com/combo? - DIRECT/125.56.199.139 application/javascript
TCP_HIT/200 1099 GET http://assets.ubuntu.com/sites/ubuntu/latest/u/img/pictograms/pictogram-plan-64.png - NONE/- image/png
اگر دقت کنید بشیتر درخواستها از سرور جواب داده میشه اما این تاخیر در جواب گوئی رو من نفهمید
اگه میشه دوستان راهنمائی بفرمایندببینم میشکل از کجاست
و در آخر اینکه این سرور قراره به بیش از 40 یوز اینترنت بده و اینترنتی که به این سرور وصل میشه 4MB CIR هست .
پبشاپیش تشکر از راهنمایی شما دوستان
موضوعات مشابه: