fernandovale
(usa Outra)
Enviado em 12/09/2012 - 18:58h
phrich,
Resolvi retomar o tópico da seguinte maneira,
tenho um windows server 2008 instalado rodando perfeito e coloquei o squid nele,
configurei e tudo mais, mandava iniciar o serviço aparentemente rodava mas não conseguia acessar,
rodei em modo depurado parece que ele ta em loop, pq ele chega a uma certa parte não da erro nem nada mas tbm nao vai pra frente.
da uma olhada ai ve se consegue ver algo:
Starting Squid Cache version 2.7.STABLE7 for i686-pc-winnt...
2012/09/12 18:43:53| Running on Windows Server 2008
2012/09/12 18:43:53| Process ID 1076
2012/09/12 18:43:53| With 2048 file descriptors available
2012/09/12 18:43:53| With 512 CRT stdio descriptors available
2012/09/12 18:43:53| Windows sockets initialized
2012/09/12 18:43:53| Using select for the IO loop
2012/09/12 18:43:53| Performing DNS Tests...
2012/09/12 18:43:53| Successful DNS name lookup tests...
2012/09/12 18:43:53| DNS Socket created at 0.0.0.0, port 60143, FD 4
2012/09/12 18:43:53| Adding nameserver 8.8.8.8 from squid.conf
2012/09/12 18:43:53| User-Agent logging is disabled.
2012/09/12 18:43:53| Referer logging is disabled.
2012/09/12 18:43:53| logfileOpen: opening log c:/squid/var/logs/access.log
2012/09/12 18:43:53| Unlinkd pipe opened on FD 7
2012/09/12 18:43:53| Swap maxSize 393216 + 8192 KB, estimated 30877 objects
2012/09/12 18:43:53| Target number of buckets: 1543
2012/09/12 18:43:53| Using 8192 Store buckets
2012/09/12 18:43:53| Max Mem size: 8192 KB
2012/09/12 18:43:53| Max Swap size: 393216 KB
2012/09/12 18:43:53| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2012/09/12 18:43:53| logfileOpen: opening log c:/squid/var/logs/store.log
2012/09/12 18:43:53| Rebuilding storage in c:/squid/var/cache (DIRTY)
2012/09/12 18:43:53| Using Least Load store dir selection
2012/09/12 18:43:53| Set Current Directory to c:/squid/var/cache
2012/09/12 18:43:53| Loaded Icons.
2012/09/12 18:43:53| Accepting proxy HTTP connections at 0.0.0.0, port 3128, FD 16.
2012/09/12 18:43:53| Accepting ICP messages at 0.0.0.0, port 3130, FD 17.
2012/09/12 18:43:53| Accepting HTCP messages on port 4827, FD 18.
2012/09/12 18:43:53| Accepting SNMP messages on port 3401, FD 19.
2012/09/12 18:43:53| Ready to serve requests.
2012/09/12 18:43:53| Done reading c:/squid/var/cache swaplog (0 entries)
2012/09/12 18:43:53| Finished rebuilding storage from disk.
2012/09/12 18:43:53| 0 Entries scanned
2012/09/12 18:43:53| 0 Invalid entries.
2012/09/12 18:43:53| 0 With invalid flags.
2012/09/12 18:43:53| 0 Objects loaded.
2012/09/12 18:43:53| 0 Objects expired.
2012/09/12 18:43:53| 0 Objects cancelled.
2012/09/12 18:43:53| 0 Duplicate URLs purged.
2012/09/12 18:43:53| 0 Swapfile clashes avoided.
2012/09/12 18:43:53| Took 0.0 seconds ( 0.0 objects/sec).
2012/09/12 18:43:53| Beginning Validation Procedure
2012/09/12 18:43:53| Completed Validation Procedure
2012/09/12 18:43:53| Validated 0 Entries
2012/09/12 18:43:53| store_swap_size = 0k
2012/09/12 18:43:54| storeLateRelease: released 0 objects
chega ai em modo depurado ele fica só piscando e nada,
o engraçado é que la no log do store: e access aparece isso
1347486199.930 RELEASE -1 FFFFFFFF 3D36516E60107FAC6E9DBDA5324FFFE0 504 1347486199 -1 -1 text/html 1254/1254 POST
http://safebrowsing.clients.google.com/safebrowsing/downloads?client=navclient-auto-ffox&appver=15.0.1&pver=2.2&wrkey=AKEgNisZwcSGDhH2rhd6vAvhV0dQ3m28AT_ylrg0NNyBvtWKecZ5Yw9OvmnfQ-QL12zF_R2xX_5rdGtnfh3tuqm6Rq1W0zThmA==">
http://safebrowsing.clients.google.com/safebrowsing/downloads?client=navclient-auto-ffox&appver=...
e access aparece isso:
1347486199.930 157170 192.168.1.16 TCP_MISS/504 1565 POST
http://safebrowsing.clients.google.com/safebrowsing/downloads? - DIRECT/safebrowsing.clients.google.com text/html
e o squid.conf que eu usei foi esse:
#########################################
# Inicio
#########################################
http_port 3128
visible_hostname srv1-t710
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
cache_mem 8 Mb
maximum_object_size 32 Mb
cache_dir aufs c:/squid/var/cache 384 20 512
access_log c:/squid/var/logs/access.log squid
cache_log c:/squid/var/logs/cache.log
cache_store_log c:/squid/var/logs/store.log
mime_table c:/squid/etc/mime.conf
pid_filename c:/squid/var/logs/squid.pid
unlinkd_program c:/squid/libexec/unlinkd.exe
icon_directory c:/squid/share/icons
error_directory c:/squid/share/errors/Portuguese
coredump_dir c:/squid/var/cache
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
#A configuração de Acesso está liberada
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 redelocal src 192.168.1.0/24 ## COLOQUE AQUI SUA RANGE DE IPS
acl skype_80 url_regex ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+:80
acl skype_443 url_regex ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+:443
######################################################################
# AS CONFIGURAÇÕES ABAIXO SÃO OPCIONAIS, MAS OPTANDO POR ELAS NÃO
#ESQUEÇA DE CRIAR A PASTA
# REGRAS E OS ARQUIVOS WHITELIST.TXT E BLACKLIST.TXT!!!!!!!!!!
######################################################################
acl whitelist url_regex “c:/squid/etc/regras/whitelist.txt”
http_access allow whitelist redelocal
acl blacklist url_regex “c:/squid/etc/regras/blacklist.txt”
http_access deny blacklist redelocal
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
http_access allow manager localhost
http_access deny manager
http_access allow CONNECT !SSL_ports
http_access allow redelocal
http_access deny all
http_reply_access allow all
icp_access allow all
dns_nameservers 8.8.8.8
dns_testnames 8.8.8.8
######################################################################
# FIM DA CONFIGURAÇÃO
######################################################################
vlw pela ajuda, abs