-
Galera agradeço a todos mas to fora desse Lusca....
Voltei ao meu bom e velho amgio Squid 2.7 stable.
E a todos que tetou me ajuda meu muito obrigado.
Quando tiver mais informaçao sobre o Lusca talvez eu tente novamente.
Novamente meu muito Obrigado a todos que tetaram me ajudar.
-
aqui instalei ele usando a configuração abaixo:
./configure '--prefix=/usr' '--exec_prefix=/usr' '--bindir=/usr/sbin' '--sbindir=/usr/sbin' '--libexecdir=/usr/lib/squid' '--sysconfdir=/etc/squid' '--localstatedir=/var/spool/squid' '--datadir=/usr/share/squid' '--enable-async-io' '--with-pthreads' '--enable-storeio=aufs,null' '--enable-linux-netfilter' '--enable-arp-acl' '--enable-epoll' '--enable-removal-policies=lru,heap' '--enable-snmp' '--enable-delay-pools' '--enable-htcp' '--enable-cache-digests' '--enable-referer-log' '--enable-useragent-log' '--enable-auth=basic,digest,ntlm' '--enable-follow-x-forwarded-for' '--with-large-files' '--with-maxfd=65536' 'i386-debian-linux' 'build_alias=i386-debian-linux' 'host_alias=i386-debian-linux' 'target_alias=i386-debian-linux' 'CFLAGS=-Wall -O2' 'LDFLAGS=' 'CPPFLAGS='
mais o problema que ele somente funciona se desativo o access.log, meu squid.conf esta como abaixo:
# MK-AUTH SISTEMA PARA ADMINISTRACAO DE PROVEDORES MIKROTIK
http_port 3128 transparent
visible_hostname mk-auth
icp_port 0
# retira o cache dos dinamicos
hierarchy_stoplist cgi-bin
acl QUERY urlpath_regex cgi-bin
cache deny QUERY
# cache de ip acessados
ipcache_size 1024
ipcache_low 90
ipcache_high 95
fqdncache_size 1024
mime_table /etc/squid/mime.conf
pid_filename /var/run/squid.pid
# arquivos de Log retirados para melhor desempenho
access_log /dev/null
cache_access_log /dev/null
cache_log /dev/null
cache_store_log /dev/null
# tamanho maximo do cache em memoria ram
cache_mem 400 MB
cache_swap_low 90
cache_swap_high 95
# tamanho maximo de arquivo que o cache irar guardar
maximum_object_size 30 MB
minimum_object_size 0 KB
maximum_object_size_in_memory 40 KB
# diretorio onde serao ficarao armazenado o cache das paginas.
# O 50000 MBs do HD que sera reservado para o meu cache.
cache_dir aufs /var/spool/squid 50000 16 256
acl semcache url_regex "/etc/squid/direto.lst"
cache deny semcache
always_direct allow semcache
# Lista de sites proibidos para a rede toda
acl proibidos dstdom_regex "/etc/squid/proibidos.lst"
# toda a internet
acl all src 0.0.0.0/0.0.0.0
# redes invalidas, nao sao da internet
acl rede src 127.0.0.1/32 5.0.0.0/8 169.254.0.0/16 192.168.0.0/16 10.0.0.0/8 172.16.0.0/16 172.17.0.0/16 172.18.0.0/16 172.19.0.0/16 172.20.0.0/16 172.21.0.0/16 172.22.0.0/16 172.23.0.0/16 172.24.0.0/16 172.25.0.0/16 172.26.0.0/16 172.27.0.0/16 172.28.0.0/16 172.29.0.0/16 172.30.0.0/16 172.31.0.0/16
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/32
acl SSL_ports port 443 563
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 901 # SWAT
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny proibidos
http_access allow rede
http_access deny all
# usuario que executa o servidor proxy
cache_effective_user proxy
cache_effective_group proxy
error_directory /usr/share/squid/errors/Portuguese
coredump_dir /var/spool/squid
client_persistent_connections off
server_persistent_connections off
request_timeout 30 seconds
pconn_timeout 120 seconds
# Marcacao feita pelo Zero Penalty HIT
zph_tos_local 0x30
zph_tos_peer 0
zph_tos_parent off
-
resolvido o problema do access.log, mudei a permissão do mesmo para 666, irei testa agora e ver se ele realmente legal como parece, o bom é que o mesmo já tem o zph incluso e alguns patches legais tb ....
-
#compilando
./configure --libexecdir=/usr/lib/squid --localstatedir=/var --prefix=/usr --sysconfdir=/etc/squid --enable-async-io --with-pthreads --enable-heap-replacement --enable-coss-aio-ops --enable-ssl --enable-htcp --enable-arp-acl --enable-removal-policies=lru,heap --disable-hostname-checks --enable-default-err-language=Portuguese --enable-err-languages=Portuguese --enable-linux-netfilter --enable-snmp --disable-ident-lookups --with-maxfd=65536 --enable-storeio=aufs,diskd,ufs,null,coss --enable-epoll
make &&
make install
eu consegui dessa forma.
Agradeço a todos que me ajudaram , agora vou ver se realmente me atende.
Heim Pedro vai postando ai suas experiencia com o Lusca.
ai vou postanto a minha tambem
-
criei uma ISO do debian com o lusca já instalado, a url para download é: http://bit.ly/PJN92 e o manual de instalação: http://mk-auth.ning.com/page/instalacao-1 adicionei tb um script em perl para que ele faça cache do youtube...