Title: Mensagem
Beleza. Obrigado.

Mas o grande lance é o seguinte. Tudo funcionava bem, inclusive todos os bloqueios inseridos na acl "> > > acl blockedsites url_regex -i "/etc/squid/bloqueados/block.txt"", mas depois nao funcionou mais.
Isso é que está me tirando o sono e pior, NAO ESTA BLOQUEANDO NADA.

SOCORROOOOOOOOOO!

Mark Faro escreveu:
 
:) 
Isso..
eu acho que isso ai ja funciona direitinho.
So tenta fazer alguns filtros de portas pelo seu IPTABLES....
algumas coisas o squid nao barra.
 
 
-----Mensagem original-----
De: [email protected] [mailto:[email protected]] Em nome de Marceleza - Gmail
Enviada em: Tuesday, September 19, 2006 1:04 PM
Para: [email protected]
Assunto: Re: RES: [squid-br] Proxy transparente nao funciona

Vi que eh uma falha grave.

eSSE É O IDEAL?
> $IPTABLES -A FORWARD -s $INTERNET -d $LOCALNET -j ACCEPT
> $IPTABLES -A FORWARD -s $LOCALNET -d $INTERNET -j ACCEPT

Mark Faro escreveu:
 
-----Mensagem original-----
De: [email protected] [mailto:[email protected]] Em nome de Marceleza - Gmail
Enviada em: Tuesday, September 19, 2006 9:33 AM
Para: [email protected]
Assunto: [squid-br] Proxy transparente nao funciona

Pessoal,

Alguem me ajude por favor...

MEU PROXY NAO ESTA FUNCIONANDO. NAO CONSIGO BARRAR NADA. POR FAVOR ME
AJUDEM.


==============================IPTABLES
> INTERNET=0/0
> LOCALHOST=127.0.0.1
> LOCALNET=10.0.0.0/22
>
>
> IPTABLES=/sbin/iptables
> PUBLIC_IF=eth0
> LOCAL_IF=eth1
>
>
> $IPTABLES -F
> $IPTABLES -t nat -F
> $IPTABLES -t filter -F
> $IPTABLES -t mangle -F
> # ****************** #
> # Ativa o roteamento
> # ****************** #
> echo 1 > /proc/sys/net/ipv4/ip_forward
>
> # ********************************* #
> # Redirecionamento do PROXY         #
> # ********************************* #
> # Redireciona HTTP para máina
> $IPTABLES -t nat -A PREROUTING -i $LOCAL_IF -p tcp --dport 80 -j
> REDIRECT --to-port 8080
> $IPTABLES -t nat -A PREROUTING -i $LOCAL_IF -p udp --dport 80 -j
> REDIRECT --to-port 8080
>
> $IPTABLES -A FORWARD -s $INTERNET -d $INTERNET -j ACCEPT

> ??> eh isso mesmo?



================================================SQUID.CONF
> > > ################## INICIO DO ARQUIVO
> > > visible_hostname xxx.xxx.xxx.xx
> > > http_port 8080
> > > icp_port 0
> > > acl QUERY urlpath_regex cgi-bin \?
> > > no_cache deny QUERY
> > > no_cache allow QUERY
> > > cache_mem 512 MB
> > > maximum_object_size_in_memory 128 KB
> > > maximum_object_size 1024 MB
> > > minimum_object_size 0 KB
> > > cache_swap_low 90
> > > cache_swap_high 95
> > > cache_dir ufs /var/spool/squid 2048 16 256
> > > cache_access_log /var/log/squid/access.log
> > > #cache_access_log /dev/null
> > > dns_nameservers 200.255.125.211
> > >
> > >
> > > #proxy transparente
> > > httpd_accel_host virtual
> > > httpd_accel_port 80
> > > httpd_accel_with_proxy on
> > > httpd_accel_uses_host_header on
> > >
> > > acl localnet src 10.0.0.0/255.255.252.0
> > > acl localhost src 127.0.0.1/255.255.255.255
> > >
> > >
> > > acl Safe_ports port 80 443 210 119 70 20 21 1863 1025-65535
> > > acl CONNECT method CONNECT
> > > acl all src 0.0.0.0/0.0.0.0
> > > acl ips_acessofull url_regex -i
"/etc/squid/liberados/ips_acessofull.txt
> > > acl proxygw url_regex -i "/etc/squid/bloqueados/proxy/domains.txt"
> > > acl blockedsites url_regex -i "/etc/squid/bloqueados/block.txt"
> > > acl unblockedsites url_regex -i "/etc/squid/bloqueados/unblock.txt"
> > > acl malware_block_list url_regex -i
> > "/etc/squid/mbl/malware_block_list.txt"
> > >
> > >
> > >
> > > http_access allow localnet
> > > http_access allow localhost
> > > http_access allow ips_acessofull
> > > http_access deny malware_block_list
> > > http_access deny proxygw
> > > http_access deny blockedsites !unblockedsites
> > > http_access deny !Safe_ports
> > > http_access deny CONNECT
> > >
> > >
> > >
> > >
> > > ################## FIM DO ARQUIVO

__._,_.___

Enviar mensagem: [email protected]
Assinar:  [EMAIL PROTECTED]
Cancelar assinatura:  [EMAIL PROTECTED]
Proprietário da lista:  [EMAIL PROTECTED]






Yahoo! Grupos, um serviço oferecido por:


Links do Yahoo! Grupos

__,_._,___

Responder a