Enviado em 13/12/2010 - 11:28h
Bom dia pessoal!
Instalei o squid e configurei, mais não está bloqueando nada,segue abaixo meu squid.conf para visualização.Está bem pequeno com uma acl só, pois estava fazendo teste pra depois colocar outras acls mesmo assim não funcionou.
http_port 3128 transparent
visible_hostname srvproxy
error_directory /usr/share/squid/errors/Portuguese
acl all src 192.168.0.0/255.255.255.0
acl localhost src 127.0.0.1/255.255.255.255
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
http_access allow localhost
#clientes
acl informatica src "/etc/squid/ips.informatica"
#sites
acl sites.bloqueados url_regex -i "/etc/squid/sites.bloqueados"
#sem acesso
http_access deny informatica
http_access deny all
icp_access deny all
hierarchy_stoplist cgi-bin ?
access_log /var/log/squid/access.log squid
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
acl shoutcast rep_header X-HTTP09-First-Line ^ICY\s[0-9]
upgrade_http0.9 deny shoutcast
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
extension_methods REPORT MERGE MKACTIVITY CHECKOUT
hosts_file /etc/hosts
coredump_dir /var/spool/squid
No meu rc.local não pos nada ainda, eu coloquei uma regra que bloqueou, mais bloqueou o acesso de todos, ou seja, tive que tirar novamente, a regra que coloquei foi a seguinte:
#iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128
Por favor, me ajudem, não conseguir descobrir o que é.
Obrigado parceiros do VOL.
Instalei o squid e configurei, mais não está bloqueando nada,segue abaixo meu squid.conf para visualização.Está bem pequeno com uma acl só, pois estava fazendo teste pra depois colocar outras acls mesmo assim não funcionou.
http_port 3128 transparent
visible_hostname srvproxy
error_directory /usr/share/squid/errors/Portuguese
acl all src 192.168.0.0/255.255.255.0
acl localhost src 127.0.0.1/255.255.255.255
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
http_access allow localhost
#clientes
acl informatica src "/etc/squid/ips.informatica"
#sites
acl sites.bloqueados url_regex -i "/etc/squid/sites.bloqueados"
#sem acesso
http_access deny informatica
http_access deny all
icp_access deny all
hierarchy_stoplist cgi-bin ?
access_log /var/log/squid/access.log squid
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
acl shoutcast rep_header X-HTTP09-First-Line ^ICY\s[0-9]
upgrade_http0.9 deny shoutcast
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
extension_methods REPORT MERGE MKACTIVITY CHECKOUT
hosts_file /etc/hosts
coredump_dir /var/spool/squid
No meu rc.local não pos nada ainda, eu coloquei uma regra que bloqueou, mais bloqueou o acesso de todos, ou seja, tive que tirar novamente, a regra que coloquei foi a seguinte:
#iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128
Por favor, me ajudem, não conseguir descobrir o que é.
Obrigado parceiros do VOL.