Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

#1  2012-11-18 14:12:51

  web01 - Nowy użytkownik

web01
Nowy użytkownik
Zarejestrowany: 2012-11-18

squid3 - co robie źle

Cześć, tematów o squdzie na forum jest od groma, niestety ani jeden z nich nie rozwiązałem mojego problemu.
Jeśli ktoś z was znajdzie chwile to prosze przyjrzyjcie się mojemu configowi i powiedzcie co jest źle.

[b]squid.conf[/b]

Kod:

root@host:/etc/squid3# grep -v "^#" /etc/squid3/squid.conf | sed -e '/^$/d'
acl manager proto cache_object
acl localhost src 127.0.0.1/32 ::1
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
acl localnet src mojasiec/24
acl SSL_ports port 443
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 allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localnet
http_access allow localhost
http_access deny all
http_port 3128 transparent
hierarchy_stoplist cgi-bin ?
cache_mem 64 MB
maximum_object_size_in_memory 2 MB
memory_replacement_policy lru
cache_replacement_policy lru
cache_dir ufs /var/spool/squid3 512 16 256
store_dir_select_algorithm least-load
minimum_object_size 0 KB
maximum_object_size 2 MB
cache_swap_low 90
cache_swap_high 95
access_log /var/log/squid3/access.log squid
cache_store_log /var/log/squid3/store.log
cache_log /var/log/squid3/cache.log
coredump_dir /var/spool/squid3
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern -i (/cgi-bin/|\?) 0     0%      0
refresh_pattern .               0       20%     4320
shutdown_lifetime 0 seconds
cache_effective_user proxy
cache_effective_group proxy
httpd_suppress_version_string off
visible_hostname moj_host
forwarded_for on

[b]iptables[/b]

Kod:

/sbin/iptables -t nat -A PREROUTING -i eth1 -p tcp -s mojasiec/24 --dport 80 -j REDIRECT --to-port 3128

[b]teraz restet  iptables i: [/b]

Kod:

root@host:~# chmod 600 /etc/squid3/squid.conf 

root@host:~# squid3 -z -f /etc/squid3/squid.conf 
2012/11/19 14:02:06| Creating Swap Directories
2012/11/19 14:02:06| /var/spool/squid3 exists
2012/11/19 14:02:06| Making directories in /var/spool/squid3/00
2012/11/19 14:02:06| Making directories in /var/spool/squid3/01
2012/11/19 14:02:06| Making directories in /var/spool/squid3/02
2012/11/19 14:02:06| Making directories in /var/spool/squid3/03
2012/11/19 14:02:06| Making directories in /var/spool/squid3/04
2012/11/19 14:02:06| Making directories in /var/spool/squid3/05
2012/11/19 14:02:06| Making directories in /var/spool/squid3/06
2012/11/19 14:02:06| Making directories in /var/spool/squid3/07
2012/11/19 14:02:06| Making directories in /var/spool/squid3/08
2012/11/19 14:02:06| Making directories in /var/spool/squid3/09
2012/11/19 14:02:06| Making directories in /var/spool/squid3/0A
2012/11/19 14:02:06| Making directories in /var/spool/squid3/0B
2012/11/19 14:02:06| Making directories in /var/spool/squid3/0C
2012/11/19 14:02:06| Making directories in /var/spool/squid3/0D
2012/11/19 14:02:06| Making directories in /var/spool/squid3/0E
2012/11/19 14:02:06| Making directories in /var/spool/squid3/0F

root@host:~# ls -dl /var/spool/squid3/
drwxr-xr-x 18 proxy proxy 464 11-19 14:02 /var/spool/squid3/

root@host:~# /etc/init.d/squid3 start
Starting Squid HTTP Proxy 3.x: squid3.

Niestety po takich operacjach
1) zaciągnięcie jakiejkolwiek strony trwa dłuuugo
2) w pliakch access.log, store.log widać tylko coś takiego:

[b]acess.log[/b]

Kod:

1353330559.360     61 moj_host TCP_MISS/200 41111 GET http://reklama.onet.pl/bannery/o/onet/20121114/Pinka_300x250_tematyczny2.swf - DIRECT/213.180.150.46 application/x-shockwave-flash
1353330560.351  11529 moj_host TCP_REFRESH_UNMODIFIED/304 505 GET http://hstpl.tradedoubler.com/file-1/20649/flash/flash_embed4.js - DIRECT/174.35.6.27 -
1353330560.489    105 moj_host TCP_MISS/200 23012 GET http://ads.salesmore.pl/ads/190948/102012/gb_hipo_suwaki_430x150.swf - DIRECT/217.73.31.69 application/x-shockwave-flash
1353330560.723     18 moj_host TCP_REFRESH_UNMODIFIED/304 529 GET http://ocdn.eu/images/pulscms/OGE7MDQsMCwyLDFlMCwxNDA7MDYsNjksNDY_/0bd6a595a481d7b5b22802f8e3f11ee6.jpg - DIRECT/213.180.141.142 -
1353330560.724     18 moj_host TCP_REFRESH_UNMODIFIED/304 529 GET http://ocdn.eu/images/pulscms/MmM7MDQsMCxkMCwyOTUsMTEwOzA2LGZhLDY4/cded676755144a32ee74f6947a26bfd2.jpg - DIRECT/213.180.141.142 -
1353330560.725     18 moj_host TCP_REFRESH_UNMODIFIED/304 529 GET http://ocdn.eu/images/pulscms/ZjY7MDQsMCw1NSwxNDYsODY7MDYsZmEsNjg_/36cf3fca2a40f5e3f9d6029572cb9b6d.jpg - DIRECT/213.180.141.142 -
1353330560.726     18 moj_host TCP_REFRESH_UNMODIFIED/304 529 GET http://ocdn.eu/images/pulscms/ZTI7MDQsMCwxMGUsMzFmLDE0OTswNixmYSw2OA__/1441df0fdc8a340994609c318dfc976b.jpg - DIRECT/213.180.141.142 -
1353330560.729     17 moj_host TCP_REFRESH_UNMODIFIED/304 529 GET http://ocdn.eu/images/pulscms/NWE7MDQsMSxhOCwxZjMsY2Q7MDYsZmEsNjg_/f21ec6251579175d13c68490669c5776.jpg - DIRECT/213.180.141.142 -
1353330560.730     18 moj_host TCP_REFRESH_UNMODIFIED/304 529 GET http://ocdn.eu/images/pulscms/OGM7MDQsMCwzZCwxZTksYzk7MDYsZmEsNjg_/9e541ea21b34957b075c08487f752805.jpg - DIRECT/213.180.141.142 -
1353330560.731     18 moj_host TCP_REFRESH_UNMODIFIED/304 490 GET http://m.ocdn.eu/_m/74f05989a4a93617609ece6afc7d24b4,63,29,0-11-367-137-0.jpg - DIRECT/213.180.141.145 -
1353330560.732     17 moj_host TCP_REFRESH_UNMODIFIED/304 489 GET http://m.ocdn.eu/_m/48b97541af64dba8ad4b5db4d9f0d434,63,29,0-24-375-140-0.jpg - DIRECT/213.180.141.145 -
1353330560.732      9 moj_host TCP_REFRESH_UNMODIFIED/304 529 GET http://ocdn.eu/images/pulscms/ZGQ7MDQsMiw4NywxYmIsYjY7MDYsZmEsNjg_/231edd2889281de8bbb6bd82615395af.jpg - DIRECT/213.180.141.142 -
1353330560.777     14 moj_host TCP_MISS/200 5055 GET http://www.onet.pl/_cdf/client.js - DIRECT/213.180.141.140 text/javascript
1353330560.778     31 moj_host TCP_REFRESH_UNMODIFIED/304 529 GET http://ocdn.eu/resources/mainpagev2templateengine/main-page-v2.template-engine/resource/none/9/nsg-bottom.min.js - DIRECT/213.180.141.142 -
1353330560.875     65 moj_host TCP_MISS/304 289 GET http://www.google-analytics.com/ga.js - DIRECT/74.125.136.113 -
1353330560.939     33 moj_host TCP_MISS/200 530 GET http://www.google-analytics.com/__utm.gif? - DIRECT/74.125.136.113 image/gif
1353330560.968     30 moj_host TCP_MISS/200 425 POST http://www.onet.pl/_cdf/render - DIRECT/213.180.141.140 text/html
1353330561.359      9 moj_host TCP_REFRESH_UNMODIFIED/304 529 GET http://ocdn.eu/images/pulscms/NWU7MDQsMCwwLDMyMCwyMTU7MDYsNjksNDY_/9deb17fcb150b844d3333f945ff6702a.jpg - DIRECT/213.180.141.142 -
1353330561.382     19 moj_host TCP_MISS/200 1140 GET http://www.onet.pl/region_slask.html - DIRECT/213.180.141.140 text/html
1353330561.523      9 moj_host TCP_REFRESH_UNMODIFIED/304 489 GET http://m.ocdn.eu/_m/66df5f233c313101833cb1e449faa4a2,33,1.jpg - DIRECT/213.180.141.145 -
1353330561.524      9 moj_host TCP_REFRESH_UNMODIFIED/304 490 GET http://m.ocdn.eu/_m/8317eabab4f6932aa72f8ef00627bc2d,33,1.jpg - DIRECT/213.180.141.145 -
1353330561.532     17 moj_host TCP_REFRESH_UNMODIFIED/304 489 GET http://m.ocdn.eu/_m/00a021cfda8cce3538a8c735e4eb363a,33,1.jpg - DIRECT/213.180.141.145 -
1353330561.533     18 moj_host TCP_REFRESH_UNMODIFIED/304 490 GET http://m.ocdn.eu/_m/fed775775ae2eeaab711314307b98898,33,1.jpg - DIRECT/213.180.141.145 -
1353330561.533     10 moj_host TCP_REFRESH_UNMODIFIED/304 489 GET http://m.ocdn.eu/_m/f4ab63830734fcb03194ab3a25d84b3a,33,1.jpg - DIRECT/213.180.141.145 -
1353330561.534     18 moj_host TCP_REFRESH_UNMODIFIED/304 490 GET http://m.ocdn.eu/_m/8acb40e03cd7688727523a6604da6000,33,1.jpg - DIRECT/213.180.141.145 -
1353330561.535     19 moj_host TCP_REFRESH_UNMODIFIED/304 490 GET http://m.ocdn.eu/_m/5d4c206b56debfaf366b7ee3f3084d4e,33,1.jpg - DIRECT/213.180.141.145 -
1353330561.535     10 moj_host TCP_REFRESH_UNMODIFIED/304 490 GET http://m.ocdn.eu/_m/963c66d52c3fa1e05e73c367cdeb8190,33,1.jpg - DIRECT/213.180.141.145 -
1353330561.542      9 moj_host TCP_REFRESH_UNMODIFIED/304 489 GET http://m.ocdn.eu/_m/32cfcad047d9a10db52a3a6246890a13,33,1.jpg - DIRECT/213.180.141.145 -
1353330561.543      9 moj_host TCP_REFRESH_UNMODIFIED/304 490 GET http://m.ocdn.eu/_m/b4be49e1a998b234e34838f36bcb8b3b,33,1.jpg - DIRECT/213.180.141.145 -
1353330567.015     22 moj_host TCP_MISS/200 471 GET http://kropka.onet.pl/_s/kropka/1? - DIRECT/213.180.148.146 image/gif
1353330567.059   5568 moj_host TCP_MISS/000 0 GET http://googleads.g.doubleclick.net/pagead/ads? - DIRECT/googleads.g.doubleclick.net -
1353330567.066   5161 moj_host TCP_MISS/000 0 GET http://googleads.g.doubleclick.net/pagead/ads? - DIRECT/googleads.g.doubleclick.net -
1353330567.067   6257 moj_host TCP_MISS/000 0 GET http://googleads.g.doubleclick.net/pagead/viewthroughconversion/972452827/? - DIRECT/googleads.g.doubleclick.net -
1353330567.095     25 moj_host TCP_MISS/200 471 GET http://kropka.onet.pl/_s/kropka/1? - DIRECT/213.180.148.146 image/gif
1353330570.289     19 moj_host TCP_MISS/200 4091 GET http://ocdn.eu/images/pulscms/ZjM7MDQsMCwwLDEwYjAsYjIwOzA2LDY5LDQ2/979d7e47192ca32850b107099795a1b1.jpg - DIRECT/213.180.141.142 image/jpeg
1353330570.347     12 moj_host TCP_MISS/200 3381 GET http://ocdn.eu/images/pulscms/MTQ7MDQsMCxmLDFjMiwxMmM7MDYsNjksNDY_/832d8f5f790d511418fc608c8f0ff512.jpg - DIRECT/213.180.141.142 image/jpeg

(praktycznie ani jednego TCP_HIT :( )


[b]store.log[/b]

Kod:

1353330578.613 RELEASE -1 FFFFFFFF 2C826EBDFAEA8981F061B6405B4C0795  200        -1        -1        -1 text/javascript 4729/4729 GET http://wiadomosci.onet.pl/_cdf/client.js
1353330590.308 RELEASE -1 FFFFFFFF 075D4077AB240BE07D3DC3BD750987B0  200 1353244116        -1 1321708116 text/javascript -1/201 GET http://api.zumi.pl/maps/api
1353330590.309 RELEASE -1 FFFFFFFF CB06CA49E9A2EB993A1A2B94201DB90F  200 1353243458        -1 1353247058 text/javascript 3257/3257 GET http://boksy.onet.pl/boxes/340,show_boxes.js?
1353330590.309 RELEASE -1 FFFFFFFF F00AEEDB0C8934948D438FE1660A81B7  200 1353243533        -1 1353247133 text/javascript 1953/1953 GET http://boksy.onet.pl/intext/340,show_ads.js?
1353330590.329 SWAPOUT 00 000000E8 ADA92988DD852EB37A4EE791F453B887  200 1353330590        -1 1353430590 x-squid-internal/vary -1/0 GET http://api.zumi.pl/maps/main.js?
1353330590.335 RELEASE -1 FFFFFFFF 7473B13F136B81EC645EE02190BD847A  200 1353244213        -1 1353247813 text/javascript 61158/61158 GET http://eurosport.onet.pl/talos.js
1353330590.347 SWAPOUT 00 000000EA F6E05E2A9971D86A87E7100BCE85CB3D  200 1353330590        -1 1353430590 x-squid-internal/vary -1/0 GET http://s7.addthis.com/js/250/addthis_widget.js
1353330590.348 SWAPOUT 00 000000EB 9A60693A01689F46D82D475B679C9D5A  200 1353244116 1352983509        -1 application/javascript 2643/2643 GET http://s7.addthis.com/js/250/addthis_widget.js
1353330590.363 SWAPOUT 00 000000E9 2AAAE2F7D0A100E1152BF87E382E1DCD  200 1353236395 1352727233 1353841195 application/x-javascript 47459/47459 GET http://api.zumi.pl/maps/main.js?
1353330590.443 SWAPOUT 00 000000EC EDB0C8D53CC8A14AF1B148FDB0E606B1  200 1353330590        -1 1353430590 x-squid-internal/vary -1/0 GET http://api.zumi.pl/maps/css/leaflet.css?
1353330590.443 SWAPOUT 00 000000ED 21E9AE7F0C7E52734F66DA47FAE07D9F  200 1353215814 1342518359 1353820614 text/css 1739/1739 GET http://api.zumi.pl/maps/css/leaflet.css?
1353330590.453 SWAPOUT 00 000000EE E900763B90F053AFD45A98011902F79B  200 1353330590        -1 1353430590 x-squid-internal/vary -1/0 GET http://api.zumi.pl/maps/css/zumi.api.css?
1353330590.454 SWAPOUT 00 000000EF D04C8977B9507ABADEC23155C88BAFFE  200 1353330590        -1 1353430590 x-squid-internal/vary -1/0 GET http://api.zumi.pl/maps/css/zumi.api.mobile.css?
1353330590.454 SWAPOUT 00 000000F0 8C197F56B88CF3DBD6DE4F15B08AD01D  200 1353026009 1347447203 1353630809 text/css 676/676 GET http://api.zumi.pl/maps/css/zumi.api.mobile.css?
1353330590.455 SWAPOUT 00 000000F1 307CED2194455948132EAA49016FFAB3  200 1353025908 1347447202 1353630708 text/css 3232/3232 GET http://api.zumi.pl/maps/css/zumi.api.css?
1353330590.504 SWAPOUT 00 000000F2 270D539AF2323C0F5AFFEC1D02793FA9  200 1353330590        -1 1353430590 x-squid-internal/vary -1/0 GET http://lib.onet.pl/mvp/_s/css/compiled/43244141112102,mvp.css
1353330590.504 SWAPOUT 00 000000F3 E1BB211D5DC33F4DF8C1B21FBE30748A  200 1353330590        -1 1353430590 x-squid-internal/vary -1/0 GET http://lib.onet.pl/mvp/_s/js/compiled/43244141112102,mvp-hsalf-thgilrevlis.min.js
1353330590.505 SWAPOUT 00 000000F4 070DAC0421DE1E739F2F8298BB0A1E89  200 1353244116 1352972510 1353578657 text/css -1/3309 GET http://lib.onet.pl/mvp/_s/css/compiled/43244141112102,mvp.css
1353330590.534 SWAPOUT 00 000000F5 FF6B1C25267F1149AB9C525518A07B0E  200 1353244116 1352972510 1353578848 application/x-javascript -1/101929 GET http://lib.onet.pl/mvp/_s/js/compiled/43244141112102,mvp-hsalf-thgilrevlis.min.js
1353330590.683 RELEASE -1 FFFFFFFF 162B0F28374BB6580493C1DCACE33D65  200 1353244117        -1 1353244117 image/gif 43/43 GET http://onet.hit.gemius.pl/_1353244117279/rexdot.gif?
1353330602.359 RELEASE -1 FFFFFFFF 1238376ACBDE60F1D8CB1EFA791D7702  200 1353244128        -1 1321711728 application/x-javascript -1/2591 GET http://csr.onet.pl/_s/csr-004/req=eJytld1ugkAQhd-FaxMFUVMTL1ZZcMMWGkTFqhdr-JGAaFEb26bvXiTSBh1NzXrFLCTzcc6czUy.hLe9l34IbWFAbNwhhmrOqsjCqGNPqG6OTQP3CJ5VHdtCHXFW7RJKj0-lKOyiGP9-OlVCRQjS9X6T9V6xMMmObLsNg0RoT4XDLmXZC9fz2T7eCfPvyn9.ZKBPjpA-ouoL0vCxNtCIdE3ngiiVkNvoIzsvWexvWOBl5WJ9SNh7eA8cotRLlKzpPQ1Vimzs9OhwQEa5FqRQYujiBcWP2U4so-IwiUROWBdTHWmmZSCQKMllcV4csWCdJowTi1Ws2xbR-jaIrbdKWM.3ol0aBsu7gnITCxssS1e4vDa.Dp.BhObQssef-1XIH6I.pRIMbVxRKvEGykKGQgwNppbnukhZ4oZJwIs0nRszbZxfz4cMtGDC7jZBJre1hc4aDBVhpTXe7CKdIkVHsL3Ns.SyKGZuxLgvzAl6xd8GCOU1uIDWYWgThNYfBJVhaAuEyg-KEqy0BQaJV2i-ahSTXlk1T5ebxl3H-aaZ.wD3hqIT/flash=1/pgid=201211181406350432100051/now=1353244117281/alias=wiadomosci_tylkowonecie_top,wiadomosci_tylkowonecie_left,wiadomosci_tylkowonecie_right/ubi=201211142010390348140041/CI=5305942/csr.js
1353330602.396 RELEASE -1 FFFFFFFF 1D579463F3662EF0B039CE8C2C5779D6  302 1353244128        -1 1353161260 text/html 0/0 GET http://kropka.onet.pl/_s/kropka/1?
1353330602.414 SWAPOUT 00 000000F6 67648E2117FD04EC9033E78225C287B9  200 1353244128 1352720479 1355836128 image/png 1664/1664 GET http://ocdn.eu/static/template-engine/MzI7MDA_/561b2b3e6bdfd84755badd6f3c7bd770/logo.png
1353330602.462 SWAPOUT 00 000000F7 6A007285C2903EE6ADC45AED7118C6E2  200 1353244128 1352720477 1355836128 image/png 2017/2017 GET http://ocdn.eu/static/template-engine/MzI7MDA_/561b2b3e6bdfd84755badd6f3c7bd770/socialMobile.png
1353330602.482 SWAPOUT 00 000000F8 8110F9E1ED5B054DAB4BB506E458ECF8  200 1353244128 1351682389 1355836128 image/gif 3873/3873 GET http://ocdn.eu/resources/wiadomoscitemplateengine/wiadomosci.template-engine/resource/none/0.41/wiadomosci___d__k_common_806073bbe06c398aab347f69af6b528b_spr_icons.gif
1353330602.501 SWAPOUT 00 000000F9 8F7F2A3402E94D373B9B7EE6CB56618D  200 1353244128 1351682449 1355836128 image/gif 21510/21510 GET http://ocdn.eu/resources/wiadomoscitemplateengine/wiadomosci.template-engine/resource/none/0.41/wiadomosci___d__k_common_d03f5347cba6a2ba4004bdee48e07037_spr_wide.gif
1353330602.572 SWAPOUT 00 000000FA 8BD079EC793C535138AE8EF1CFD15A3B  200 1353244128 1352301875 1353848928 application/x-shockwave-flash 40932/40932 GET http://m.csr.onet.pl/apps/330/Ad8294730St3Sz1348Sq103361771V0Id1/bioaron_double-billboard_750x200.swf
1353330602.573 RELEASE -1 FFFFFFFF 2C8AEACBDF63E9F3D42DB07AA21B7B91  302 1353244128        -1 1353161247 text/html 0/0 GET http://wiadomosci.onet.pl/_s/kropka/3?
1353330602.629 RELEASE -1 FFFFFFFF 1933750304D3ABB0E9E86A20671D202F  200 1353244255        -1 1353161363 image/gif 43/43 GET http://wiadomosci.onet.pl/_s/kropka/3?

[b]cache.log[/b]

Kod:

2012/11/19 14:02:06| Making directories in /var/spool/squid3/00
2012/11/19 14:02:06| Making directories in /var/spool/squid3/01
2012/11/19 14:02:06| Making directories in /var/spool/squid3/02
2012/11/19 14:02:06| Making directories in /var/spool/squid3/03
2012/11/19 14:02:06| Making directories in /var/spool/squid3/04
2012/11/19 14:02:06| Making directories in /var/spool/squid3/05
2012/11/19 14:02:06| Making directories in /var/spool/squid3/06
2012/11/19 14:02:06| Making directories in /var/spool/squid3/07
2012/11/19 14:02:06| Making directories in /var/spool/squid3/08
2012/11/19 14:02:06| Making directories in /var/spool/squid3/09
2012/11/19 14:02:06| Making directories in /var/spool/squid3/0A
2012/11/19 14:02:06| Making directories in /var/spool/squid3/0B
2012/11/19 14:02:06| Making directories in /var/spool/squid3/0C
2012/11/19 14:02:06| Making directories in /var/spool/squid3/0D
2012/11/19 14:02:06| Making directories in /var/spool/squid3/0E
2012/11/19 14:02:06| Making directories in /var/spool/squid3/0F
2012/11/19 14:02:24| Starting Squid Cache version 3.1.6 for x86_64-pc-linux-gnu...
2012/11/19 14:02:24| Process ID 4223
2012/11/19 14:02:24| With 65535 file descriptors available
2012/11/19 14:02:24| Initializing IP Cache...
2012/11/19 14:02:24| DNS Socket created at [::], FD 7
2012/11/19 14:02:24| DNS Socket created at 0.0.0.0, FD 8
2012/11/19 14:02:24| Adding domain [xyz] from /etc/resolv.conf
2012/11/19 14:02:24| Adding domain [xyz] from /etc/resolv.conf
2012/11/19 14:02:24| Adding domain [xyz]. from /etc/resolv.conf
2012/11/19 14:02:24| Adding nameserver [xyz] from /etc/resolv.conf
2012/11/19 14:02:24| Adding nameserver [xyz] from /etc/resolv.conf
2012/11/19 14:02:24| Adding nameserver [xyz] from /etc/resolv.conf
2012/11/19 14:02:24| Adding nameserver [xyz] from /etc/resolv.conf
2012/11/19 14:02:24| Unlinkd pipe opened on FD 13
2012/11/19 14:02:24| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2012/11/19 14:02:24| Swap maxSize 524288 + 65536 KB, estimated 45371 objects
2012/11/19 14:02:24| Target number of buckets: 2268
2012/11/19 14:02:24| Using 8192 Store buckets
2012/11/19 14:02:24| Max Mem  size: 65536 KB
2012/11/19 14:02:24| Max Swap size: 524288 KB
2012/11/19 14:02:24| Version 1 of swap file without LFS support detected... 
2012/11/19 14:02:24| Rebuilding storage in /var/spool/squid3 (CLEAN)
2012/11/19 14:02:24| Using Least Load store dir selection
2012/11/19 14:02:24| Set Current Directory to /var/spool/squid3
2012/11/19 14:02:24| Loaded Icons.
2012/11/19 14:02:24| Accepting  intercepted HTTP connections at 0.0.0.0:3128, FD 17.
2012/11/19 14:02:24| HTCP Disabled.
2012/11/19 14:02:24| Squid modules loaded: 0
2012/11/19 14:02:24| Adaptation support is off.
2012/11/19 14:02:24| Ready to serve requests.
2012/11/19 14:02:24| Done reading /var/spool/squid3 swaplog (94 entries)
2012/11/19 14:02:24| Finished rebuilding storage from disk.
2012/11/19 14:02:24|        94 Entries scanned
2012/11/19 14:02:24|         0 Invalid entries.
2012/11/19 14:02:24|         0 With invalid flags.
2012/11/19 14:02:24|        94 Objects loaded.
2012/11/19 14:02:24|         0 Objects expired.
2012/11/19 14:02:24|         0 Objects cancelled.
2012/11/19 14:02:24|         0 Duplicate URLs purged.
2012/11/19 14:02:24|         0 Swapfile clashes avoided.
2012/11/19 14:02:24|   Took 0.01 seconds (9614.40 objects/sec).
2012/11/19 14:02:24| Beginning Validation Procedure
2012/11/19 14:02:24|   Completed Validation Procedure
2012/11/19 14:02:24|   Validated 213 Entries
2012/11/19 14:02:24|   store_swap_size = 1788
2012/11/19 14:02:25| storeLateRelease: released 0 objects

dodatkowe info:

Kod:

root@host:~# squid3 -v
Squid Cache: Version 3.1.6
configure options:  '--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--libexecdir=${prefix}/lib/squid3' '--disable-maintainer-mode' '--disable-dependency-tracking' '--disable-silent-rules' '--srcdir=.' '--datadir=/usr/share/squid3' '--sysconfdir=/etc/squid3' '--mandir=/usr/share/man' '--with-cppunit-basedir=/usr' '--enable-inline' '--enable-async-io=8' '--enable-storeio=ufs,aufs,diskd' '--enable-removal-policies=lru,heap' '--enable-delay-pools' '--enable-cache-digests' '--enable-underscores' '--enable-icap-client' '--enable-follow-x-forwarded-for' '--enable-auth=basic,digest,ntlm,negotiate' '--enable-basic-auth-helpers=LDAP,MSNT,NCSA,PAM,SASL,SMB,YP,DB,POP3,getpwnam,squid_radius_auth,multi-domain-NTLM' '--enable-ntlm-auth-helpers=smb_lm,' '--enable-digest-auth-helpers=ldap,password' '--enable-negotiate-auth-helpers=squid_kerb_auth' '--enable-external-acl-helpers=ip_user,ldap_group,session,unix_group,wbinfo_group' '--enable-arp-acl' '--enable-esi' '--disable-translation' '--with-logdir=/var/log/squid3' '--with-pidfile=/var/run/squid3.pid' '--with-filedescriptors=65536' '--with-large-files' '--with-default-user=proxy' '--enable-linux-netfilter' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -g -Wall -O2' 'LDFLAGS=' 'CPPFLAGS=' 'CXXFLAGS=-g -O2 -g -Wall -O2' --with-squid=/tmp/buildd/squid3-3.1.6

root@host:~# uname -a
Linux host 2.6.32-5-amd64 #1 SMP Sun Sep 23 10:07:46 UTC 2012 x86_64 GNU/Linux

root@host:~# iptables --version
iptables v1.4.8

root@host:~# du -ha /var/spool/squid3/ | grep M
2,5M    /var/spool/squid3/00/00
3,2M    /var/spool/squid3/00
3,3M    /var/spool/squid3/

- eth1 to mój interfejs LAN (eth0 WAN)
- system plików ReiserFS
- w syslog nie widać niczego szczególnego

Kod:

root@host_w_sieci_lan:~# time squidclient http://www.interia.pl | head -n 25
HTTP/1.0 200 OK
Date: Sun, 18 Nov 2012 14:08:26 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 167296
Last-Modified: Sun, 18 Nov 2012 14:07:15 GMT
Vary: Accept-Encoding
Server: IPL/2.1
Expires: Sun, 18 Nov 2012 14:09:26 GMT
Cache-Control: max-age=60
Cache-Control: private
X-UA-Compatible: IE=edge
Accept-Ranges: bytes
X-Cache: MISS from localhost
X-Cache-Lookup: MISS from localhost:3128
Via: 1.0 localhost (squid/3.1.6)
Proxy-Connection: close

<!DOCTYPE html><html lang="pl">
<head>
<meta charset="UTF-8">
<title>Portal INTERIA.PL - więcej niż się spodziewasz!</title> <meta name="robots" content="index,follow,all">
<meta name="application-name" content="Grupa INTERIA.PL Sp. z o.o. Sp.k.">
<meta name="msapplication-task" content="name=Poczta;action-uri=http://poczta.interia.pl/;icon-uri=http://www.interia.pl/favicon.ico">
<meta name="msapplication-task" content="name=CZATeria;action-uri=http://czateria.interia.pl/;icon-uri=http://www.interia.pl/favicon.ico">
<meta name="msapplication-task" content="name=Fakty;action-uri=http://fakty.interia.pl/;icon-uri=http://www.interia.pl/favicon.ico">

real    0m0.021s
user    0m0.004s
sys     0m0.004s

Ostatnio edytowany przez web01 (2012-11-18 15:09:07)

Offline

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
Nas ludzie lubią po prostu, a nie klikając w przyciski ;-)

[ Generated in 0.010 seconds, 11 queries executed ]

Informacje debugowania

Time (s) Query
0.00010 SET CHARSET latin2
0.00004 SET NAMES latin2
0.00155 SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='3.142.130.242' WHERE u.id=1
0.00196 REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '3.142.130.242', 1732278541)
0.00077 SELECT * FROM punbb_online WHERE logged<1732278241
0.00057 SELECT topic_id FROM punbb_posts WHERE id=215011
0.00057 SELECT id FROM punbb_posts WHERE topic_id=22314 ORDER BY posted
0.00061 SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=22314 AND t.moved_to IS NULL
0.00008 SELECT search_for, replace_with FROM punbb_censoring
0.00147 SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=22314 ORDER BY p.id LIMIT 0,25
0.00096 UPDATE punbb_topics SET num_views=num_views+1 WHERE id=22314
Total query time: 0.00868 s