enigmabrasil
(usa Outra)
Enviado em 01/08/2012 - 14:19h
Olá a todos, montei um servidor squid no CentOS (6.2 X86_64) (Squid 3) quando testo o serviço na maquina cliente na rede, aparece a mensagem que o servidor proxy esta recusando conexão.
Segue a configuração feita.
Eth1 ----> Placa de rede com acesso a internet
ip 192.168.254.5/24 gw 192.168.254.254 dns 192.168.254.254
Eth0 -----> Placa usada para a rede interna.
Ip 192.168.0.100/24 gw 127.0.0.1 dns 127.0.0.1
Tenho conexão do servidor com a internet, tanto do cliente com o servidor (inclusive conecto via ssh no server atraves da maquina cliente), o squid funciona perfeitamente no servidor quando altero a linha
acl localnet src 192.168.0.0/24 para acl localnet src 192.168.254.0/24
Aonde posso estar errando?
Grato a todos segue abaixo o squid.conf.
http_port 3128
visible_hostname servidor
cache_mgr webmaster@localhost
error_directory /usr/share/squid/errors/pt-br
hierarchy_stoplist cgi-bin ?
cache_mem 32 MB
maximum_object_size_in_memory 64 KB
maximum_object_size 100 MB
cache_dir ufs /var/spool/squid 2048 16 256
refresh_pattern ^ftp: 360 20% 10080
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
acl localhost src 127.0.0.1/32
acl localnet src 192.168.0.0/24
acl manager proto cache_object
http_access allow manager localhost
http_access deny manager
acl purge method PURGE
http_access allow purge localhost
http_access deny purge
acl Safe_ports port 21 # ftp
acl Safe_ports port 70 # gopher
acl Safe_ports port 80 # http
acl Safe_ports port 210 # wais
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 443 # https
acl Safe_ports port 488 # gss-http
acl Safe_ports port 563 # nntps
acl Safe_ports port 591 # filemaker
acl Safe_ports port 631 # cups
acl Safe_ports port 777 # multiling http
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # swat
acl Safe_ports port 1025-65535 # unregistered ports
http_access deny !Safe_ports
acl connect method CONNECT
acl SSL_ports port 443 # https
acl SSL_ports port 563 # nntps
acl SSL_ports port 873 # rsync
http_access deny connect !SSL_ports
acl dominios dstdomain "/etc/squid/dominios"
http_access deny dominios
acl words url_regex -i "/etc/squid/words"
http_access deny words
acl extensions urlpath_regex -i "/etc/squid/extensions"
http_access deny extensions
http_access allow localnet
http_access allow localhost
http_access deny all