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
 >


================================================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]


 
Links do Yahoo! Grupos

<*> Para visitar o site do seu grupo na web, acesse:
    http://br.groups.yahoo.com/group/squid-br/

<*> Para sair deste grupo, envie um e-mail para:
    [EMAIL PROTECTED]

<*> O uso que você faz do Yahoo! Grupos está sujeito aos:
    http://br.yahoo.com/info/utos.html

 



Responder a