Problema com Redirecionamento Youtube do Lusca para o Thunder
Boa tarde pessoal.
Estou com o seguinte problema e peço ajuda de vcs:
não consigo desviar os pacotes do youtube para o thunder, através do lusca.
Depois que instalei o thunder5, mas como estou usando ele como parent do Lusca, e as regras de direcionamento no Lusca uso as mesmas do TC3
Código :
===============DESVIAR PARA O THUNDER========================================
acl thunder_lst url_regex -i "/usr/local/thunder/etc/thunder.lst"
cache deny thunder_lst
cache_peer x.x.x.2 parent 8080 0 proxy-only no-digest
dead_peer_timeout 2 seconds
cache_peer_access x.x.x.2 allow thunder_lst
cache_peer_access x.x.x.2 deny all
================NEGA CACHE LOCAL==============================
acl servercache dstdomain x.x.x.2
acl sites_sem_cache dstdomain -i "/usr/local/thunder/etc/thunder.lst"
always_direct allow sites_sem_cache
cache deny sites_sem_cache
cache deny servercache
=========================================================================
thunder.lst:
Código :
http.*\.4shared\.com.*(\.exe|\.iso|\.torrent|\.zip|\.rar|\.pdf|\.doc|\.tar|\.mp3|\.mp4|\.avi|\.wmv)
http.*\.avast\.com.*(\.def|\.vpu|\.vpaa|\.stamp)
http.*(\.avg\.com|\.grisoft\.com|\.grisoft\.cz).*(\.bin|\.exe)
http.*(\.avgate\.com|\.avgate\.net|\.freeav\.net|\.freeav\.com).*(\.gz)
#http.*\.bitgravity\.com.*(\.flv\.mp4)
http.*\.dailymotion\.com.*(\.flv|\.on2|\.h264|\.mp4)
#http.*\.etrustdownloads\.ca\.com.*(\.tar|\.zip|\.exe|\.pkg)
http.*flashvideo\.globo\.com.*(\.mp4|\.flv)
74\.125\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)
http.*\.googlevideo\.com.*videoplayback
#http.*fpatch\.grandchase\.com\.br.*(\.kom|\.mkom|\.mp3)
http.*(\.kaspersky-labs\.com|\.geo\.kaspersky\.com|kasperskyusa\.com).*(\.avc|\.kdc|\.klz|\.bz2|\.dat|\.dif)
#http.*\.mccont\.com.*\.flv
#http.*\.mediafire\.com.*(\.exe|\.iso|\.torrent|\.zip|\.rar|\.pdf|\.doc|\.tar|\.mp3|\.mp4|\.avi|\.wmv)
http.*\.megaupload\.com.*(\.exe|\.iso|\.torrent|\.zip|\.rar|\.pdf|\.doc|\.tar|\.mp3|\.mp4|\.avi|\.wmv)
#http.*\.megavideo\.com.*\.flv
http.*\.metacafe\.com.*\.flv
http.*(\.windowsupdate\.com|\.microsoft\.com).*(\.cab|\.exe|\.iso|\.zip|\.psf)
http.*\.pornhub\.com.*\.flv
#http.*\.pornotube\.com.*\.flv
http.*\.easy-share\.com.*(\.exe|\.iso|\.torrent|\.zip|\.rar|\.pdf|\.doc|\.tar|\.mp3|\.mp4|\.avi|\.wmv)
http.*\.redtube\.com\/.*flv
http.*\.terra\.com.*\.flv
#http.*media[a-z0-9]{2}\.tube8\.com.*.*\.flv
#http.*uol\.com\.br.*\.flv
#http.*\.viddler\.com.*\.flv
http.*\.video\.msn\.com.*\.flv
http.*\.vimeo\.com.*\.flv
#http.*\.xtube\.com.*\.flv
http.*\.xvideos\.com.*\.flv
#http.*\.youtube\.com.*
#http.*\.youtube\.com.*videoplayback.
#http.*\.youtube\.com.*videoplayback
#http.*\.youtube\.com.*videoplayback.*\.flv
#http.*\.youtube\.com.*videoplayback.*\.x-flv
#http.*\.youtube\.com\.*videoplayback.*
*\.youtube\.com.*
http.*\.youtube\.com.*
inclusive no final do thunder.lst vcs podem ver as tentativas que fiz para desviar o youtube.
segue um log do squid
Código :
286090153.006 1058 192.168.10.1 TCP_MISS/204 221 GET http://v18.lscache5.c.youtube.com/generate_204? - DIRECT/173.194.6.17 text/html
1286090157.445 421 192.168.10.1 TCP_MISS/302 787 GET http://v18.lscache5.c.youtube.com/videoplayback? - DIRECT/173.194.6.17 text/html
1286090157.593 1088 192.168.10.1 TCP_MISS/304 205 GET http://www.youtube.com/crossdomain.xml - FIRST_UP_PARENT/192.168.10.2 -
1286090160.740 476 192.168.10.1 TCP_MISS/204 333 GET http://www.youtube.com/get_video? - DIRECT/72.14.253.136 text/html
1286090163.663 432 192.168.10.1 TCP_MISS/200 541 GET http://www.youtube.com/live_comments? - DIRECT/72.14.253.136 text/xml
1286090165.320 16191 192.168.10.1 TCP_MISS/200 2640193 GET http://tc.v15.cache3.c.youtube.com/videoplayback? - DIRECT/208.117.241.35 video/x-flv
1286090170.465 158 192.168.10.1 TCP_MISS/204 340 GET http://www.youtube.com/player_204? - DIRECT/72.14.253.136 text/html
1286090174.861 162 192.168.10.1 TCP_MISS/200 383 GET http://www.youtube.com/set_awesome? - DIRECT/72.14.253.136 text/xml
1286090181.762 726 192.168.10.1 TCP_MISS/200 6178 GET http://www.youtube.com/xlb/watch/strings-pt_BR.xlb - FIRST_UP_PARENT/192.168.10.2 text/plain
1286090194.091 392 192.168.10.1 TCP_MISS/200 541 GET http://www.youtube.com/live_comments? - DIRECT/72.14.253.93 text/xml
1286090222.997 295 192.168.10.1 TCP_MISS/200 383 GET http://www.youtube.com/set_awesome? - DIRECT/72.14.253.190 text/xml
1286090254.505 394 192.168.10.1 TCP_MISS/200 542 GET http://www.youtube.com/live_comments? - DIRECT/72.14.253.91 text/xml
Ele só desvia arquivo sem importância.
Outro dia testei usar somente o thunder como proxy e cacheou youtube, normal.
E tb já testei usar um squid.conf mais parecido possível com o default, sem sucesso.
E abaixo meu squid.conf inteiro.
Código :
acl all src all
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 192.168.10.0/30 # RFC1918 possible internal network
acl localnet src 192.168.100.0/24
acl localnet src 192.168.200.0/24
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
acl thunder_lst url_regex -i "/usr/local/thunder/etc/thunder.lst"
cache deny thunder_lst
cache_peer 192.168.10.2 parent 8080 0 proxy-only no-digest
dead_peer_timeout 2 seconds
cache_peer_access 192.168.10.2 allow thunder_lst
cache_peer_access 192.168.10.2 deny all
acl servercache dstdomain 192.168.10.2
acl sites_sem_cache dstdomain -i "/usr/local/thunder/etc/thunder.lst"
always_direct allow sites_sem_cache
cache deny sites_sem_cache
cache deny servercache
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localnet
http_access deny all
icp_access allow localnet
icp_access deny all
http_port 5128 transparent
zph_mode tos
zph_local 0x30
hierarchy_stoplist cgi-bin ?
cache_mem 1500 MB
maximum_object_size_in_memory 256 KB
memory_replacement_policy heap GDSF
cache_replacement_policy heap LFUDA
cache_dir aufs /var/cache/squid 200000 64 256
maximum_object_size 100 MB
access_log /var/log/squid/access.log squid
cache_log /var/log/squid/cache.log
cache_store_log none
pid_filename /var/log/squid/squid.pid
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
negative_ttl 1 minutes
acl shoutcast rep_header X-HTTP09-First-Line ^ICY.[0-9]
upgrade_http0.9 deny shoutcast
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
vary_ignore_expire on
request_timeout 1 minutes
half_closed_clients off
pconn_timeout 15 seconds
mail_program none
cache_effective_user squid
cache_effective_group squid
visible_hostname ----------
client_persistent_connections off
detect_broken_pconn on
log_icp_queries off
max_filedescriptors 4096
check_hostnames off
dns_nameservers 8.8.8.8 208.67.222.222
dns_testnames registro.br netscape.com internic.net nlanr.net microsoft.com
ipcache_size 1024
fqdncache_size 1024
memory_pools off
reload_into_ims on
coredump_dir /var/cache
pipeline_prefetch on
n_aiops_threads 24
download_fastest_client_speed on
acho q estou comendo barriga, se alguém puder me ajudar,
e tb se vc leu até aqui já agradeço, rsrs
Muito obrigado.
Re: Problema com Redirecionamento Youtube do Lusca para o Thunder
ah, esqueci dum detalhe. isso só acontece com youtube.
Re: Problema com Redirecionamento Youtube do Lusca para o Thunder
Oi amigo, olha pelo que estive vendo la na bmsoft, o thunder5 não precisa de squid ou lusca ele trabalha sozinho, fazendo todo o serviço.
Experimenta fazer a configuração como o pessoal pede no forum, sem squid ou lusca.
Re: Problema com Redirecionamento Youtube do Lusca para o Thunder
eu sei disso, só que como uso a versão gratuita, tem a limitação das threads, por isso uso ele como parent
Re: Problema com Redirecionamento Youtube do Lusca para o Thunder
Ví falar que o lusca não funciona no thunder6 com o ubuntu 64 bits..
Porquê?
Re: Problema com Redirecionamento Youtube do Lusca para o Thunder
o lusca assim como squid vai apenas redirecionar o tráfego para o thunder. desde q vc consiga instalar o thunder no ubuntu, vc poderá fazer essa junção lusca + thunder. aqui to usando thunder5 com centos. não ficou 100% mas tá rodando, a versão free do thunder. no ubuntu não testei, mas deve funcionar sem problemas.
Re: Problema com Redirecionamento Youtube do Lusca para o Thunder
O bom do lusca é os relatórios de acesso por exemplo. Eu precisava disso aqui na minha rede.
Re: Problema com Redirecionamento Youtube do Lusca para o Thunder
ta rodando no ubuntu? tenta colocar o thunder, deve ficar show.