- Squid + Modificações
+ Responder ao Tópico
-
Squid + Modificações
Galera o seguinte, segue minha regra que está sem autenticação, mas com blok de downlodas e sites, mas o seguinte: Queria por exemplo:
- 2 IP's liberaram somente alguns sites
- outros 2 liberarm somente alguns sites
- e o resto tudo ate downloads
Seriam tipo 3 regras prendidas a IP's que depois eu ira prender ao MAC,
como poderia adicionar nesta regra?
http_port 3128
visible_hostname proxy.xxxxx.com.br
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
acl internal_net src 192.168.0.0/24
#regras de bloqueio
acl blockedsites url_regex -i "/etc/squid/sites/bloqueados.txt"
acl download urlpath_regex -i "/etc/squid/download/bloqueados.txt
acl POST method POST
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 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 Safe_ports port 901 # SWAT
acl purge method PURGE
acl CONNECT method 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 deny blockedsites
http_access deny download !POST
http_access allow internal_net
http_access deny all
icp_access allow all
-
Squid + Modificações