brunorsantos
(usa Debian)
Enviado em 12/03/2016 - 11:52h
Pessoal, estou com dificuldade para limitar o acesso de usuários acessando a internet. Tenho o seguinte cenário para acesso a internet:
1 - Algumas pessoas acessando Tudo.
2 - Restante da empresa acessando apenas algumas páginas liberadas.
Estou definindo a acl "liberados" para as pessoas que tem permissão sem restrições, e logo abaixo estou definindo a acl "restrito" para os demais usuários que tem permissão para acessar apenas alguns sites definidos na acl "restrito_sites". O problema que acontece é que mesmo eu definindo essa política, os usuários que tem acesso restrito estão conseguindo acessar tudo na internet. Será que é algum erro na configuração, como corrigir o problema? Obrigado.
http_port 10.1.1.253:3128
visible_hostname fw.com.br
icp_port 0
htcp_port 0
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 512 MB
maximum_object_size 10240 KB
maximum_object_size_in_memory 4 MB
cache_swap_low 90
cache_swap_high 95
cache_dir ufs /var/spool/squid3 2048 16 256
cache_access_log /var/log/squid3/access.log
access_log /var/log/squid3/access.log squid
cache_log /var/log/squid3/cache.log
###########AUTENTICACAO#####################################
auth_param basic program /usr/lib/squid3/basic_ncsa_auth /etc/squid3/squid_usuarios
auth_param basic children 5
auth_param basic realm Digite seu Login e Senha
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
acl autenticados proxy_auth REQUIRED
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern (Release|Packages(.gz)*)$ 0 20% 2880
refresh_pattern . 0 20% 4320
cache_replacement_policy lru
memory_replacement_policy lru
################################ACL's############################################
acl all src all
#acl manager proto cache_object
acl localhost src 127.0.0.1/32
#acl to_localhost dst 127.0.0.0/8 ::1
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 liberados proxy_auth "/etc/squid3/liberados.txt"
acl restrito proxy_auth "/etc/squid3/restrito.txt"
acl restrito_sites url_regex -i "/etc/squid3/restrito_sites.txt"
#########################################
## REGRAS HTTP_ACCESS ##
#########################################
http_access allow CONNECT
#http_access allow manager localhost
#http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access allow restrito restrito_sites
http_access allow autenticados
http_access deny all
error_directory /usr/share/squid/errors/Portuguese
http_reply_access allow all
icp_access allow all
snmp_port 0
coredump_dir /var/spool/squid3