SOLVE!: SquidGuard Issue



  • Hi, I just setup my first pfsense 1.2.2 and all is working great except for squidGuard. I successfully installed squid 2.6.21_08 and squidGuard 1.3-2. and tried to configure it by following the video tutorial from here. But my squidGuard is not blocking any sites. I search this forum and google but I couldn't find a resolution for my issue. Can someone please help me? Thanks in advance!

    Here is my squidGuard log:

    blacklist;
    16.03.2009 01:28:46 : sg_create_config: add Default
    16.03.2009 01:28:46 : sg_redirector_base_url: Select redirector base url (http://127.0.0.1:80/sgerror.php?url=blank&msg=Error%3A You are prohibited to access this website – eTronics Solutions%2C Inc.&a=%a&n=%n&i=%i&s=%s&t=%t&u=%u)
    16.03.2009 01:28:46 : sg_reconfigure: save squidGuard config to '/usr/local/etc/squidGuard/squidGuard.conf'.
    16.03.2009 01:28:46 : squid_reconfigure: Remove old redirector options from Squid config.
    16.03.2009 01:28:46 : squid_reconfigure: Add new redirector options to Squid config.
    16.03.2009 01:31:45 : sg_reconfigure_user_db: Begin with '/var/db/squidGuard'
    16.03.2009 01:31:45 : sg_reconfigure_user_db: Nothing. User destinations list empty.
    16.03.2009 01:31:45 : sg_create_config: add sources:
    blacklist
    16.03.2009 01:31:45 : sg_create_config: add blacklist entries
    16.03.2009 01:31:45 : sg_create_config: added:
    blk_BL_adv; blk_BL_aggressive; blk_BL_automobile_bikes; blk_BL_automobile_boats; blk_BL_automobile_cars; blk_BL_automobile_planes; blk_BL_chat; blk_BL_dating; blk_BL_downloads; blk_BL_drugs; blk_BL_dynamic; blk_BL_finance_banking; blk_BL_finance_insurance; blk_BL_finance_moneylending; blk_BL_finance_other; blk_BL_finance_realestate; blk_BL_fortunetelling; blk_BL_forum; blk_BL_gamble; blk_BL_hacking; blk_BL_hobby_cooking; blk_BL_hobby_games; blk_BL_hobby_gardening; blk_BL_hobby_pets; blk_BL_hospitals; blk_BL_imagehosting; blk_BL_isp; blk_BL_jobsearch; blk_BL_military; blk_BL_models; blk_BL_movies; blk_BL_music; blk_BL_news; blk_BL_podcasts; blk_BL_politics; blk_BL_porn; blk_BL_recreation_humor; blk_BL_recreation_martialarts; blk_BL_recreation_sports; blk_BL_recreation_travel; blk_BL_recreation_wellness; blk_BL_redirector; blk_BL_religion; blk_BL_remotecontrol; blk_BL_ringtones; blk_BL_science_astronomy; blk_BL_science_chemistry; blk_BL_searchengines; blk_BL_sex_lingerie; blk_BL_shopping; blk_BL_socialnet; blk_BL_spyware; blk_BL_tracker; blk_BL_updatesites; blk_BL_violence; blk_BL_warez; blk_BL_weapons; blk_BL_webmail; blk_BL_webphone; blk_BL_webradio; blk_BL_webtv;

    16.03.2009 01:31:45 : sg_create_config: add rewrites:
    success safesearch;
    error
    16.03.2009 01:31:45 : sg_redirector_base_url: Select redirector base url (http://127.0.0.1:80/sgerror.php?url=403 Error%3A You are prohibited to access this website.&a=%a&n=%n&i=%i&s=%s&t=%t&u=%u)
    16.03.2009 01:31:45 : sg_create_config: add ACL's:
    blacklist;
    16.03.2009 01:31:45 : sg_create_config: add Default
    16.03.2009 01:31:45 : sg_redirector_base_url: Select redirector base url (http://127.0.0.1:80/sgerror.php?url=403 Error%3A You are prohibited to access this website.&a=%a&n=%n&i=%i&s=%s&t=%t&u=%u)
    16.03.2009 01:31:46 : sg_reconfigure: save squidGuard config to '/usr/local/etc/squidGuard/squidGuard.conf'.
    16.03.2009 01:31:46 : squid_reconfigure: Remove old redirector options from Squid config.
    16.03.2009 01:31:46 : squid_reconfigure: Add new redirector options to Squid config.



  • The errors seem to indicate it doesn't like your redirector stuff.
    I have my redirector set to int with a message that says "DENIED" to my users. What do you have this set to?



  • Thanks for the quick reply, I have mine set to– Error: You are prohibited to access this website.

    Does the message makes a difference?

    BTW - I edited my message to "DENIED" and still won't block any website. Any suggestions please? Thanks in advance!

    Here's my latest logs:

    /var/squidGuard/log/sg_configurator.log
    error
    16.03.2009 02:36:31 : sg_redirector_base_url: Select redirector base url (http://127.0.0.1:80/sgerror.php?url=403 DENIED&a=%a&n=%n&i=%i&s=%s&t=%t&u=%u)
    16.03.2009 02:36:31 : sg_create_config: add ACL's:
    blacklist;
    16.03.2009 02:36:31 : sg_create_config: add Default
    16.03.2009 02:36:31 : sg_redirector_base_url: Select redirector base url (http://127.0.0.1:80/sgerror.php?url=403 DENIED&a=%a&n=%n&i=%i&s=%s&t=%t&u=%u)
    16.03.2009 02:36:31 : sg_reconfigure: save squidGuard config to '/usr/local/etc/squidGuard/squidGuard.conf'.
    16.03.2009 02:36:31 : squid_reconfigure: Remove old redirector options from Squid config.
    16.03.2009 02:36:31 : squid_reconfigure: Add new redirector options to Squid config.

    I don't quite understand the line that says "error" then "sg_redirector_base_url…."  - in my log.



  •         # log
            sg_addlog("sg_create_config: add rewrites: \n success $log_entr_added \n error $log_entr_err", 1);
    

    Small non-critical bug.
    If after 'error' message any msg not exists - then all correct in you config.



  • Thanks for all the information.

    I was able to solve my issue by reinstalling squid and made sure that the service is stable. All is working fine now.

    Again, thank for all the help. PFSense rocks!!!


Log in to reply