Proxy server/Squid
-
Things were working fine when suddenly no matter what URL we entered, we were redirected to pFSense dashboard. When I disabled the Proxy Server (under services) it all started working properly again.
As I am using SquidGuard, I need Squid to work
Any Ideas?
-
Is your system-log, squid-log or squidguard-log showing anything strange? In case just post them here. That would help us.
-
Oops I know the obvious answer… "delete the contents"... practically how do I do this?
Feb 26 07:58:17 squid[52823]: Write failure – check your disk space and cache.log
Feb 26 07:58:17 squid[39409]: Squid Parent: child process 52823 exited due to signal 6
Feb 26 07:58:17 kernel: pid 52823 (squid), uid 62: exited on signal 6
Feb 26 07:58:20 squid[39409]: Squid Parent: child process 53871 started
Feb 26 07:58:21 kernel: pid 53871 (squid), uid 62 inumber 3109630 on /: filesystem full
Feb 26 07:58:21 squid[53871]: Write failure – check your disk space and cache.log
Feb 26 07:58:21 squid[39409]: Squid Parent: child process 53871 exited due to signal 6 -
thats exactly i want to know to. i run squid smooth and fast on vm but after an hour it just ate my 250gb with null data as in full
250 gb? how is it possible? i ran squid on transparent mode set disk size to 250 gb set the minimum to 0 set the max memory to 64 mb set the max cache size to 256 mb. the suggestion "squid -k rotate" doesnt solve anything -
squid -k rotate rotates the log files, not the cache. You've told it to use 250 GB of disk space, so that it's done that doesn't surprise me - it's doing exactly what it is designed to do.
-
check again your configuration:
Hard disk cache size is the amount of space in MEGAbytes which squid could use on your harddisk.
Memory cache size is the amount of space in MEGAbytes which squid could use of your RAM.
Minimum object size and Maximum object size is in KILObyte is the size of objects squid will cache in your RAM or if this is full on your harddisk.Perhaps you did something wrong by entering the correct size
-
sorry for my ignorance but i would like to ask about hard disk cache size
for example i have a 250 gb disk and i would like to allocate 200 gb of it for caching, do i put the 200gb "convert to megabytes" to the "Hard disk cache size" ?
or the "Hard disk cache size" is the size of "every single cache"
because im wondering, almost less than 3 hours i occupied the whole 250 gb just browsing facebook and facebook apps?
another thing,
is there an automatic way of renewing the contents of cache? or i need to manually erase what is in there when my disk is full?
-
Just watch that your 250 GB disk will have much less than that in usable space once you've installed pfSense. Check to see how much is free and then allocate less than that. For instance if you do have more than 200 GB free and you want to allocate 200 GB you'd enter 204800 (200 * 1024) in the "Hard disk cache size" box. Squid will then manage that itself, according to how it's configured to manage that cache.