[squid-users] Compress/Zipped Web pages?
Hello. I heard a friend of mine talking about how he compresses the requested web pages and serves it to users (compressed) with MS ISA Server. Can that be done with Squid? if is true.
[squid-users] Help me save bandwidth
Hello everybody. I am somewhat confused on how squid helps to save bandwidth. I know it saves visited websites to cache and when someone else request the same site it will serve it from the cache. Please correct me if that is wrong. Now, I've been checking my traffic before (external nic) and after (inside network) squid. Eveerytime I request a page (google.com) the request is sent to the internet as well so, in this case there isn't much saving done. But, if I have offline_mode on I get the old page stored locally. It seems that if I have offline_mode enabled is when bandwidth is been saved. Please correct me and help me understand on how squid can really help maintain and save bandwidth on my network. Thanks in advanced for your help.
Re: [squid-users] Long running squid proxy slows way down
I have a similar setup, squid was slow and crashing when it had a long time running, crashing every three to six days. I never found out why it crashed. I looked in the log files and couldn't find anything. It just crashed for no reason. There are some post to the least about it. I decided to restart the system everyday from a cron job at 4am. I know that doesn't sound too stable as I'm running it on a linux box but, it worked. It hasn't crash ever since.
Re: [squid-users] Squid and TC - Traffic Shaping
I have a similar script but, I'm doing the filtering with iptables: $iptables -t mangle -A FORWARD -s 192.168.2.100 -j MARK --set-mark 1 $iptables -t mangle -A FORWARD -d 192.168.2.100 -j MARK --set-mark 1 $iptables -t mangle -A FORWARD -d 192.168.2.101 -j MARK --set-mark 2 $iptables -t mangle -A FORWARD -d 192.168.2.101 -j MARK --set-mark 2 ... and so on. $tc qdisc del dev eth1 root $tc qdisc add dev eth1 root handle 1:0 htb default 20 r2q 1 # Class $tc class add dev eth1 parent 1: classid 1:1 htb rate 384kbit ceil 384kbit $tc class add dev eth1 parent 1:2 classid 1:2 htb rate 200kbit ceil 200kbit $tc class add dev eth1 parent 1:3 classid 1:3 htb rate 100kbit ceil 150kbit $tc qdisc add dev eth1 parent 1:2 handle 20: sfq perturb 10 $tc qdisc add dev eth1 parent 1:3 handle 30: sfq perturb 10 $tc filter add dev eth1 protocol ip parent 1:0 prio 1 handle 1 fw classid 1:2 $tc filter add dev eth1 protocol ip parent 1:0 prio 1 handle 2 fw classid 1:3 more filtering. Everytime I test with squid running I don't get a correct speed I'm supposed to obtain but, when I disable squid and run a test, I get the correct speed on both computers: 194 - 200 max for 192.168.1.100 and 96 - 99 for 192.168.2.101. When I run the test with squid running I get different speeds on both machines ranging from 50 to 300. I know it sounds strange but, I've ran the tests too many times now and I get the same results. I'm using squid 3.0 STABLE 11. Thanks. Indunil Jayasooriya wrote: On Wed, Apr 22, 2009 at 2:55 PM, Amos Jeffries squ...@treenet.co.nz wrote: Wilson Hernandez - MSD, S. A. wrote: Hello. I was writing a script to control traffic on our network. I created my rules with tc and noticed that it wasn't working correctly. I tried this traffic shaping on a linux router that has squid doing transparent cache. When measuring the download speed on speedtest.net the download speed is 70kbps when is supposed to be over 300kbps. I found it strange since I've done traffic shaping in the past and worked but not on a box with squid. I stopped the squid server and ran the test again and it gave me the speed I assigned to that machine. I assigned different bw and the test gave the correct speed. Have anybody used traffic shaping (TC in linux) on a box with squid? Is there a way to combine both a have them work side by side? About 2years ago, I used the below script on a CentOS 4.4 box acting as a firewall (iptables), routing (iproute2) and squid 2.5 transparent intercepting. #traffic shaping on eth1 - i.e: LAN INTERFACE (For Downloading). eth0 is connected to the Internet INTERFAZ_LAN=eth1 FULLBANDWIDTH=256 BANDWIDTH4LAN=64 tc qdisc del root dev $INTERFAZ_LAN tc qdisc add dev $INTERFAZ_LAN root handle 1: htb r2q 4 tc class add dev $INTERFAZ_LAN parent 1: classid 1:1 htb rate $FULLBANDWIDTHKbit tc class add dev $INTERFAZ_LAN parent 1:1 classid 1:10 htb rate $BANDWIDTH4LANKbit tc qdisc add dev $INTERFAZ_LAN parent 1:10 handle 10: sfq perturb 10 tc filter add dev $INTERFAZ_LAN parent 1: protocol ip prio 1 u32 match ip dst 192.168.100.0/24 classid 1:10 192.168.100.0/24 is my LAN RANGE. According to the above script, My FULL bandwidth was 256 kbit. I allocated 64 kbit for downloading. it is actually NOTHING to do with squid for me. ALL went fine with iproute2 pkg. I am also seeking a TC expert to help several users already needing to use it with TPROXYv4 and/or WCCP setups. I am NOT a tc expert. just a guy with an interest. -- *Wilson Hernandez* Presidente 829.848.9595 809.766.0441 www.msdrd.com http://www.msdrd.com Conservando el medio ambiente
[squid-users] Squid and TC - Traffic Shaping
Hello. I was writing a script to control traffic on our network. I created my rules with tc and noticed that it wasn't working correctly. I tried this traffic shaping on a linux router that has squid doing transparent cache. When measuring the download speed on speedtest.net the download speed is 70kbps when is supposed to be over 300kbps. I found it strange since I've done traffic shaping in the past and worked but not on a box with squid. I stopped the squid server and ran the test again and it gave me the speed I assigned to that machine. I assigned different bw and the test gave the correct speed. Have anybody used traffic shaping (TC in linux) on a box with squid? Is there a way to combine both a have them work side by side? Thanks in advanced for your help and input.
[squid-users] Cache directory size decreased
Hello.. I've noticed that my server's /var/log/squid/cache decreased from 37G to 35G. I just need to know if this is normal. thanks.
[squid-users] How to cache all traffic?
Hello. I would like to know which is a safe mode to have a squid server cache everyhing (http, mp3s, mpegs, jpgs, gifs, and so on). Since most my users visit the same pages I would like to have a big cache and when I need to do some network maintenance I could unplug the internet cable and see if some user can still receive some web content from the squid server. I don't know if that can be done but, that's just a thought. I would like to cache everything though to at least save bandwith. Thanks for your help.
[squid-users] Segmentation Fault
Hello. Now, I have another problem when trying to build squid. After issuing make all I get the following error: cf_gen.cc: In function âint main(int, char**)â: cf_gen.cc:499: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See file:///usr/share/doc/gcc-4.3/README.Bugs for instructions. make[1]: *** [cf_gen.o] Error 1 make[1]: Leaving directory `/working_dir/squid-3.0.STABLE12/src' make: *** [all-recursive] Error 1 What causes this error? -- *Wilson Hernandez* Presidente 829.848.9595 809.766.0441 www.msdrd.com http://www.msdrd.com Conservando el medio ambiente
Re: [squid-users] Squid fails
Amos, I rebuilt squid: Squid Cache: Version 3.0.STABLE12 configure options: '--prefix=/usr/local/squid' '--sysconfdir=/etc/squid' '--enable-delay-pools' '--enable-kill-parent-hack' '--disable-htcp' '--enable-default-err-language=Spanish' '--enable-linux-netfilter' '--disable-ident-lookups' '--disable-internal-dns' '--localstatedir=/var/log/squid' '--enable-stacktraces' '--with-default-user=proxy' '--with-large-files' I added disable internal dns and squid has being working fine. Its being working for about 2 days without a crash where the previous built only worked for a couple of hours and then crash. Is it ok to run it like this even though is performing better than it was? Amos Jeffries wrote: Wilson Hernandez - f, S. A. wrote: Thank you Amos for your reply. I downloaded version 3.0 and here how I built it: Squid Cache: Version 3.0.STABLE12 configure options: '--prefix=/usr/local/squid' '--sysconfdir=/etc/squid' '--enable-delay-pools' '--enable-kill-parent-hack' '--disable-htcp' '--enable-default-err-language=Spanish' '--enable-linux-netfilter' '--localstatedir=/var/log/squid' '--enable-stacktraces' '--with-default-user=proxy' '--with-large-files' Amos Jeffries wrote: Wilson Hernandez - MSD, S. A. wrote: Hello once again. Here's my second problem I am experiencing with squid. Squid is running normally and after a while doesn't serve any pages it gives the user an error regarding dns I don't remember exactly but, it tells the user that it timed out trying to access the ip but, that page (google.com) is being used by many as home page. I don't know why is failing with some dns errors. I try doing ping to the same address and the dns server resolves the ip. What can be causing this to happen? It's a DNS failure. For better help we will need to know: * the version of squid you are using, * whether or not --disable-internal-dns was used to build it, * and what is the actual error page content given when things go wrong. Amos Okay those look normal enough. for further tracking try running Squid with flags -D -d 5 and see if you can grab what it produces on stderr during the system reboot. -D should stop it running DNS tests too early. -d 5 produces the debug before config has finished loading. Amos -- *Wilson Hernandez* Presidente 829.848.9595 809.766.0441 www.msdrd.com http://www.msdrd.com Conservando el medio ambiente
Re: [squid-users] Unsupported methods
Where I can find the type of extension_methods? You can add up to 20 additional request extension methods here for enabling Squid to allow access unknown methods But where can I find a list of these methods? Thanks. Chris Robertson wrote: Wilson Hernandez - MSD, S. A. wrote: Hello. I noticed a lot of unsupported method log in cache.log and is filling the log with those type of messages. What type of methods are these? Can someone please explain or guide me to where I can better understand the extension methods and or its types? and what they really are? So I can avoid having these type of logs: 2009/02/17 15:18:46| clientParseRequestMethod: Unsupported method attempted by 192.168.2.245: This is not a bug. see squid.conf extension_methods 2009/02/17 15:18:46| clientParseRequestMethod: Unsupported method in request 'NICK n[M-00-CRI-XP-14]___' 2009/02/21 20:36:29| clientParseRequestMethod: Unsupported method attempted by 192.168.2.241: This is not a bug. see squid.conf extension_methods 2009/02/21 20:36:29| clientParseRequestMethod: Unsupported method in request 'NICK [00|ESP|016294017]__' Thanks in advanced for your help. http://www.squid-cache.org/mail-archive/squid-users/200812/0313.html Chris -- *Wilson Hernandez* Presidente 829.848.9595 809.766.0441 www.msdrd.com http://www.msdrd.com Conservando el medio ambiente
Re: [squid-users] Squid fails
Thank you Amos for your reply. I downloaded version 3.0 and here how I built it: Squid Cache: Version 3.0.STABLE12 configure options: '--prefix=/usr/local/squid' '--sysconfdir=/etc/squid' '--enable-delay-pools' '--enable-kill-parent-hack' '--disable-htcp' '--enable-default-err-language=Spanish' '--enable-linux-netfilter' '--localstatedir=/var/log/squid' '--enable-stacktraces' '--with-default-user=proxy' '--with-large-files' Amos Jeffries wrote: Wilson Hernandez - MSD, S. A. wrote: Hello once again. Here's my second problem I am experiencing with squid. Squid is running normally and after a while doesn't serve any pages it gives the user an error regarding dns I don't remember exactly but, it tells the user that it timed out trying to access the ip but, that page (google.com) is being used by many as home page. I don't know why is failing with some dns errors. I try doing ping to the same address and the dns server resolves the ip. What can be causing this to happen? It's a DNS failure. For better help we will need to know: * the version of squid you are using, * whether or not --disable-internal-dns was used to build it, * and what is the actual error page content given when things go wrong. Amos -- *Wilson Hernandez* Presidente 829.848.9595 809.766.0441 www.msdrd.com http://www.msdrd.com Conservando el medio ambiente
[squid-users] Starting squid
Hello. I am experiencing some weird problems with squid. I was testing to see if squid would come up at boot time, sometimes it starts sometimes doesnt (This is problem number one of two). I have the following line in rc.local /usr/local/squid/sbin/squid -D I am using the lastes stable version 3.0 downloaded last week. Squid Cache: Version 3.0.STABLE11 configure options: '--prefix=/usr/local/squid' '--sysconfdir=/etc/squid' '--enable-delay-pools' '--enable-kill-parent-hack' '--disable-htcp' '--enable-default-err-language=Spanish' '--enable-linux-netfilter' '--disable-ident-lookups' '--localstatedir=/var/log/squid' '--enable-stacktraces' '--with-default-user=proxy' '--with-large-files' What is the correct flag to run squid on?
[squid-users] Squid fails
Hello once again. Here's my second problem I am experiencing with squid. Squid is running normally and after a while doesn't serve any pages it gives the user an error regarding dns I don't remember exactly but, it tells the user that it timed out trying to access the ip but, that page (google.com) is being used by many as home page. I don't know why is failing with some dns errors. I try doing ping to the same address and the dns server resolves the ip. What can be causing this to happen?
Re: [squid-users] Squid Crashes when cache dir fills
The store system is actually aufs and the partition is 77GB. I don't have anything else other than iptables and squid installed on this system. joost.deh...@getronics.com wrote: I have cache_dir ufs /var/log/squid 6 255 255 with a 80GB harddrive. - ufs is an old store system, aufs will probably give you better performance. - How is the inode usage on the disk? - The disksize is irrelevant, the partition size of the partition where /var/log/squid resides is relevant. If that partition is only 10G, then this cache won't work. Joost -- *Wilson Hernandez* Presidente 829.848.9595 809.766.0441 www.msdrd.com http://www.msdrd.com Conservando el medio ambiente
Re: [squid-users] Squid Crashes when cache dir fills
I have approximately 75 users on my lan that continually use that server. I will consider your solutions and implement them and test how squid behaves. So, what is the recommended cache size for a squid system running with over 75 users? Thanks. Angela Williams wrote: Hi! On Thursday 26 February 2009, Wilson Hernandez - MSD, S. A. wrote: Amos Jeffries wrote: Wilson Hernandez - MSD, S. A. wrote: I have cache_dir ufs /var/log/squid 6 255 255 Your cache_dir line says create a squid cache directory structure 255 wide by 255 deep and allow it to grow up to 60G. Squid will continue to try and store objects into the directory structure until either 60G limit is reached or the filesystem - more like as not /var - runs out of space. If it runs out of space squid is no longer able to write to its log files you configured in your squid.conf file. If it cannot write to the log file it cannot tell you want happened! Do you want a nice simple solution? Add a second hard drive and have squid create its 60G sized cache there. Make certain logrotate is rotating the normal system logs and asking squid to rotate its logs! Use df and see just how fuch free space is really available in /var if it is a filesystem in its own right. Another thought? How many users are trying to access the 'net via this proxy that you want to store 60G in a 256 by 256 structure? Last time I looked through the docs and faq's there was a good write up on sizing the cache - both hard and soft. Cheers Ang -- *Wilson Hernandez* Presidente 829.848.9595 809.766.0441 www.msdrd.com http://www.msdrd.com Conservando el medio ambiente
Re: [squid-users] Squid Crashes when cache dir fills
Amos Jeffries wrote: Wilson Hernandez - MSD, S. A. wrote: I have cache_dir ufs /var/log/squid 6 255 255 with a 80GB harddrive. So its probably not the cache dir filling up then. It will be something else causing the system to use more than 20 GB for other stuff. Logs or journaling maybe? Are they all rotating regularly? I don't think so. But, I'll keep that in mind. One other thing. As of late, the cache has stopped working without giving me any clue of why it did. I reviewed the cache.log file but can't figure out why is crashing. Where else can I look for clues of why is crashing?
[squid-users] Squid Crashes when cache dir fills
Hello. I have experienced some sort of crash with squid. I noticed that when the cache directory fills up, squid stops caching, it only allows communication through with the messenger and users start getting the unable to redirect message on the browser. If I delete the directory and create it again squid -z then everything works fine.
[squid-users] Unsupported methods
Hello. I noticed a lot of unsupported method log in cache.log and is filling the log with those type of messages. What type of methods are these? Can someone please explain or guide me to where I can better understand the extension methods and or its types? and what they really are? So I can avoid having these type of logs: 2009/02/17 15:18:46| clientParseRequestMethod: Unsupported method attempted by 192.168.2.245: This is not a bug. see squid.conf extension_methods 2009/02/17 15:18:46| clientParseRequestMethod: Unsupported method in request 'NICK n[M-00-CRI-XP-14]___' 2009/02/21 20:36:29| clientParseRequestMethod: Unsupported method attempted by 192.168.2.241: This is not a bug. see squid.conf extension_methods 2009/02/21 20:36:29| clientParseRequestMethod: Unsupported method in request 'NICK [00|ESP|016294017]__' Thanks in advanced for your help.
Re: [squid-users] Squid Crashes when cache dir fills
I have cache_dir ufs /var/log/squid 6 255 255 with a 80GB harddrive. Andrew Loughnan wrote: Hi Wilson Check that your cache_dir is not too big ? (cache_dir diskd /var/spool/squid 2 32 256) Let us know what you have as your configs for this? If it runs out of space it will crash all the time Regards Andrew Loughnan Computer Services Manager St Joseph's College 135 Aphrasia Street Newtown Vic 3220 E: andr...@sjc.vic.edu.au P/h: (03) 5226-8165 M: 0412-523-011 Fax:(03) 5221-6983 -Original Message- From: Wilson Hernandez - MSD, S. A. [mailto:w...@msdrd.com] Sent: Tuesday, 24 February 2009 10:37 PM To: squid-users@squid-cache.org Subject: [squid-users] Squid Crashes when cache dir fills Hello. I have experienced some sort of crash with squid. I noticed that when the cache directory fills up, squid stops caching, it only allows communication through with the messenger and users start getting the unable to redirect message on the browser. If I delete the directory and create it again squid -z then everything works fine. -- *Wilson Hernandez* Presidente 829.848.9595 809.766.0441 www.msdrd.com http://www.msdrd.com Conservando el medio ambiente
Re: [squid-users] Problem configure squid 3.1
build-essential did it. It configured. Thanks for your help. Gregori Parker wrote: I'm sorry, I meant apt-get install libc-dev (I'm obviously not a Debian user) I've also read that you may need the 'build-essential' package as well, so you might want to try that -Original Message- From: Gregori Parker [mailto:gregori.par...@theplatform.com] Sent: Monday, January 05, 2009 4:33 PM To: w...@msdrd.com Cc: squid-users@squid-cache.org Subject: RE: [squid-users] Problem configure squid 3.1 Try 'apt-get libc-dev' and report back -Original Message- From: Wilson Hernandez - MSD, S. A. [mailto:w...@msdrd.com] Sent: Monday, January 05, 2009 6:01 PM To: Gregori Parker Cc: squid-users@squid-cache.org Subject: Re: [squid-users] Problem configure squid 3.1 I've already have it installed and still not working. Gregori Parker wrote: Sounds like you need a c++ compiler, do a 'apt-get gcc' (you're running debian IIRC) -Original Message- From: Wilson Hernandez [mailto:w...@msdrd.com] Sent: Monday, January 05, 2009 1:50 PM To: squid-users@squid-cache.org Subject: [squid-users] Problem configure squid 3.1 Hello. Me again. It seems that everyhting I try to do can't go smoothly. Now, I'm trying to get squid-3.1.0.3 installed in my system trying to upgrade from an older version but now come accross a problem when I run ./configure I get the following error (I searched the internet but, can't get a solutions) : checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables See `config.log' for more details. configure: error: ./configure failed for lib/libTrie I removed the previous squid version which was installed as a package. Please help. Thanks. -- *Wilson Hernandez* Presidente 829.848.9595 809.766.0441 www.msdrd.com http://www.msdrd.com Conservando el medio ambiente
Re: [squid-users] Problem configure squid 3.1
I've already have it installed and still not working. Gregori Parker wrote: Sounds like you need a c++ compiler, do a 'apt-get gcc' (you're running debian IIRC) -Original Message- From: Wilson Hernandez [mailto:w...@msdrd.com] Sent: Monday, January 05, 2009 1:50 PM To: squid-users@squid-cache.org Subject: [squid-users] Problem configure squid 3.1 Hello. Me again. It seems that everyhting I try to do can't go smoothly. Now, I'm trying to get squid-3.1.0.3 installed in my system trying to upgrade from an older version but now come accross a problem when I run ./configure I get the following error (I searched the internet but, can't get a solutions) : checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables See `config.log' for more details. configure: error: ./configure failed for lib/libTrie I removed the previous squid version which was installed as a package. Please help. Thanks. -- *Wilson Hernandez* Presidente 829.848.9595 809.766.0441 www.msdrd.com http://www.msdrd.com Conservando el medio ambiente
Re: [squid-users] More access.log questions
Amos. Thanks for replying. After reviewing this access.log file section, is sqid working correctly or are there any adjustments I need to make to make run more smoothly? Amos Jeffries wrote: w...@msdrd.com wrote: Hello. Guys, sorry to post so many questions regarding access.log but, I'm trying to understand what is squid actually doing and if is working correctly. I don't understand what all the stuff in the access.log file are. I check the log everyday. I see something different every time I check. Below is the latest on access.log and I don't understand why the cache now is DIRTY, what is assertion failed, 1 swapin MD5 mismatches, WARNING: newer swaplog entry for dirno 0, fileno 013B, and all those weird characters at the end of the log: 008.LMP%C2%BB%C2%A6%C2%AB_A.zip?Cache' Ì«* 2008 14:02:37 GMT}ARNING: suspicious CR characters in HTTP header {Date: Tue, 16 ð@ Please help me understand what's going on. Well for starters. The access.log does not contain that kind of info. That stuff should be in the cache.log with the rest of the debug and administration information. The FAQ has a good detailed explanation of what the logs do and contain... http://wiki.squid-cache.org/SquidFaq/SquidLogs Thanks in advanced. 2008/12/15 19:26:19| WARNING: 1 swapin MD5 mismatches Some data received does not match a validity check that it should. Probably corrupted data in the disk cache attempting to load. 2008/12/15 21:16:13| WARNING: HTTP header contains NULL characters A client sent Squid an invalid HTTP request. It's being dropped. {Host: digdug.divxnetworks.com responseType: text/xml User-Agent: DivX Player 2.0 Cookie: GUID=} 2008/12/15 21:41:20| WARNING: 10 swapin MD5 mismatches A total of 10 objects have now found to be corrupt. 2008/12/15 22:06:28| assertion failed: client_side.cc:2479: conn-in.abortedSize == (size_t)conn-bodySizeLeft() Squid crashing with received data causing memory or state corruption somewhere. 2008/12/15 22:06:31| Extension method 'NICK' added, enum=27 2008/12/15 22:06:31| Starting Squid Cache version 3.0.PRE5 for i486-pc-linux-gnu... 2008/12/15 22:06:31| Process ID 5075 2008/12/15 22:06:31| With 1024 file descriptors available 2008/12/15 22:06:31| DNS Socket created at 0.0.0.0, port 38826, FD 8 2008/12/15 22:06:31| Adding nameserver 200.42.213.11 from squid.conf 2008/12/15 22:06:31| Adding nameserver 200.42.213.21 from squid.conf 2008/12/15 22:06:31| Unlinkd pipe opened on FD 13 2008/12/15 22:06:31| Swap maxSize 10240 KB, estimated 7876923 objects 2008/12/15 22:06:31| Target number of buckets: 393846 2008/12/15 22:06:31| Using 524288 Store buckets 2008/12/15 22:06:31| Max Mem size: 102400 KB 2008/12/15 22:06:31| Max Swap size: 10240 KB 2008/12/15 22:06:31| Rebuilding storage in /var/log/squid/cache (DIRTY) Squid crashed earlier before completing its slow cache validation check. That caused the swap.state journal to be out of sync with the cache, corrupt or missing. Turning to paranoid and re-building indexes from a full raw object scan. 2008/12/15 22:06:31| Using Least Load store dir selection 2008/12/15 22:06:31| Current Directory is / 2008/12/15 22:06:31| Loaded Icons. 2008/12/15 22:06:31| Accepting transparently proxied HTTP connections at 192.168.2.1, port 3128, FD 15. 2008/12/15 22:06:31| HTCP Disabled. 2008/12/15 22:06:31| WCCP Disabled. 2008/12/15 22:06:31| Ready to serve requests. 2008/12/15 22:06:32| Store rebuilding is 1.5% complete 2008/12/15 22:06:47| Store rebuilding is 30.2% complete 2008/12/15 22:06:50| WARNING: newer swaplog entry for dirno 0, fileno 0062 2008/12/15 22:06:55| WARNING: newer swaplog entry for dirno 0, fileno 0132 2008/12/15 22:06:55| WARNING: newer swaplog entry for dirno 0, fileno 0135 3 files have been found to differ between the journal and whats actually in cache. 2008/12/15 22:07:02| Store rebuilding is 74.0% complete 2008/12/15 22:07:13| Done reading /var/log/squid/cache swaplog (271062 entries) 2008/12/15 22:07:13| Finished rebuilding storage from disk. 2008/12/15 22:07:13|268975 Entries scanned 2008/12/15 22:07:13| 0 Invalid entries. 2008/12/15 22:07:13| 0 With invalid flags. 2008/12/15 22:07:13|268719 Objects loaded. 2008/12/15 22:07:13| 0 Objects expired. 2008/12/15 22:07:13| 185 Objects cancelled. 2008/12/15 22:07:13| 1788 Duplicate URLs purged. 2008/12/15 22:07:13|26 Swapfile clashes avoided. 2008/12/15 22:07:13| Took 41.2 seconds (6517.7 objects/sec). 2008/12/15 22:07:13| Beginning Validation Procedure 2008/12/15 22:07:13| 262144 Entries Validated so far. 2008/12/15 22:07:13| storeLateRelease: released 2 objects 2008/12/15 22:07:14| 524288 Entries Validated so far. 2008/12/15 22:07:14| Completed Validation Procedure 2008/12/15 22:07:14| Validated 533992 Entries 2008/12/15 22:07:14| store_swap_size = 15636412 2008/12/15 22:14:36| WARNING: 1
Re: [squid-users] More access.log questions
Amos. Yes, I meant cache.log NOT access.log sorry for the confusion. I will remove extension_methods from squid.conf I won't be able to stop transparent interception because I don't want to go to every clients' sites to change their configurations. Will this keep the cache CLEAN? Hope it works. Amos Jeffries wrote: Amos. Thanks for replying. After reviewing this access.log file section, is sqid working correctly or are there any adjustments I need to make to make run more smoothly? Did you even read that page on the logs? access.log has nothing to do with what you are talking about. If your squid.conf names them wrongly please correct that. Using the correct names for logs is important for communication. Your squid is dying regularly on some very fatal errors. You can do one of two things to fix it: The previous behavior of blocking 'NICK' requests. (remove extension_methods again) Or stop doing transparent interception of traffic. Amos Amos Jeffries wrote: w...@msdrd.com wrote: Hello. Guys, sorry to post so many questions regarding access.log but, I'm trying to understand what is squid actually doing and if is working correctly. I don't understand what all the stuff in the access.log file are. I check the log everyday. I see something different every time I check. Below is the latest on access.log and I don't understand why the cache now is DIRTY, what is assertion failed, 1 swapin MD5 mismatches, WARNING: newer swaplog entry for dirno 0, fileno 013B, and all those weird characters at the end of the log: 008.LMP%C2%BB%C2%A6%C2%AB_A.zip?Cache' Ì«* 2008 14:02:37 GMT}ARNING: suspicious CR characters in HTTP header {Date: Tue, 16 ð@ Please help me understand what's going on. Well for starters. The access.log does not contain that kind of info. That stuff should be in the cache.log with the rest of the debug and administration information. The FAQ has a good detailed explanation of what the logs do and contain... http://wiki.squid-cache.org/SquidFaq/SquidLogs Thanks in advanced. 2008/12/15 19:26:19| WARNING: 1 swapin MD5 mismatches Some data received does not match a validity check that it should. Probably corrupted data in the disk cache attempting to load. 2008/12/15 21:16:13| WARNING: HTTP header contains NULL characters A client sent Squid an invalid HTTP request. It's being dropped. {Host: digdug.divxnetworks.com responseType: text/xml User-Agent: DivX Player 2.0 Cookie: GUID=} 2008/12/15 21:41:20| WARNING: 10 swapin MD5 mismatches A total of 10 objects have now found to be corrupt. 2008/12/15 22:06:28| assertion failed: client_side.cc:2479: conn-in.abortedSize == (size_t)conn-bodySizeLeft() Squid crashing with received data causing memory or state corruption somewhere. 2008/12/15 22:06:31| Extension method 'NICK' added, enum=27 2008/12/15 22:06:31| Starting Squid Cache version 3.0.PRE5 for i486-pc-linux-gnu... 2008/12/15 22:06:31| Process ID 5075 2008/12/15 22:06:31| With 1024 file descriptors available 2008/12/15 22:06:31| DNS Socket created at 0.0.0.0, port 38826, FD 8 2008/12/15 22:06:31| Adding nameserver 200.42.213.11 from squid.conf 2008/12/15 22:06:31| Adding nameserver 200.42.213.21 from squid.conf 2008/12/15 22:06:31| Unlinkd pipe opened on FD 13 2008/12/15 22:06:31| Swap maxSize 10240 KB, estimated 7876923 objects 2008/12/15 22:06:31| Target number of buckets: 393846 2008/12/15 22:06:31| Using 524288 Store buckets 2008/12/15 22:06:31| Max Mem size: 102400 KB 2008/12/15 22:06:31| Max Swap size: 10240 KB 2008/12/15 22:06:31| Rebuilding storage in /var/log/squid/cache (DIRTY) Squid crashed earlier before completing its slow cache validation check. That caused the swap.state journal to be out of sync with the cache, corrupt or missing. Turning to paranoid and re-building indexes from a full raw object scan. 2008/12/15 22:06:31| Using Least Load store dir selection 2008/12/15 22:06:31| Current Directory is / 2008/12/15 22:06:31| Loaded Icons. 2008/12/15 22:06:31| Accepting transparently proxied HTTP connections at 192.168.2.1, port 3128, FD 15. 2008/12/15 22:06:31| HTCP Disabled. 2008/12/15 22:06:31| WCCP Disabled. 2008/12/15 22:06:31| Ready to serve requests. 2008/12/15 22:06:32| Store rebuilding is 1.5% complete 2008/12/15 22:06:47| Store rebuilding is 30.2% complete 2008/12/15 22:06:50| WARNING: newer swaplog entry for dirno 0, fileno 0062 2008/12/15 22:06:55| WARNING: newer swaplog entry for dirno 0, fileno 0132 2008/12/15 22:06:55| WARNING: newer swaplog entry for dirno 0, fileno 0135 3 files have been found to differ between the journal and whats actually in cache. 2008/12/15 22:07:02| Store rebuilding is 74.0% complete 2008/12/15 22:07:13| Done reading /var/log/squid/cache swaplog (271062 entries) 2008/12/15 22:07:13| Finished rebuilding storage from disk. 2008/12/15 22:07:13|268975 Entries scanned 2008/12/15 22:07:13| 0 Invalid
Re: [squid-users] Squid3 just Died
Amos, I checked all the squid3 directories: squid3: /usr/sbin/squid3 /etc/squid3 /usr/lib/squid3 /usr/share/squid3 and didn't find any core.* files. I even did a /etc/squid3# whereis core core: /usr/share/man/man5/core.5.gz and it didn't find anything significant. I installed squid3 on debian with apt-get install squid3. Looks like debian doesn't have a current version of squid3 other than PRE5. I will download it from the website and install it from source. I don't think the logging drive was running out of space because Is a pretty big drive and partition. What can other thing make squid act like this? Amos Jeffries wrote: Wilson Hernandez - MSD, S. A. wrote: Pieter, I had to delete my cache. I didn't get any answers from the list and I had a lot of people calling. I did: rm -r /squid/cache/* it took over 30 minutes. Then, restarted squid (/etc/init.d/squid3 start) and it was doing the same: It started and it just died without giving any errors. I then decided to also delete, actually rename, access.log and store.log files. This time when I restarted, it worked. I had to do it that way because that was the only solution I found. I there is another way to restore all the previous objects please let me know. One more thing, What could have caused that problem? Will this happen again in a couple of months? Hmm, if it was the logging drive running out of space yes it might happen again. Check for core.* files in the squid home directory. Amos Thanks Pieter De Wit wrote: Well - something is killing it. It got a lot future than before, it stopped at 0.6% iirc last time ? On Tue, 09 Dec 2008 22:42:52 -0400, Wilson Hernandez - MSD, S. A. [EMAIL PROTECTED] wrote: That i486 thing just might have been the original kernel. I don't know why it says i486. I ran tail -f /var/log/squid/cache.log and noticed that squid tries to rebuild the cache, it stops and restarts again: Store rebuilding is 10.1% complete I don't want to delete my cache. That's the only solutions I've found on the internet: 1) Shutdown your squid server squid -k shutdown 2) Remove the cache directory rm -r /squid/cache/* 3) Re-Create the squid cache directory squid -z 4) Start the squid My cache is pretty big and it would take a while to delete all the stuff in there. Also, I will loose all that data from months of objects... Pieter De Wit wrote: Hi, Might be totally off here, but I noted your swap size is large. Could it be that the cache has more objects (in count and in byte count ?) than can fit into a 32-bit counter ? I got to this by seeing that it crashes at the cache rebuild section as well as the fact the the build is i486. Like I said, might be *way* off but hey :) Cheers, Pieter On Tue, 09 Dec 2008 19:04:54 -0700, [EMAIL PROTECTED] wrote: Hello. I came across something weird. Squid3 just stopped working, just dies without any error message. My server was running as usual and all over a sudden users weren't getting internet. I checked if all the normal processes were running and noticed squid wasn't. Now, I try to start the server and it starts and dies after a few seconds. Heres part of the cache.log file: 2008/12/09 22:03:07| Starting Squid Cache version 3.0.PRE5 for i486-pc-linux-gnu... 2008/12/09 22:03:07| Process ID 4063 2008/12/09 22:03:07| With 1024 file descriptors available 2008/12/09 22:03:07| DNS Socket created at 0.0.0.0, port 33054, FD 8 2008/12/09 22:03:07| Adding nameserver 200.42.213.11 from squid.conf 2008/12/09 22:03:07| Adding nameserver 200.42.213.21 from squid.conf 2008/12/09 22:03:07| Unlinkd pipe opened on FD 13 2008/12/09 22:03:07| Swap maxSize 10240 KB, estimated 7876923 objects 2008/12/09 22:03:07| Target number of buckets: 393846 2008/12/09 22:03:07| Using 524288 Store buckets 2008/12/09 22:03:07| Max Mem size: 102400 KB 2008/12/09 22:03:07| Max Swap size: 10240 KB 2008/12/09 22:03:07| Rebuilding storage in /var/log/squid/cache (DIRTY) 2008/12/09 22:03:07| Using Least Load store dir selection 2008/12/09 22:03:07| Current Directory is / 2008/12/09 22:03:07| Loaded Icons. 2008/12/09 22:03:07| Accepting transparently proxied HTTP connections at 192.168.2.1, port 3128, FD 15. 2008/12/09 22:03:07| HTCP Disabled. 2008/12/09 22:03:07| WCCP Disabled. 2008/12/09 22:03:07| Ready to serve requests. 2008/12/09 22:03:11| Starting Squid Cache version 3.0.PRE5 for i486-pc-linux-gnu... 2008/12/09 22:03:11| Process ID 4066 2008/12/09 22:03:11| With 1024 file descriptors available 2008/12/09 22:03:11| DNS Socket created at 0.0.0.0, port 33054, FD 8 2008/12/09 22:03:11| Adding nameserver 200.42.213.11 from squid.conf 2008/12/09 22:03:11| Adding nameserver 200.42.213.21 from squid.conf 2008/12/09 22:03:11| Unlinkd pipe opened on FD 13 2008/12/09 22:03:11| Swap maxSize 10240 KB, estimated 7876923 objects 2008/12/09 22:03:11| Target number of buckets: 393846 2008/12/09 22:03:11| Using 524288 Store buckets 2008/12/09 22:03:11| Max Mem
Re: [squid-users] Squid3 just Died
That i486 thing just might have been the original kernel. I don't know why it says i486. I ran tail -f /var/log/squid/cache.log and noticed that squid tries to rebuild the cache, it stops and restarts again: Store rebuilding is 10.1% complete I don't want to delete my cache. That's the only solutions I've found on the internet: 1) Shutdown your squid server squid -k shutdown 2) Remove the cache directory rm -r /squid/cache/* 3) Re-Create the squid cache directory squid -z 4) Start the squid My cache is pretty big and it would take a while to delete all the stuff in there. Also, I will loose all that data from months of objects... Pieter De Wit wrote: Hi, Might be totally off here, but I noted your swap size is large. Could it be that the cache has more objects (in count and in byte count ?) than can fit into a 32-bit counter ? I got to this by seeing that it crashes at the cache rebuild section as well as the fact the the build is i486. Like I said, might be *way* off but hey :) Cheers, Pieter On Tue, 09 Dec 2008 19:04:54 -0700, [EMAIL PROTECTED] wrote: Hello. I came across something weird. Squid3 just stopped working, just dies without any error message. My server was running as usual and all over a sudden users weren't getting internet. I checked if all the normal processes were running and noticed squid wasn't. Now, I try to start the server and it starts and dies after a few seconds. Heres part of the cache.log file: 2008/12/09 22:03:07| Starting Squid Cache version 3.0.PRE5 for i486-pc-linux-gnu... 2008/12/09 22:03:07| Process ID 4063 2008/12/09 22:03:07| With 1024 file descriptors available 2008/12/09 22:03:07| DNS Socket created at 0.0.0.0, port 33054, FD 8 2008/12/09 22:03:07| Adding nameserver 200.42.213.11 from squid.conf 2008/12/09 22:03:07| Adding nameserver 200.42.213.21 from squid.conf 2008/12/09 22:03:07| Unlinkd pipe opened on FD 13 2008/12/09 22:03:07| Swap maxSize 10240 KB, estimated 7876923 objects 2008/12/09 22:03:07| Target number of buckets: 393846 2008/12/09 22:03:07| Using 524288 Store buckets 2008/12/09 22:03:07| Max Mem size: 102400 KB 2008/12/09 22:03:07| Max Swap size: 10240 KB 2008/12/09 22:03:07| Rebuilding storage in /var/log/squid/cache (DIRTY) 2008/12/09 22:03:07| Using Least Load store dir selection 2008/12/09 22:03:07| Current Directory is / 2008/12/09 22:03:07| Loaded Icons. 2008/12/09 22:03:07| Accepting transparently proxied HTTP connections at 192.168.2.1, port 3128, FD 15. 2008/12/09 22:03:07| HTCP Disabled. 2008/12/09 22:03:07| WCCP Disabled. 2008/12/09 22:03:07| Ready to serve requests. 2008/12/09 22:03:11| Starting Squid Cache version 3.0.PRE5 for i486-pc-linux-gnu... 2008/12/09 22:03:11| Process ID 4066 2008/12/09 22:03:11| With 1024 file descriptors available 2008/12/09 22:03:11| DNS Socket created at 0.0.0.0, port 33054, FD 8 2008/12/09 22:03:11| Adding nameserver 200.42.213.11 from squid.conf 2008/12/09 22:03:11| Adding nameserver 200.42.213.21 from squid.conf 2008/12/09 22:03:11| Unlinkd pipe opened on FD 13 2008/12/09 22:03:11| Swap maxSize 10240 KB, estimated 7876923 objects 2008/12/09 22:03:11| Target number of buckets: 393846 2008/12/09 22:03:11| Using 524288 Store buckets 2008/12/09 22:03:11| Max Mem size: 102400 KB 2008/12/09 22:03:11| Max Swap size: 10240 KB 2008/12/09 22:03:11| Rebuilding storage in /var/log/squid/cache (DIRTY) 2008/12/09 22:03:11| Using Least Load store dir selection 2008/12/09 22:03:11| Current Directory is / 2008/12/09 22:03:11| Loaded Icons. 2008/12/09 22:03:11| Accepting transparently proxied HTTP connections at 192.168.2.1, port 3128, FD 15. 2008/12/09 22:03:11| HTCP Disabled. 2008/12/09 22:03:11| WCCP Disabled. 2008/12/09 22:03:11| Ready to serve requests. 2008/12/09 22:03:12| Store rebuilding is 0.6% complete 2008/12/09 22:03:17| Starting Squid Cache version 3.0.PRE5 for i486-pc-linux-gnu... 2008/12/09 22:03:17| Process ID 4069 2008/12/09 22:03:17| With 1024 file descriptors available 2008/12/09 22:03:17| DNS Socket created at 0.0.0.0, port 33054, FD 8 2008/12/09 22:03:17| Adding nameserver 200.42.213.11 from squid.conf 2008/12/09 22:03:17| Adding nameserver 200.42.213.21 from squid.conf 2008/12/09 22:03:17| Unlinkd pipe opened on FD 13 2008/12/09 22:03:17| Swap maxSize 10240 KB, estimated 7876923 objects 2008/12/09 22:03:17| Target number of buckets: 393846 2008/12/09 22:03:17| Using 524288 Store buckets 2008/12/09 22:03:17| Max Mem size: 102400 KB 2008/12/09 22:03:17| Max Swap size: 10240 KB 2008/12/09 22:03:17| Rebuilding storage in /var/log/squid/cache (DIRTY) 2008/12/09 22:03:17| Using Least Load store dir selection 2008/12/09 22:03:17| Current Directory is / 2008/12/09 22:03:17| Loaded Icons. 2008/12/09 22:03:17| Accepting transparently proxied HTTP connections at 192.168.2.1, port 3128, FD 15. 2008/12/09 22:03:17| HTCP Disabled. 2008/12/09 22:03:17| WCCP Disabled. 2008/12/09 22:03:17| Ready to serve requests. 2008/12/09 22:03:18| Store rebuilding is 0.6% complete
Re: [squid-users] Squid3 just Died
Pieter, I had to delete my cache. I didn't get any answers from the list and I had a lot of people calling. I did: rm -r /squid/cache/* it took over 30 minutes. Then, restarted squid (/etc/init.d/squid3 start) and it was doing the same: It started and it just died without giving any errors. I then decided to also delete, actually rename, access.log and store.log files. This time when I restarted, it worked. I had to do it that way because that was the only solution I found. I there is another way to restore all the previous objects please let me know. One more thing, What could have caused that problem? Will this happen again in a couple of months? Thanks Pieter De Wit wrote: Well - something is killing it. It got a lot future than before, it stopped at 0.6% iirc last time ? On Tue, 09 Dec 2008 22:42:52 -0400, Wilson Hernandez - MSD, S. A. [EMAIL PROTECTED] wrote: That i486 thing just might have been the original kernel. I don't know why it says i486. I ran tail -f /var/log/squid/cache.log and noticed that squid tries to rebuild the cache, it stops and restarts again: Store rebuilding is 10.1% complete I don't want to delete my cache. That's the only solutions I've found on the internet: 1) Shutdown your squid server squid -k shutdown 2) Remove the cache directory rm -r /squid/cache/* 3) Re-Create the squid cache directory squid -z 4) Start the squid My cache is pretty big and it would take a while to delete all the stuff in there. Also, I will loose all that data from months of objects... Pieter De Wit wrote: Hi, Might be totally off here, but I noted your swap size is large. Could it be that the cache has more objects (in count and in byte count ?) than can fit into a 32-bit counter ? I got to this by seeing that it crashes at the cache rebuild section as well as the fact the the build is i486. Like I said, might be *way* off but hey :) Cheers, Pieter On Tue, 09 Dec 2008 19:04:54 -0700, [EMAIL PROTECTED] wrote: Hello. I came across something weird. Squid3 just stopped working, just dies without any error message. My server was running as usual and all over a sudden users weren't getting internet. I checked if all the normal processes were running and noticed squid wasn't. Now, I try to start the server and it starts and dies after a few seconds. Heres part of the cache.log file: 2008/12/09 22:03:07| Starting Squid Cache version 3.0.PRE5 for i486-pc-linux-gnu... 2008/12/09 22:03:07| Process ID 4063 2008/12/09 22:03:07| With 1024 file descriptors available 2008/12/09 22:03:07| DNS Socket created at 0.0.0.0, port 33054, FD 8 2008/12/09 22:03:07| Adding nameserver 200.42.213.11 from squid.conf 2008/12/09 22:03:07| Adding nameserver 200.42.213.21 from squid.conf 2008/12/09 22:03:07| Unlinkd pipe opened on FD 13 2008/12/09 22:03:07| Swap maxSize 10240 KB, estimated 7876923 objects 2008/12/09 22:03:07| Target number of buckets: 393846 2008/12/09 22:03:07| Using 524288 Store buckets 2008/12/09 22:03:07| Max Mem size: 102400 KB 2008/12/09 22:03:07| Max Swap size: 10240 KB 2008/12/09 22:03:07| Rebuilding storage in /var/log/squid/cache (DIRTY) 2008/12/09 22:03:07| Using Least Load store dir selection 2008/12/09 22:03:07| Current Directory is / 2008/12/09 22:03:07| Loaded Icons. 2008/12/09 22:03:07| Accepting transparently proxied HTTP connections at 192.168.2.1, port 3128, FD 15. 2008/12/09 22:03:07| HTCP Disabled. 2008/12/09 22:03:07| WCCP Disabled. 2008/12/09 22:03:07| Ready to serve requests. 2008/12/09 22:03:11| Starting Squid Cache version 3.0.PRE5 for i486-pc-linux-gnu... 2008/12/09 22:03:11| Process ID 4066 2008/12/09 22:03:11| With 1024 file descriptors available 2008/12/09 22:03:11| DNS Socket created at 0.0.0.0, port 33054, FD 8 2008/12/09 22:03:11| Adding nameserver 200.42.213.11 from squid.conf 2008/12/09 22:03:11| Adding nameserver 200.42.213.21 from squid.conf 2008/12/09 22:03:11| Unlinkd pipe opened on FD 13 2008/12/09 22:03:11| Swap maxSize 10240 KB, estimated 7876923 objects 2008/12/09 22:03:11| Target number of buckets: 393846 2008/12/09 22:03:11| Using 524288 Store buckets 2008/12/09 22:03:11| Max Mem size: 102400 KB 2008/12/09 22:03:11| Max Swap size: 10240 KB 2008/12/09 22:03:11| Rebuilding storage in /var/log/squid/cache (DIRTY) 2008/12/09 22:03:11| Using Least Load store dir selection 2008/12/09 22:03:11| Current Directory is / 2008/12/09 22:03:11| Loaded Icons. 2008/12/09 22:03:11| Accepting transparently proxied HTTP connections at 192.168.2.1, port 3128, FD 15. 2008/12/09 22:03:11| HTCP Disabled. 2008/12/09 22:03:11| WCCP Disabled. 2008/12/09 22:03:11| Ready to serve requests. 2008/12/09 22:03:12| Store rebuilding is 0.6% complete 2008/12/09 22:03:17| Starting Squid Cache version 3.0.PRE5 for i486-pc-linux-gnu... 2008/12/09 22:03:17| Process ID 4069 2008/12/09 22:03:17| With 1024 file descriptors available 2008/12/09 22:03:17| DNS Socket created at 0.0.0.0, port 33054, FD 8 2008/12/09 22:03:17| Adding
[squid-users] Disk space over limit Warning
Hello; I currently have a network with about 30 users and my swap space tends to fill up quite quickly. I increased the swap three weeks ago from: #cache_dir ufs /var/log/squid/cache 5000 16 256 to cache_dir ufs /var/log/squid/cache 1 255 255 Now, I'm getting the same warning: 2008/11/27 13:59:00| WARNING: Disk space over limit: 10241036 KB 1024 KB If I leave it as is will I have problems in the future or should I change it to what? What is a safe size for this? Thank you in advanced for all your help.
Re: [squid-users] Disk space over limit Warning
Yes. I did run squid -z and it created all the directories. Paul Bertain wrote: Hi Wilson, Did you run squid -z after changing your settings? For themto take effect, I believe you need to run squid -a again. Paul On Nov 28, 2008, at 15:53, Wilson Hernandez - MSD, S. A. [EMAIL PROTECTED] wrote: Hello; I currently have a network with about 30 users and my swap space tends to fill up quite quickly. I increased the swap three weeks ago from: #cache_dir ufs /var/log/squid/cache 5000 16 256 to cache_dir ufs /var/log/squid/cache 1 255 255 Now, I'm getting the same warning: 2008/11/27 13:59:00| WARNING: Disk space over limit: 10241036 KB 1024 KB If I leave it as is will I have problems in the future or should I change it to what? What is a safe size for this? Thank you in advanced for all your help. -- *Wilson Hernandez* Presidente 829.848.9595 809.766.0441 www.msdrd.com http://www.msdrd.com Conservando el medio ambiente
[squid-users] Re: [NoCat] Non-Authenticating Splash Page
Colin, I tried to add some php code but it doesn't get embedded, I guess is because the gateway is run with perl. I don't know perl, it would be easier to use perl instead of php in this case. How can I embed php code on the splash page to build a dynamic page? Thanks again. Colin A. White wrote: Have you tried editing the splash page to embed your own content? And change the submit button to say, Dismiss or Ignore? On Nov 25, 2008, at 4:55 PM, Wilson Hernandez - MSD, S. A. [EMAIL PROTECTED] wrote: I am currently running Nocat in open mode but, the only way it would work in open mode is if I have a splash page that with a submit button accepting the agreement (see below). I don't want users to really do that. All I want is a page to show up every 60mins and let users click on the splash page' contents or proceed with whatever it was doing. form method=GET action=$action input type=hidden name=redirect value=$redirect input type=hidden name=accept_terms value=yes input type=hidden name=mode_login input type=submit class=button value=Enter /form Thanks for replying. Colin White wrote: Set the time out to 60 mins and run the gateway in Open mode. On Tue, Nov 25, 2008 at 10:47 AM, Wilson Hernandez - MSD, S. A. [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hello. I would like to know if there is a way of redirecting users to a splash page every hour and have the user to continue browsing the internet without authenticating or accepting an user agreement? Thanks. -- ___ NoCat mailing list [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://lists.nocat.net/mailman/listinfo/nocat -- Colin A. White P : +1 605 940 5863 -- *Wilson Hernandez* Presidente 829.848.9595 809.766.0441 www.msdrd.com http://www.msdrd.com Conservando el medio ambiente -- *Wilson Hernandez* Presidente 829.848.9595 809.766.0441 www.msdrd.com http://www.msdrd.com Conservando el medio ambiente ___ NoCat mailing list [EMAIL PROTECTED] http://lists.nocat.net/mailman/listinfo/nocat -- *Wilson Hernandez* Presidente 829.848.9595 809.766.0441 www.msdrd.com http://www.msdrd.com Conservando el medio ambiente
[squid-users] Where are the objects?
I have a question regarding the storage of objects: Where is really saved to on disk? Is it in /var/log/squid3/access.log or in: /var/log/squid3/store.log? I've noticed that in the /var/log/squid3/cache swaplog there isn't any entries as stated below. How exactly are objects saved? 2008/11/20 08:49:53| Starting Squid Cache version 3.0.PRE5 for i486-pc-linux-gnu... 2008/11/20 08:49:53| Process ID 2789 2008/11/20 08:49:53| With 1024 file descriptors available 2008/11/20 08:49:53| DNS Socket created at 0.0.0.0, port 32794, FD 8 2008/11/20 08:49:53| Adding nameserver 200.88.127.22 from squid.conf 2008/11/20 08:49:53| Adding nameserver 196.3.81.5 from squid.conf 2008/11/20 08:49:53| Adding nameserver 200.88.127.23 from squid.conf 2008/11/20 08:49:53| Adding nameserver 196.3.81.182 from squid.conf 2008/11/20 08:49:53| Unlinkd pipe opened on FD 13 2008/11/20 08:49:53| Swap maxSize 1024 KB, estimated 787692 objects 2008/11/20 08:49:53| Target number of buckets: 39384 2008/11/20 08:49:53| Using 65536 Store buckets 2008/11/20 08:49:53| Max Mem size: 102400 KB 2008/11/20 08:49:53| Max Swap size: 1024 KB 2008/11/20 08:49:53| Rebuilding storage in /var/log/squid3/cache (CLEAN) 2008/11/20 08:49:53| Using Least Load store dir selection 2008/11/20 08:49:53| Current Directory is / 2008/11/20 08:49:53| Loaded Icons. 2008/11/20 08:49:53| Accepting transparently proxied HTTP connections at 192.168.2.1, port 3128, FD 14. 2008/11/20 08:49:53| HTCP Disabled. 2008/11/20 08:49:53| WCCP Disabled. 2008/11/20 08:49:53| Ready to serve requests. 2008/11/20 08:50:13| Done scanning /var/log/squid3/cache swaplog (0 entries) 2008/11/20 08:50:13| Finished rebuilding storage from disk. 2008/11/20 08:50:13| 0 Entries scanned 2008/11/20 08:50:13| 0 Invalid entries. 2008/11/20 08:50:13| 0 With invalid flags. 2008/11/20 08:50:13| 0 Objects loaded. 2008/11/20 08:50:13| 0 Objects expired. 2008/11/20 08:50:13| 0 Objects cancelled. 2008/11/20 08:50:13| 0 Duplicate URLs purged. 2008/11/20 08:50:13| 0 Swapfile clashes avoided. 2008/11/20 08:50:13| Took 19.7 seconds ( 0.0 objects/sec). 2008/11/20 08:50:13| Beginning Validation Procedure 2008/11/20 08:50:13| Completed Validation Procedure 2008/11/20 08:50:13| Validated 25 Entries 2008/11/20 08:50:13| store_swap_size = 0 2008/11/20 08:50:13| storeLateRelease: released 0 objects 2008/11/20 08:50:41| Preparing for shutdown after 0 requests 2008/11/20 08:50:41| Waiting 30 seconds for active connections to finish 2008/11/20 08:50:41| FD 14 Closing HTTP connection 2008/11/20 08:51:12| Shutting down... 2008/11/20 08:51:12| Closing unlinkd pipe on FD 13 2008/11/20 08:51:12| storeDirWriteCleanLogs: Starting... 2008/11/20 08:51:12| Finished. Wrote 0 entries. 2008/11/20 08:51:12| Took 0.0 seconds ( 0.0 entries/sec). CPU Usage: 0.036 seconds = 0.024 user + 0.012 sys Maximum Resident Size: 0 KB Page faults with physical i/o: 0 Memory usage for squid via mallinfo(): total space in arena:2736 KB Ordinary blocks: 2715 KB 9 blks Small blocks: 0 KB 0 blks Holding blocks: 1500 KB 7 blks Free Small blocks: 0 KB Free Ordinary blocks: 20 KB Total in use:4215 KB 154% Total free:20 KB 1% 2008/11/20 08:51:12| Squid Cache (Version 3.0.PRE5): Exiting normally. 2008/11/20 08:51:18| Starting Squid Cache version 3.0.PRE5 for i486-pc-linux-gnu... 2008/11/20 08:51:18| Process ID 2824 2008/11/20 08:51:18| With 1024 file descriptors available 2008/11/20 08:51:18| DNS Socket created at 0.0.0.0, port 32794, FD 8 2008/11/20 08:51:18| Adding nameserver 200.88.127.22 from squid.conf 2008/11/20 08:51:18| Adding nameserver 196.3.81.5 from squid.conf 2008/11/20 08:51:18| Adding nameserver 200.88.127.23 from squid.conf 2008/11/20 08:51:18| Adding nameserver 196.3.81.182 from squid.conf 2008/11/20 08:51:18| Unlinkd pipe opened on FD 13 2008/11/20 08:51:18| Swap maxSize 1024 KB, estimated 787692 objects 2008/11/20 08:51:18| Target number of buckets: 39384 2008/11/20 08:51:18| Using 65536 Store buckets 2008/11/20 08:51:18| Max Mem size: 102400 KB 2008/11/20 08:51:18| Max Swap size: 1024 KB 2008/11/20 08:51:18| Rebuilding storage in /var/log/squid3/cache (CLEAN) 2008/11/20 08:51:18| Using Least Load store dir selection 2008/11/20 08:51:18| Current Directory is / 2008/11/20 08:51:18| Loaded Icons. 2008/11/20 08:51:18| Accepting transparently proxied HTTP connections at 192.168.2.1, port 3128, FD 14. 2008/11/20 08:51:18| HTCP Disabled. 2008/11/20 08:51:18| WCCP Disabled. 2008/11/20 08:51:18| Ready to serve requests.
[squid-users] Squid very slow
I am running Nocat with along with squid3 and I am experiencing some problems: Sometimes everything works fine but, sometimes the system is extremely slow and I get the following error on browser: The requested URL could not be retrieved While trying to retrieve the URL: http://us.mc625.mail.yahoo.com/mc/showFolder;_ylt=ArsEohpYUGGoVGGsFGqujqJjk70X? The following error was encountered: Unable to determine IP address from host name for us.mc625.mail.yahoo.com The dnsserver returned: Refused: The name server refuses to perform the specified operation. This means that: The cache was not able to resolve the hostname presented in the URL. Check if the address is correct. Your cache administrator is [EMAIL PROTECTED] Generated Thu, 20 Nov 2008 01:07:31 GMT by localhost (squid/3.0.PRE5) -- I added my dns servers to the squid.conf with the dns_nameservers