.:Leo:.
(usa CentOS)
Enviado em 09/02/2011 - 09:53h
Todas as minhas configurações:
#------------Squid---------------------#
#
acl manager proto cache_object
acl localhost src 127.0.0.1/32 ::1
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
#acl localnet src 10.0.0.0/8
acl redelocal src 192.168.0.0/16
acl SSL_ports port 443
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 CONNECT method CONNECT
#----------Https Padroes-----------#
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
#-----------------------------------#
#-----------------------------------#
http_access allow redelocal
#http_access allow localnet
http_access allow localhost
http_access deny all
#----------##############-----------#
# Porta Padrao do squid
http_port 3128 transparent
# Nome que aparece nas telas de alerta
visible_hostname Firewall
hierarchy_stoplist cgi-bin ?
cache_mem 888 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size 50 MB
cache_dir ufs /var/cache/squid 1000 16 256
cache_access_log /var/log/squid/access.log
ftp_user Squid@
# Leave coredumps in the first cache dir
coredump_dir /var/spool/squid
# Add any of your own refresh_pattern entries above these.
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
--------------------------------------------------------------
-> Iptables apenas com essas duas regras:
"iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 3128"
e
"iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE"
-----------------------------------------------------------------------
-> Configurações das interfaces
eth0 10.1.1.2 - conexao externa
eth1 192.168.0.1 - rede interna
-----------------------------------------------------------------------
e as rotas são as que citei no post acima.
--------------Servidor DHCP----------------------------
ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;
authoritative;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.101 192.168.0.199;
option routers 192.168.0.1;
option domain-name-servers 200.175.89.138,200.175.5.139;
option broadcast-address 192.168.0.255;
}
------------------------------------------------------------------
*Lembrando que só consigo navegar se mudar diretamento no browser, mas mesmo assim o windows acusa conexao nula ou limitada.
Como podem ver todas as configurações são bem básicas, mas mesmo assim ainda não vejo aonde está o problema.
Quem puder me ajudar fico agradecido.