Celso_Linuxer
(usa Linux Mint)
Enviado em 18/07/2009 - 13:59h
Galera pedi ajuda no VOL mas nao fui bem esclarecido vou começar do principio
meu squid esta bloqueando tudo
observe o meu iptables.conf
#!/bin/bash
#
# /etc/etc/init.d/iptables.conf
#
# Limpa e inicializa os modulos
#******************************
#
iptables -F
iptables -t nat -F
iptables -t mangle -F
modprobe iptable_nat
#
# Proxy transparente (Redireciona para o squid) - eth1 -> Placa de rede da intranet
#********************************************************
#
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 3128
#
# Compartilha Internet - eth0 -> Placa de rede da internet
#********************************************************
#
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
OBSERVEM AGORA O MEU SQUID.CONF
# Configuração Geral
#*******************
#
http_port 3128
cache_mem 32 MB
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
pid_filename /var/run/squid.pid
error_directory /usr/share/squid/errors/Portuguese
emulate_httpd_log on
visible_hostname marinpneus.fw
cache_mgr celsoaristides@yahoo.com.br
#=======================
# *** Proxy Transparente
#=======================
#
#http_port 3128 transparent
#
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
#=======================
# *** acl - Recomendadas
#=======================
#
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 # https, snews
acl SSL_ports port 873 # rsync
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 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
#
#=================================================
# *** acl - Personalizadas Define portas liberadas
#=================================================
#
acl Safe_ports port 3050 # Interbase/Firebird
acl Safe_ports port 23000 # Serpro
acl Safe_ports port 13352 # SIRF
acl Safe_ports port 500 # FAP Digital
#=====================================
# *** Define a rede interna (Intranet)
======================================
#
acl intranet src 10.0.0.0/255.0.0.0
#===============================
# *** http_access - Recomendadas
#===============================
#
http_access allow localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
#=======================
# *** Declarando as acls
#=======================
#
acl acesso_total src "/etc/squid/acesso_total"
acl acesso_restrito src "/etc/squid/acesso_restrito"
acl sites_liberados url_regex -i "/etc/squid/sites_liberados"
http_access deny sites_liberados !acesso_total
http_access deny acesso_restrito
http_access allow intranet
http_access deny all
NO SITES_LIBERADOS ESTA APENAS O SITE .gvipromotora.com.br
NO ACESSO_RESTRITO ESTA APENAS OS IPS 10.0.0.21 10.0.0.22 10.0.0.23
NO ACESSO_TOTAL ESTA APENAS O IP 10.0.0.20
O SQUID ESTA BLOQUEANDO TUDOOO!!
AJUDA