+ Responder ao Tópico



  1. #1

    Padrão squid + squidguard

    Caros, estou com um problema, tentei implementar o squid + squidguard, os dois serviços levantam sem nenhum problema, no squid.conf coloquei o "redirect_program /usr/bin/squidGuard -c /etc/squid/squidGuard.conf" pra subir o squidguard nos logs do squidguard diz q esta esperando requisição, so que as regras nao esta bloqueando.
    Saberiam me dizer o q pode ser??

    Grato

  2. #2

    Padrão Re: squid + squidguard

    Posta a sua configuração aí.

  3. #3

    Padrão Re: squid + squidguard

    Citação Postado originalmente por xstefanox
    Posta a sua configuração aí.
    la vai entao..

    ##squid.conf####################################
    http_port 10.0.0.1:3128

    hierarchy_stoplist cgi-bin ?
    acl QUERY urlpath_regex cgi-bin \?
    cache deny QUERY
    #acl apache rep_header Server ^Apache
    #broken_vary_encoding allow apache

    cache_mem 8 MB
    cache_swap_low 90
    cache_swap_high 95

    maximum_object_size 16384 KB
    minimum_object_size 0 KB
    maximum_object_size_in_memory 20 KB

    cache_dir ufs /var/log/squid/cache 1000 16 256

    access_log /var/log/squid/logs/access.log squid
    cache_log /var/log/squid/logs/cache.log
    cache_store_log /var/log/squid/logs/store.log
    pid_filename /var/log/squid/logs/squid.pid

    ftp_passive on

    redirect_program /usr/bin/squidGuard -c /etc/squid/squidGuard.conf

    #auth_param basic program /usr/libexec/ncsa_auth /etc/squid/authentic
    #auth_param basic children 5
    #auth_param basic realm Digite sua senha:
    #auth_param basic credentialsttl 2 hours
    #auth_param basic casesensitive on


    refresh_pattern ^ftp: 1440 20% 10080
    refresh_pattern ^gopher: 1440 0% 1440
    refresh_pattern . 0 20% 4320

    #acl auth proxy_auth REQUIRED

    acl rede10 src 10.0.0.0/255.255.255.0

    acl all src 0.0.0.0/0.0.0.0
    acl manager proto cache_object
    acl localhost src 127.0.0.1/255.255.255.255
    acl to_localhost dst 127.0.0.0/8
    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 Safe_ports port 1025-65535 # unregistered ports
    acl Safe_ports port 280 # http-mgmt
    acl Safe_ports port 488 # gss-http
    acl Safe_ports port 591 # filemaker
    acl Safe_ports port 777 # multiling http
    acl CONNECT method CONNECT

    #acl deep proxy_auth "/etc/squid/users/deep"

    acl extensoes_blocked urlpath_regex -i .scr$ .exe$ .mp3$

    acl blocked_domains dstdom_regex -i "/etc/squid/blocked/domains"
    acl blocked_urls url_regex -i "/etc/squid/blocked/urls"

    acl unblocked_domains dstdom_regex -i "/etc/squid/unblocked/domains"
    acl unblocked_urls url_regex -i "/etc/squid/unblocked/urls"

    acl rede10_blocked src "/etc/squid/ips/ips_blocked"
    acl rede10_unblocked src "/etc/squid/ips/ips_unblocked"

    #http_access allow deep !deep_url_block
    #http_access deny deep !deep_url_unblock

    http_access allow rede10_blocked !blocked_domains !blocked_urls !extensoes_blocked
    http_access deny rede10_blocked !unblocked_domains !unblocked_urls

    http_access allow manager localhost
    http_access deny manager
    http_access deny !Safe_ports
    http_access deny CONNECT !SSL_ports
    http_access deny all
    http_reply_access allow all

    httpd_accel_no_pmtu_disc on
    ie_refresh on

    icp_access allow all
    cache_effective_user squid
    error_directory /usr/share/squid/errors/Portuguese
    coredump_dir /var/log/squid/cache

    ### fim ###

    ### squidGuard.conf ###

    logdir /usr/local/squidGuard/log
    dbhome /usr/local/squidGuard/db

    src escritorio {
    ip 10.0.0.0/24
    }

    dest porn {
    domainlist domains
    }

    acl {
    escritorio {
    pass !porn all
    }

    default {
    pass none
    }
    }


    ### fim ###

    squid v. 2.6stable2
    squidguard 1.2


    Grato

  4. #4

    Padrão Re: squid + squidguard

    e ai alg teria alguma ideia do q pode estar acontecendo?