Squid. O que tem de errado?
Citação:
http_port 192.168.1.1:3128
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 100 MB
cache_swap_low 90
cache_swap_high 95
cache_dir ufs /var/spool/squid 100 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 bloquear url_regex -i "/etc/squid/bloqueados"
http_access deny bloquear
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
acl our_networks src 192.168.1.0/24 192.168.25.0/24 192.168.24.0/24 192.168.23.0/24 192.168.22.0/24 192.168.21.0/24 10.10.25.0/24 10.10.24.0/24 10.10.23.0/24 10.10.22.0/24 10.10.21.0/24
http_access allow our_networks
http_access allow localhost
http_reply_access allow all
icp_access allow all
visible_hostname tibagi
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
http_port 3128
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
Cara, taí o meu squid. Faz o favor de dar uma analizada.
O #squid -k rotate não funfa. Apesar da minha conexão de 1 mega, é lento. Como tem umas acl aí, acho que tá habilitado.
Ta bloquando legal os sites que estão na lista, inclusive o MSN.
Valeu pela força.
Squid. O que tem de errado?
Alguem tem uma dica ae??? :toim: :toim: :toim:
Squid. O que tem de errado?
eu concordo com o stefano acho que nao da pra usar 3 acls em um comando soh
Código :
acl bloqueados url_regex -i "/etc/squid/bloqueados"
acl rango time SMTWHFA 11:30-13:00
acl vazar time SMTWHFA 17:00-23:00
http_access deny bloqueados !rango vazar
ja tentou fazer assim?
Squid. O que tem de errado?
Já tentei, cara.
Com time ou sem time ainda dá erro.
Squid. O que tem de errado?
me refiro a essa linha:
Código :
http_access deny bloqueados !rango vazar
ali ao invez de usar dois ! usar apenas uma exclamacao