Need advice on setting up Squid
-
I'm running pfSense on a box with two disks. pfSense is installed on a 150GB SSD disk which has around 140GB free.
The other disk is a 1TB disk formatted as ZFS. I'm not sure what is on it. How can I tell?
I'd like to install Squid but am not sure how much space should I allocate for it, and whether the SSD should be used for the cache.
Any advice?
-
I'm not sure what is on it. How can I tell?
Mount it and look at it?
https://www.freebsd.org/doc/handbook/mount-unmount.html
I'd like to install Squid but am not sure how much space should I allocate for it, and whether the SSD should be used for the cache.
The hit rate with squid isn't great and you will likely not save very much bandwidth by caching web objects. Your mileage may vary, of course. However, if you want to play around with it then I would create a 40-50 GB cache on the SSD since you have the space and you don't need to worry about modifying fstab to mount the second disk.
In order to get the most out of squid, you will need to deep-dive squid dynamic caching concepts and squid directives such as refresh_pattern and store_id.
http://www.squid-cache.org/
-
Thanks for your advice… I've now installed squid but can't work out how to configure it... Can I do this from the GUI or do I need to login to a command prompt?
-
From the GUI. Look under Services for Squid Proxy Server.