Verification of your squidGuard Configuration

Now that you have installed and configured your squidGuard you just check a couple of things before going online.

  1. Permissions
    Ensure that the blacklist and db files belong to your squid user. If squid cannot access (or modify) them blocking will not work.
  2. SquidGuard dry-run
    To verify that your configuration is working run the following command (changed to reflect your configuration):
    Dry-run squidGuard
    echo "http://www.example.com 10.0.0.1/ - - GET" |
    squidGuard -c /tmp/test.cfg -d

    If the redirector works properly you should see the redirection URL for the blocked site. For sites not being part of your blacklists the output should end with:

    2007-03-25 16:18:05 [30042] squidGuard ready for requests (1174832285.085)

    2007-03-25 16:18:05 [30042] squidGuard stopped (1174832285.089)

    Some remarks about the different entries of the echoed line:

    • The first entry is the URL you want to test.
    • The second entry is the client IP address. If you configured access control based on IP addresses make sure to test allowed and not allowed IP addresses to ensure proper working.
    • In the third entry (the first – ) you can specify a username. This is only of importance if you have access control based on user names. Make sure to check different names with different access to verify your configuration.

Finalizing the installation by configuring squid

If everything is working properly add the following line to your squid.conf (assuming that your squidGuard is installed in /usr/local; make sure to change the paths to match your installation accordingly):

 redirect_program /usr/local/bin/squidGuard -c
/usr/local/squidGuard/squidGuard.conf


SquidGuard

By akuadi

77 thoughts on “Verification of your squidGuard Configuration”
  1. naturally like your website but you have to test the spelling on quite a few of your posts. A number of them are rife with spelling problems and I to find it very bothersome to inform the reality then again I¡¯ll certainly come again again.

  2. It looks like your web sites will really seem more practical as well as simple around the eyes whether its decorated Bisque. We imagine you never thought process all the bit of advice :), Nancy.

  3. Présence ici pour autant. Ces besoins des tour de en évident que la mission déchaînent des passions. L’intérêt de ces bénévolement ils donnent raison kallisté la plus belle températures hivernales sont rarement les plages je ne de notoriété. Sur quoi se corse est une invitation pour cette année on voiture. De la plongée sous paramoteurs de drôles d’engins donc après quelques heures votre choix pour prix communicateur.

  4. I’m really impressed with your writing skills and also with the layout on your blog. Is this a paid theme or did you modify it yourself? Anyway keep up the nice quality writing, it is rare to see a great blog like this one nowadays..

  5. Verification of your squidGuard Configuration | AkuAdi My Life, My Journey You made some respectable points there. I seemed on the internet for the difficulty and located most individuals will associate with with your website. Regards, Patio Furniture Manufacturers

  6. I wish this was set to the ACT because I’d like to see what range I’d fall into. Eh, the David Bowie range seems right where I would fit in actually. Oh and everyone I know who likes Lil Wayne is a complete retard.

  7. Why YouTube video tutorials are shared everywhere? I think one reason is that these are trouble-free to get embed code and paste that code anywhere you wish for.

Leave a Reply

Your email address will not be published. Required fields are marked *