Olá amigos da lista, estou configurando um proxy squid aqui em um servidor e 
estou com um problema.

Ao tentar acessar qualquer site do outro lado da rede, aparece a seguinte 
mensagem no browser: The cache was not able to resolve the hostname presented 
in the URL

Inicializei o squid em debug mode, veja o resultado:

[EMAIL PROTECTED] sbin]# ./squid -NCd10
2008/08/26 16:41:02| Starting Squid Cache version 3.0.STABLE2 for 
i386-redhat-li                                                                  
           nux-gnu...
2008/08/26 16:41:02| Process ID 1959
2008/08/26 16:41:02| With 1024 file descriptors available
2008/08/26 16:41:02| Performing DNS Tests...
2008/08/26 16:41:04| Successful DNS name lookup tests...
2008/08/26 16:41:04| DNS Socket created at 0.0.0.0, port 59480, FD 5
2008/08/26 16:41:04| Adding nameserver 115.255.1.45 from squid.conf
2008/08/26 16:41:04| Adding nameserver 115.255.1.46 from squid.conf
2008/08/26 16:41:04| User-Agent logging is disabled.
2008/08/26 16:41:04| Referer logging is disabled.
2008/08/26 16:41:04| Unlinkd pipe opened on FD 10
2008/08/26 16:41:04| Local cache digest enabled; rebuild/rewrite every 
3600/3600                                                                       
       sec
2008/08/26 16:41:04| Swap maxSize 102400 KB, estimated 7876 objects
2008/08/26 16:41:04| Target number of buckets: 393
2008/08/26 16:41:04| Using 8192 Store buckets
2008/08/26 16:41:04| Max Mem  size: 8192 KB
2008/08/26 16:41:04| Max Swap size: 102400 KB
2008/08/26 16:41:04| Version 1 of swap file with LFS support detected...
2008/08/26 16:41:04| Rebuilding storage in /var/spool/squid (CLEAN)
2008/08/26 16:41:04| Using Least Load store dir selection
2008/08/26 16:41:04| Set Current Directory to /var/spool/squid
2008/08/26 16:41:04| Loaded Icons.
2008/08/26 16:41:04| Accepting  HTTP connections at 0.0.0.0, port 3128, FD 12.
2008/08/26 16:41:04| Accepting ICP messages at 0.0.0.0, port 3130, FD 13.
2008/08/26 16:41:04| HTCP Disabled.
2008/08/26 16:41:04| Ready to serve requests.
2008/08/26 16:41:04| Done reading /var/spool/squid swaplog (0 entries)
2008/08/26 16:41:04| Finished rebuilding storage from disk.
2008/08/26 16:41:04|         0 Entries scanned
2008/08/26 16:41:04|         0 Invalid entries.
2008/08/26 16:41:04|         0 With invalid flags.
2008/08/26 16:41:04|         0 Objects loaded.
2008/08/26 16:41:04|         0 Objects expired.
2008/08/26 16:41:04|         0 Objects cancelled.
2008/08/26 16:41:04|         0 Duplicate URLs purged.
2008/08/26 16:41:04|         0 Swapfile clashes avoided.
2008/08/26 16:41:04|   Took 0.02 seconds (  0.00 objects/sec).
2008/08/26 16:41:04| Beginning Validation Procedure
2008/08/26 16:41:04|   Completed Validation Procedure
2008/08/26 16:41:04|   Validated 25 Entries
2008/08/26 16:41:04|   store_swap_size = 0
2008/08/26 16:41:05| storeLateRelease: released 0 objects

Me parece que está tudo ok, claro que estou tentando fazer o básico funcionar, 
depois criarei algumas acls para bloquear um pouco a utilização do squid.

Algumas configurações do meu squid.conf:
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl localnet src 10.0.0.0/8     # RFC1918 possible internal network
acl localnet src 172.16.0.0/12  # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
http_access allow manager localhost
http_access deny manager
http_access allow localnet
http_access allow localhost
http_access deny all
http_reply_access allow localnet
http_port 3128
dns_nameservers 115.255.1.45
dns_nameservers 115.255.1.46


agradeço qualquer dica..
Cristhiano




      
---------------------------------------------------------------------------
Esta lista é patrocinada pela Conectiva S.A. Visite http://www.conectiva.com.br

Arquivo: http://bazar2.conectiva.com.br/mailman/listinfo/linux-br
Regras de utilização da lista: http://linux-br.conectiva.com.br
FAQ: http://www.zago.eti.br/menu.html

Responder a