Squid is a high-performance proxy caching server for web clients, supporting FTP, gopher, and HTTP data objects. Unlike traditional caching software, Squid handles all requests in a single, non-blocking, I/O-driven process. For more information, Please see http://www.squid-cache.org/


# cd /usr/ports/www/squid
# make install clean

make sure that all below are checked:


SQUID_WCCP
SQUID_IDENT
SQUID_ARP_ACL

Now lets copy over the default configuarion file:


# cd /usr/local/etc/squid
# cp squid.conf.default squid.conf

Now edit squid.conf


# vi squid.conf

You can change the port number from the default if you would like, but I left it with port 3128

Edit "#Recommended minimum configuration:"

acl localhost src 127.0.0.0/255.255.255.255

to respective IP and subnet

Further down uncomment:

acl our_networks src 192.168.1.0/24 192.168.2.0/24

again to respective ip and subnet

uncomment:

http_access allow our_networks

save and exit and then run

Run 'squid -z' to create swap directories


# /usr/local/sbin/squid -NCd1 &

after it stops hit control c

type


# squid

if no errors, open your browser and set it to your proxy server and then try to open a webpage.