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:


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

to respective IP and subnet

Further down uncomment:

acl our_networks src

again to respective ip and subnet


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


# squid

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