Squid & SquidGuard not working - squid

This is a discussion on Squid & SquidGuard not working - squid ; I am using RH AS4, wiht squid 2.5 and squidGuard 1.2.0, my squid is working fine and i have configured squidguard in sauid.conf file but nothing is redirecting.... my config file is..... Squid.conf ------------------- cache_dir ufs /var/spool/squid 100 16 256 ...

+ Reply to Thread
Results 1 to 8 of 8

Thread: Squid & SquidGuard not working

  1. Squid & SquidGuard not working

    I am using RH AS4, wiht squid 2.5 and squidGuard 1.2.0, my squid is
    working fine and i have configured squidguard in sauid.conf file but
    nothing is redirecting.... my config file is.....

    Squid.conf
    -------------------
    cache_dir ufs /var/spool/squid 100 16 256
    http_port 3128
    visible_hostname xxxxx
    emulate_httpd_log on
    acl srivari src 192.168.1.0/24
    acl all src 0.0.0.0/0.0.0.0
    acl localhost src 127.0.0.1/255.255.255.255
    acl SSL_ports port 443 563
    acl Safe_ports port 80 # http
    acl Safe_ports port 21 # ftp
    acl Safe_ports port 443 563 # https, snews
    acl Safe_ports port 70 # gopher
    acl Safe_ports port 210 # wais
    acl CONNECT method CONNECT
    http_access allow srivari
    http_access deny !Safe_ports
    http_access deny CONNECT !SSL_ports
    http_access deny all

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

    SquidGuard.conf
    --------------------------
    dbhome /blacklists
    logdir /usr/local/squidGuard/log


    dest ads {
    domainlist ads/domains
    urllist ads/urls
    }


    dest aggressive {
    domainlist aggressive/domains
    urllist aggressive/urls
    }


    dest audio-video {
    domainlist audio-video/domains
    urllist audio-video/urls
    }


    dest drugs {
    domainlist drugs/domains
    urllist drugs/urls
    }


    dest gambling {
    domainlist gambling/domains
    urllist gambling/urls
    }

    dest hacking {
    domainlist hacking/domains
    urllist hacking/urls
    }


    dest mail {
    domainlist mail/domains
    }


    dest porn {
    domainlist porn/domains
    urllist porn/urls
    }


    dest proxy {
    domainlist proxy/domains

    }


    dest violence {
    domainlist violence/domains

    }


    dest warez {
    domainlist warez/domains
    urllist warez/urls
    }

    acl{
    default {
    pass !ads !aggressive !audio-video !drugs !gambling !hacking !mail
    !porn !proxy !violence !warez all
    redirect http://google.com
    }
    }


  2. Re: Squid & SquidGuard not working

    Gops

    First of all take a look to the logfiles. First see if the squidguard
    gots the URLs. If so correct it's config file. If not there is sth
    wrong with squid.

    Hope it helps

    Regards


  3. Re: Squid & SquidGuard not working

    In the squidguard log file I am having squid ready for request.... Is
    there any prob with redirect program of squid..... pls....


  4. Re: Squid & SquidGuard not working

    How about squid log-files?

    There should be usefull information there. For example if squid fails
    to load squidguard for any reason, e.g. permission denied, it is
    reflected in the squid's cache.log file.
    I recommend to monitor cache.log real time in a terminal, e.g. using
    "tail -f cache.log" then start the squid daemon from the scratch and
    see what is going on the first terminal. If squid loads the squidguard
    properly it says in the cache.log and if not it shows an error message
    there.

    let me know the result


  5. Re: Squid & SquidGuard not working

    yea in the cache.log file there i find a message that cant open
    squidGuard.conf file with path, what may be the reason, in the path the
    file is there...

    2006-05-02 18:01:29 [5823] (squidGuard): can't write to logfile
    /usr/local/squidGuard/log/squidGuard.log
    2006-05-02 18:01:29 [5823] (squidGuard): can't open configfile
    /usr/local/squidGuard/squidGuard.conf

    what can i do for this...


  6. Re: Squid & SquidGuard not working

    thank you very much for ur service and now squid and squidGuard is
    working fine.....

    thank you very much for the response.....


  7. Re: Squid & SquidGuard not working

    hi,

    i am using squid 2.7 and squidguard1.4

    But my squidguard cant able to block urls.

    in squid.cache i see the error

    2006-05-02 18:01:29 [5823] (squidGuard): can't write to logfile
    /usr/local/squidGuard/log/squidGuard.log
    2006-05-02 18:01:29 [5823] (squidGuard): can't open configfile
    /usr/local/squidGuard/squidGuard.conf

    Please help me

  8. Re: Squid & SquidGuard not working

    Quote Originally Posted by vin1975 View Post
    hi,

    i am using squid 2.7 and squidguard1.4

    But my squidguard cant able to block urls.

    in squid.cache i see the error

    2006-05-02 18:01:29 [5823] (squidGuard): can't write to logfile
    /usr/local/squidGuard/log/squidGuard.log
    2006-05-02 18:01:29 [5823] (squidGuard): can't open configfile
    /usr/local/squidGuard/squidGuard.conf

    Please help me

    ===>check permissions on the squidGuard
    ===>change owner for squidGuard, db , log dir and files

+ Reply to Thread