Problemas no Squid [RESOLVIDO]

1. Problemas no Squid [RESOLVIDO]

Carlos Henrique Ramos
ramos1986

(usa Debian)

Enviado em 24/09/2010 - 14:55h

Boa tarde.

Estou com um problema em um servidor squid, o que acontece é o seguinte:
Existe um grupo de usuários que não podem acessar a internet, criei um arquivo com todos esses usuários, crieis acls, mais o bloqueio não acontece, segue baixo meu squid.conf.

#################### AUTENTICACAO #########################################
auth_param ntlm program /usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp
auth_param ntlm children 10
auth_param basic program /usr/bin/ntlm_auth --helper-protocol=squid-2.5-basic
auth_param basic children 5
auth_param basic realm Processo de Autenticacao
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
authenticate_cache_garbage_interval 10 seconds
authenticate_ttl 0 seconds

###########################################################################
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern (Release|Package(.gz)*)$ 0 20% 2880
refresh_pattern . 0 20% 4320

#################### ACLS DEFAULT ########################################
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
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 localnet src 192.168.32.0/24
acl SSL_ports port 443 # https
acl SSL_ports port 563 # snews
acl SSL_ports port 873 # rsync
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
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 Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
acl autenticacao proxy_auth REQUIRED

#################### ACLS KERBEROS ################################
#external_acl_type NT_global_group %LOGIN /usr/lib/squid/wbinfo_group.pl

#################### ACLS USUARIOS ################################
acl userslib proxy_auth "/etc/squid/arquivos/userslib"
acl usersblock proxy_auth "/etc/squid/arquivos/usersblock"

#################### ACLS LIBERA ###########################
acl lib_trafegolocal url_regex -i "/etc/squid/arquivos/lib_trafegolocal"
acl lib_extensoes url_regex -i "/etc/squid/arquivos/lib_extensoes"
acl lib_palavras url_regex -i "/etc/squid/arquivos/lib_palavras"
acl lib_foraexpediente url_regex -i "/etc/squid/arquivos/lib_foraexpediente"
acl exc_usersbloq url_regex -i "/etc/squid/arquivos/exc_usersbloq"

#################### ACLS BLOQUEIOS ########################
acl blq_palavras url_regex -i "/etc/squid/arquivos/blq_palavras"
acl blq_extensoes url_regex -i "/etc/squid/arquivos/blq_extensoes"

#################### ACLS HORARIOS #########################
acl hor_foraexpediente time "/etc/squid/arquivos/hor_foraexpediente"

#################### ACLS BRADESCO ########################
acl bradesco browser bradesco
acl bradesco browser bradescopessoajuridica
acl bradesco browser bradesconetempresa

#################### RESTRICOES DE PROXY ##################################
http_access allow manager localhost
http_access allow QUERY
http_access allow manager
http_access allow bradesco SSL_ports
http_access allow !Safe_ports
http_access allow CONNECT
http_access allow lib_trafegolocal
http_access allow lib_palavras
http_access allow lib_extensoes
http_access allow userslib blq_palavras !lib_trafegolocal
#http_access deny usuarios_bloqueados !exc_usersbloq !hor_foraexpediente !lib_trafegolocal
http_access deny usersblock
http_access deny blq_extensoes
http_access deny blq_palavras
http_access allow autenticacao
icp_access allow all
http_access deny all

###########################################################################
access_log /var/log/squid/access.log squid
logfile_rotate 10
error_directory /usr/share/squid/errors/Portuguese
hosts_file /etc/hosts
http_port 3128
coredump_dir /var/spool/squid

Obs: Meu squid está autenticado no AD, desde já agradeço.


  


2. Re: Problemas no Squid [RESOLVIDO]

Carlos Henrique Ramos
ramos1986

(usa Debian)

Enviado em 24/09/2010 - 16:53h

Agradeço a todos, mais já resolvi.






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts