Talk:Squid


 * GUI http://caia.swin.edu.au/ice/tools/ypfw/

http://wiki.squid-cache.org/SquidFaq/InterceptionProxy

http://www.deckle.co.za/squid-users-guide/Transparent_Caching/Proxy

When installing FreeBSD (sysinstall), just create a separate /squid partition of sufficient size(*), just like you would create a separate /usr, /var, /tmp, etc. FreeBSD will take care of creating the /squid directory in the root and mount the partition on it. Make sure squid owns /squid ( chown -R squid:squid /squid) after installing Squid itself.

 You need to build the Cache directory first. The default is 100MB so if you don't have that much room, or want more, modify /usr/local/etc/squid/squid.conf appropriately

The the '-z' option is used to build the cache

# /usr/local/sbin/squid -z

I got this message back - Permission denied

09:09:29| Creating Swap Directories FATAL: Failed to make swap directory /usr/local/squid/cache/00: (13) Permission denied Squid Cache (Version 2.1.PATCH2):Terminated abnormally. CPU Usage: 0.022 seconds Maximum Resident Size: 1000 KB Page faults with physical i/o: 0

After some search on the mailing list archives I found this solution:

> a. There is no space left on drive. > b. You have no /usr/local/squid/logs/ directory created before. (squid does   > not create it itself. Create one manually) > c. Your /usr/local/squid/logs/cache.log is owned by root. You should > change it like this. "chown nobody.nogroup /usr/local/squid/logs/cache.log" >   > Note that all of the files in ../log and ../cache directories must be owned > like that too.

I then checked for the directories and they where there, but the owner was root. so:

# chown nobody.nogroup /usr/local/squid/logs mygateway # chown nobody.nogroup /usr/local/squid/cache

So now I tried to build the cache again:

# /usr/local/sbin/squid -z 2000/05/09 09:14:32| Creating Swap Directories

Be sure add the proxy name and port 3128 to the options/connection section

/usr/local/sbin/squid -NCd1

modifed /usr/local/etc/squid/squid.conf

I added these lines right above the http_access deny all

# Add this to the squid.conf (ACL section) #   acl ourhosts src 10.1.0.0/255.255.0.0 http_access allow ourhosts #   http_access deny all

