Enviado em 20/03/2008 - 13:06h
Olá Pessoal, to com um problema com o squid 2.6...
transparente + firewall....debian etch 4.
aparentemente td bem, nenhum log indicando erro,
porém, todas as máquinas estão navegando liberadas, não respeitando as regras do squid,
gostaria q o squid trabalhasse liberando navegação total para os IPS Liberados e bloqueasse todos os demais apenas liberando os sites liberados
alguém pode me ajude por favor??
o conf do squid é esse:
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 128 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size 4096 KB
cache_dir ufs /var/cache/squid 500 16 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
#
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 ipsliberados src "/etc/squid/ips-liberados.txt"
acl sitesbloqueados url_regex -i "/etc/squid/sites-bloqueados.txt"
acl sitesliberados url_regex -i "/dados/Diretoria/Internet/sites-liberados.txt"
acl sem_cache url_regex "/etc/squid/sem-cache"
no_cache deny sem_cache
#
http_port 3128 transparent
visible_hostname server-linux
#
http_access allow manager localhost
http_access allow localhost
http_access allow ipsliberados
http_access allow sitesliberados
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny sitesbloqueados
http_access deny all
transparente + firewall....debian etch 4.
aparentemente td bem, nenhum log indicando erro,
porém, todas as máquinas estão navegando liberadas, não respeitando as regras do squid,
gostaria q o squid trabalhasse liberando navegação total para os IPS Liberados e bloqueasse todos os demais apenas liberando os sites liberados
alguém pode me ajude por favor??
o conf do squid é esse:
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 128 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size 4096 KB
cache_dir ufs /var/cache/squid 500 16 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
#
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 ipsliberados src "/etc/squid/ips-liberados.txt"
acl sitesbloqueados url_regex -i "/etc/squid/sites-bloqueados.txt"
acl sitesliberados url_regex -i "/dados/Diretoria/Internet/sites-liberados.txt"
acl sem_cache url_regex "/etc/squid/sem-cache"
no_cache deny sem_cache
#
http_port 3128 transparent
visible_hostname server-linux
#
http_access allow manager localhost
http_access allow localhost
http_access allow ipsliberados
http_access allow sitesliberados
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny sitesbloqueados
http_access deny all