Testing Squid and Squidguard on pfSense

Leave a comment

July 14, 2016 by aubreykloppers

To test your squid configuration, run the command:

#: squid -k parse

This will give you the full listing of your squid installation.  You will be able to identify errors and rectify them easily.

To test your squidGuard configuration, run the command:

#: echo “http://www.example.com – – GET” | squidGuard -c /tmp/test.cfg -d

Now, the problem is that the above command is very generic.  The second item (IP Number) needs to change to fit your LAN and you will get the filename of the configuration file for squidGuard (in this case /tmp/test.cfg) in your pfSense configuration of Squid.

The file can be found in your squid configuration, under the Custom Settings where you re-define your url_rewrite_program settings.

In my case it looks like this:

echo “http://www.google.com {IP} – – GET” | squidGuard -c /usr/pbi/squidguard-amd64/etc/squidGuard/squidGuard.conf -d

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

counter for wordpress
%d bloggers like this: