Configuration of squidguard



  • Hello,
    i have installed squiguard on pfsense 1.2.

    When i configure squidguard with the gui, the file squidguard.conf is not updated?
    So, the config of my squidguard is always:

    _/usr/local/etc/squidGuard/squidGuard.conf

    ============================================================

    SquidGuard configuration file

    This file generated automaticly with SquidGuard configurator

    (C)2006 Serg Dvoriancev

    email: dv_serg@mail.ru

    ============================================================

    logdir /var/squidGuard/log
    dbhome /var/db/squidGuard

    acl {
    default {
    pass all
    redirect http://192.168.1.1/sgerror.php?url=Error! Check squidGuard configuration data. (sg_create_config%3A [2]).&a=%a&n=%n&i=%i&s=%s&t=%t&u=%u
    }_

    And all the web site is always authorized… and i don't want this!!!

    Do you know how can i do for configure squidguard??

    Thx a lot





  • squidGuard fonctionne parfaitement. Suivez http://diskatel.narod.ru/sgquick.htm pour la configuration.



  • I do like http://diskatel.narod.ru/sgquick.htm,
    I check the right of /usr/local/etc/squidguard and /var/db/squidGuard and their are 755 / proxy so it's OK.

    I check the webGUI log

    28.05.2008 14:08:23 : sg_reconfigure: Generate squidGuard config and save to '/usr/local/etc/squidGuard/squidGuard.conf'.
    28.05.2008 14:08:23 : squid_reconfigure: Begin.
    28.05.2008 14:08:23 : squid_reconfigure: Remove old redirector options from Squid config.
    28.05.2008 14:08:23 : squid_reconfigure: Add new redirector options to Squid config.
    28.05.2008 14:08:24 : sg_init: Start.
    28.05.2008 14:08:26 : sg_init: Start.
    28.05.2008 14:08:26 : sg_reconfigure: Begin.
    28.05.2008 14:08:26 : sg_reconfigure_user_db: Begin with '/var/db/squidGuard'
    28.05.2008 14:08:26 : sg_reconfigure_user_db: Nothing. User destinations list empty.
    28.05.2008 14:08:26 : sg_remove_unused_db_entries: Begin.
    28.05.2008 14:08:26 : sg_remove_unused_db_entries: end
    28.05.2008 14:08:26 : sg_create_config: Create squidGuard config.
    28.05.2008 14:08:26 : sg_create_config: Checking configuration data.
    28.05.2008 14:08:26 : sg_create_config: Error configuration data. It's all errors:
    BLACKLIST 'blk_BL_politics' error: file '/var/db/squidGuard/blk_BL_politics' not found
    28.05.2008 14:08:26 : sg_create_config: Terminated.
    28.05.2008 14:08:26 : sg_create_simple_config: Begin with dbhome='/var/db/squidGuard'.
    28.05.2008 14:08:26 : sg_redirector_base_url: Select redirector base url (http://192.168.1.1/sgerror.php?url=Error! Check squidGuard configuration data. (sg_create_config%3A [2]).&a=%a&n=%n&i=%i&s=%s&t=%t&u=%u)
    28.05.2008 14:08:26 : sg_reconfigure: Generate squidGuard config and save to '/usr/local/etc/squidGuard/squidGuard.conf'.
    28.05.2008 14:08:26 : squid_reconfigure: Begin.
    28.05.2008 14:08:26 : squid_reconfigure: Remove old redirector options from Squid config.
    28.05.2008 14:08:26 : squid_reconfigure: Add new redirector options to Squid config.
    28.05.2008 14:08:27 : sg_init: Start.

    The config file is never update, and always is specified pass all :

    acl {
    default {
    pass all redirect http://192.168.1.1/sgerror.php?url=Error! Check squidGuard configuration data. (sg_create_config%3A [2]).&a=%a&n=%n&i=%i&s=%s&t=%t&u=%u
    }
    }



  • You have error in you GUI settings or you not success install blacklist.
    Open & SAVE Default page and each ACL pages for fix.



  • No, you are right. This error has nothing to do with you. It has to do with the fact that the shallalist has made a mistake. They publish the list with a directory called “politcs” which has a typo. So, instead of just renaming this directory, they make a symbol link from politics to politcs. That is something, squidGuard obviously has problems with. I have encountered the same problem.



  • @Monoecus:

    No, you are right. This error has nothing to do with you. It has to do with the fact that the shallalist has made a mistake. They publish the list with a directory called “politcs” which has a typo. So, instead of just renaming this directory, they make a symbol link from politics to politcs. That is something, squidGuard obviously has problems with. I have encountered the same problem.

    Hm.. interest bug. Thanks!
    Can you not-use politic rule? Temporary?



  • No. I do not use the Politics/Politcs rule but still have the problem. Above in the log of Rom you see:

    28.05.2008 14:08:26 : sg_create_config: Error configuration data. It's all errors:
    BLACKLIST 'blk_BL_politics' error: file '/var/db/squidGuard/blk_BL_politics' not found

    So, I think the problem starts with indexing.



  • /usr/local/etc/squidGuard/blacklist.files
    Edit blk_BL_politics > blk_BL_politcs



  • I just deleted politics in this file after updating the list. However, it seems to be that this has to be done everytime one updates the shallalist.



  • OK, it's work

    Finally, i duplicate and rename the blk_BL_politics folder in blk_BL_politcs.

    Whan i start squidguard all it's OK and then the squidguard.conf is up to date.

    So my squidguard rule's works fine.

    Thx a lot



  • Has anyone reported this to Shallalist so it can be fixed?  I came across the same problem.  Anyone that doesn't know how to use SSH and navigate the BSD file system will be totally lost with this one.  I can navigate somewhat.  I've created the blk_BL_politics and chowned it to proxy:proxy and copied the files in the other directory to it, still getting the same error.  I've modified the line in blacklist.files as stated above, STILL get the same error.  What do I do?  My SG is down because of this one little typo.  Ouch.



  • Edit and store you ACL's.


Log in to reply