Menú

Mostrar Mensajes

Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.

Menú Mostrar Mensajes

Mensajes - btocarmona

#41
Cita de: firecold en Abril 10, 2014, 12:16:39 PM
Amigo probe lo que usted me dice en la misma pagina que comenta pero no me bloquea nada, vea:





Saludos

Amigo es rarisimo si abro en chrome no me bloquea pero si abro en mozilla no deja hacer la busqueda pruebalo y veras.
#42
ya me parecia, entre a mi host y el archivo el cual tenia como nombre facebook.jpg le cambie el nombre y me la dejo de bloquear,
aunque tambien cambie el orden de las reglas por lo pronto va todo bien.
lo deje asi a ver como va

http_access allow manager localhost
http_access deny manager all
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost !adblock
http_access deny adblock
http_access deny denegados


ya la prueba con algunos errores

en meteored pongo ministro ramos mexia como localidad y no me busca nada no entendia hasta que puse en el buscador de google la poblacion ministro ramos mexia y quedaba la pagina en blanco, entonces acorte y puse buscar solo ramos mexia, encontro y al hacer clic en esta direccion me dice acceso denegado

http://www.argentour.com/es/mapa/ciudad/ministro_ramos_mexia.php

será que bloquea palabras como ministro ? la verdad que esta buena esta implementacion pero sera que genera este tipo de bloqueos o sera que aun sigue algo mal, tu dices que lo tienes implementado amigo podras sacarme la duda si la palabra ministro ramos mexia esta bloqueada. Grcias
#43
Amigo crei que me habia quedado bien pero evidentemente no, resulta que ingreso a la pagina que me diste de ejemplo y efectivamente me bloquea las publicidades pero el error esta en una de is paginas donde tengo una imagen de un boton de facebook y no me lo muestra y si le pongo copiar url sobre el boton y pego la url en una nueva pesataña me dice acceso denegado como si la palabra o la imagen esa de facebook estuviera agregada a mi lista de denegados la verdad no se que es lo que pasa, volvere a poner las reglas como dices tu pero ya lo probe y no me bloquea las publi probare nuevamente

tu dices

http_access allow manager localhost
http_access deny manager all
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost !adblock
http_access deny denegados


Yo tengo

http_access allow manager localhost
http_access deny manager all
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny denegados
http_access deny adblock
#44
Bueno al fin lo hice andar entre prueba y prueba se me ocurrió ponerlo de eta manera

http_access allow manager localhost
http_access deny manager all
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny denegados
http_access deny adblock



y asi si me funciona los denegados y el bloqueo de publicidades muy buen post amigo con esta linea no me funciona http_access allow localhost !adblock no se porque, Bueno amigo Firecold buen post y desde ya muchas gracias por tu tiempo.
#45
Si amigo ya esta ejecutado el script se creo el adblock.acl que pesa 776 kb y tiene contenido como este

\&ad_box_
\&ad_channel=
\&ad_classid=
\&ad_height=
\&ad_keyword=
\&ad_number=
\&ad_type=
\&ad_type_
\&ad_url=
\&ad_zones=
\&adbannerid=
\&adclient=
\&adcount=
\&admeld_
\&admid=


inclusive te comento tengo una lista de denegados que tambien me dejo de funcionar ahora puedo entrar a los sitios que antes tenia en esa lista de denegados. no se que sera lo que esta mal
#46
No hay caso amigo no me funciona, inclusive reinicie todo el sistema e ingreso esta pagina y me muetras las publi igual




dejo todo mi squid.conf

#========================== Squid 3.x Conf ===========================#
#
# Opciones de SQUID 3.x
#----------------------------------------------------------------------
http_port 3128 intercept
visible_hostname proxy.os.com
icp_port 0
#----------------------------------------------------------------------
#error_directory /usr/share/squid3/errors/Spanish/
#----------------------------------------------------------------------
acl denegados url_regex -i "/etc/squid3/denegados.lst"
acl adblock url_regex "/etc/squid3/adblock.acl"
#----------------------------------------------------------------------
# Servidor DNS y Politica de Cambios
#----------------------------------------------------------------------
dns_nameservers 127.0.0.1 8.8.8.8
dns_retransmit_interval 5 seconds
dns_timeout 2 minutes
#----------------------------------------------------------------------
acl manager proto cache_object
acl localhost src 127.0.0.1/32 ::1
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
acl CONNECT method CONNECT

acl Safe_ports port 80          # http
acl Safe_ports port 21          # ftp
acl SSL_ports port 443
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 Safe_ports port 631         # cups
acl Safe_ports port 873         # rsync
acl Safe_ports port 901         # SWAT
acl Safe_ports port 1863        # MSN
#acl SSL_ports port 443          # https
acl SSL_ports port 563          # snews
acl SSL_ports port 873          # rsync

http_access allow manager localhost
http_access deny manager all
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost !adblock
http_access deny denegados adblock
#----------------------------------------------------------------------
coredump_dir /var/spool/squid3
#----------------------------------------------------------------------
# Memoria reservada para cache
# Se recomienda que dedique aprox. 5MB de RAM por cada 1GB asignado a cache_dir
#----------------------------------------------------------------------
cache_mem 512 MB
#----------------------------------------------------------------------
# Maximo tamaño de archivo en cache de memoria
#----------------------------------------------------------------------
maximum_object_size_in_memory 128 KB
#----------------------------------------------------------------------
# Maximo y minimo tamaño de archivos cache en el Disco duro
#----------------------------------------------------------------------
maximum_object_size 100 MB
minimum_object_size 4 KB
#----------------------------------------------------------------------
# Sustituir archivos de cache cuando llegue a 96%
#----------------------------------------------------------------------
cache_swap_low 92
cache_swap_high 96
#----------------------------------------------------------------------
# Total de espacio en HD a ser usado por el cache, numero de carpetas,
# numero de subcarpetas en cache
# 100000 = 100 GB
#----------------------------------------------------------------------
cache_dir aufs /var/spool/squid3/cache1 100000  16 256
#----------------------------------------------------------------------
# Estandar de actualización de cache
# 1 mes = 10080 mins, 1 dia = 1440 mins
#----------------------------------------------------------------------
refresh_pattern -i \.jpg$ 86400 80% 43200 reload-into-ims
refresh_pattern -i \.gif$ 86400 80% 43200 reload-into-ims
refresh_pattern -i \.png$ 86400 80% 43200 reload-into-ims
refresh_pattern -i \.jpeg$ 86400 80% 43200 reload-into-ims
refresh_pattern -i \.bmp$ 86400 80% 43200 reload-into-ims
refresh_pattern -i \.tif$ 86400 80% 43200 reload-into-ims
refresh_pattern -i \.tiff$ 86400 80% 43200 reload-into-ims

refresh_pattern -i \.swf$ 86400 80% 43200 reload-into-ims
refresh_pattern -i \.html$ 10 20% 4320 reload-into-ims
refresh_pattern -i \.htm$ 10 20% 4320 reload-into-ims
refresh_pattern -i \.shtml$ 10 20% 4320 reload-into-ims
refresh_pattern -i \.shtm$ 10 20% 4320 reload-into-ims
refresh_pattern -i \.nub$ 2880 80% 21600 reload-into-ims
refresh_pattern -i \.exe$ 86400 80% 43200
refresh_pattern -i \.zip$ 86400 80% 43200
refresh_pattern -i \.mov$ 86400 80% 43200
refresh_pattern -i \.mpe?g?$ 86400 80% 43200
refresh_pattern -i \.avi$ 86400 80% 43200
refresh_pattern -i \.qtm?$ 86400 80% 43200
refresh_pattern -i \.viv$ 86400 80% 43200
refresh_pattern -i \.wav$ 86400 80% 43200
refresh_pattern -i \.aiff?$ 86400 80% 43200
refresh_pattern -i \.au$ 86400 80% 43200
refresh_pattern -i \.ram?$ 86400 80% 43200
refresh_pattern -i \.snd$ 86400 80% 43200
refresh_pattern -i \.mid$ 86400 80% 43200
refresh_pattern -i \.mp2$ 86400 80% 43200
refresh_pattern -i \.mp3$ 86400 80% 43200
refresh_pattern -i \.sit$ 86400 80% 43200
refresh_pattern -i \.zip$ 86400 80% 43200
refresh_pattern -i \.hqx$ 86400 80% 43200
refresh_pattern -i \.arj$ 86400 80% 43200
refresh_pattern -i \.lzh$ 86400 80% 43200
refresh_pattern -i \.lha$ 86400 80% 43200
refresh_pattern -i \.cab$ 86400 80% 43200
refresh_pattern -i \.rar$ 86400 80% 43200
refresh_pattern -i \.tar$ 86400 80% 43200
refresh_pattern -i \.gz$ 86400 80% 43200
refresh_pattern -i \.z$ 86400 80% 43200
refresh_pattern -i \.a[0-9][0-9]$ 86400 80% 43200
refresh_pattern -i \.r[0-9][0-9]$ 86400 80% 43200
refresh_pattern -i \.txt$ 86400 80% 43200
refresh_pattern -i \.pdf$ 86400 80% 43200
refresh_pattern -i \.doc$ 86400 80% 43200
refresh_pattern -i \.rtf$ 86400 80% 43200
refresh_pattern -i \.tex$ 86400 80% 43200
refresh_pattern -i \.latex$ 86400 80% 43200
refresh_pattern -i \.class$ 86400 80% 43200
refresh_pattern -i \.js$ 86400 80% 43200
refresh_pattern -i \.ico$ 86400 80% 43200
refresh_pattern -i \.css$ 10 20% 4320
#----------------------------------------------------------------------
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern -i (/cgi-bin/|\?) 0     0%      0
#refresh_pattern (Release|Package(.gz)*)$       0       20%     2880
refresh_pattern .               0       20%     4320
#----------------------------------------------------------------------
# Log de acessos por el cache o para SARG
#----------------------------------------------------------------------
logfile_rotate 7
access_log /var/log/squid3/access.log
access_log /var/log/squid3/error.log
cache_store_log none
#----------------------------------------------------------------------
# Otras configuraciones
#----------------------------------------------------------------------
half_closed_clients off
server_persistent_connections off
client_persistent_connections off
log_fqdn off
quick_abort_min 0 KB
quick_abort_max 0 KB
quick_abort_pct 95
max_filedescriptors 65536
cache_effective_user proxy
cache_effective_group proxy
#----------------------------------------------------------------------
# Manteniendo objetos recientes y pequeños en memoria
#----------------------------------------------------------------------
memory_replacement_policy heap GDSF
cache_replacement_policy heap LFUDA
#----------------------------------------------------------------------
# Sitios que se les niega el cache  
#----------------------------------------------------------------------
acl nocache dstdomain .4shared.com .youtube.com .windowsupdate.com .gl$
no_cache deny nocache
#----------------------------------------------------------------------
# Negar cache para archivos con extension .asx e .asf |streaming|
#----------------------------------------------------------------------
acl asx url_regex -i \.asx$
cache deny asx
acl asf url_regex -i \.asf$
cache deny asf
#----------------------------------------------------------------------
acl raptor_lst url_regex -i "/etc/raptor/raptor.lst"
cache deny raptor_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 raptor_lst
cache_peer_access 192.168.10.2 deny all
# -----------------------------------------------------------------------------
# Qos_Flows
# -----------------------------------------------------------------------------
qos_flows local-hit=0x30
qos_flows parent-hit=0x32
qos_flows disable-preserve-miss
#----------------------------------------------------------------------
#47
Cita de: firecold en Abril 08, 2014, 11:58:06 AM
Sus aceptacion de reglas estan asi:

http_access allow manager localhost
http_access deny manager all
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny denegados
http_access deny adblock


Y deben de ir asi:

http_access allow manager localhost
http_access deny manager all
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost !adblock
http_access deny denegados adblock


Lo demas esta bien, saludos

Buenisimo amigo, ya lo deje de esa manera sabes de alguna manera para probar si me esta funcionando? gracias y disculpas por las molestias
#48
Entonces asi como puse mi squid.conf esta bien ? disculpa mi ignorancia.
#49
a ver si entendi amigo de lo que me parecia algo tan simple se me hizo un barullo barbaro
asi deje mi squid.conf
solo quiero bloquear los ad nada mas

remarco con negrita donde puse las lineas y dime si esta bien

#========================== Squid 3.x Conf ===========================#
#
# Opciones de SQUID 3.x
#----------------------------------------------------------------------
http_port 3128 intercept
visible_hostname proxy.os.com
icp_port 0
#----------------------------------------------------------------------
#error_directory /usr/share/squid3/errors/Spanish/
#----------------------------------------------------------------------
acl denegados url_regex -i "/etc/squid3/denegados.lst"
[b]acl adblock url_regex "/etc/squid3/adblock.acl"[/b]
#----------------------------------------------------------------------
# Servidor DNS y Politica de Cambios
#----------------------------------------------------------------------
dns_nameservers 127.0.0.1 8.8.8.8
dns_retransmit_interval 5 seconds
dns_timeout 2 minutes
#----------------------------------------------------------------------
acl manager proto cache_object
acl localhost src 127.0.0.1/32 ::1
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
acl CONNECT method CONNECT

acl Safe_ports port 80          # http
acl Safe_ports port 21          # ftp
acl SSL_ports port 443
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 Safe_ports port 631         # cups
acl Safe_ports port 873         # rsync
acl Safe_ports port 901         # SWAT
acl Safe_ports port 1863        # MSN
#acl SSL_ports port 443          # https
acl SSL_ports port 563          # snews
acl SSL_ports port 873          # rsync

http_access allow manager localhost
http_access deny manager all
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
[b]http_access deny denegados[/b]
http_access deny adblock
#----------------------------------------------------------------------
coredump_dir /var/spool/squid3
#----------------------------------------------------------------------
# Memoria reservada para cache
# Se recomienda que dedique aprox. 5MB de RAM por cada 1GB asignado a cache_dir
#----------------------------------------------------------------------
cache_mem 512 MB
#----------------------------------------------------------------------
# Maximo tamaño de archivo en cache de memoria
#----------------------------------------------------------------------
maximum_object_size_in_memory 128 KB
#----------------------------------------------------------------------
# Maximo y minimo tamaño de archivos cache en el Disco duro
#----------------------------------------------------------------------
maximum_object_size 100 MB
minimum_object_size 4 KB
#----------------------------------------------------------------------
# Sustituir archivos de cache cuando llegue a 96%
#----------------------------------------------------------------------
cache_swap_low 92
cache_swap_high 96
#----------------------------------------------------------------------
# Total de espacio en HD a ser usado por el cache, numero de carpetas,
# numero de subcarpetas en cache
# 100000 = 100 GB
#----------------------------------------------------------------------
cache_dir aufs /var/spool/squid3/cache1 100000  16 256
#----------------------------------------------------------------------
# Estandar de actualización de cache
# 1 mes = 10080 mins, 1 dia = 1440 mins
#----------------------------------------------------------------------
refresh_pattern -i \.jpg$ 86400 80% 43200 reload-into-ims
refresh_pattern -i \.gif$ 86400 80% 43200 reload-into-ims
refresh_pattern -i \.png$ 86400 80% 43200 reload-into-ims
refresh_pattern -i \.jpeg$ 86400 80% 43200 reload-into-ims
refresh_pattern -i \.bmp$ 86400 80% 43200 reload-into-ims
refresh_pattern -i \.tif$ 86400 80% 43200 reload-into-ims
refresh_pattern -i \.tiff$ 86400 80% 43200 reload-into-ims

refresh_pattern -i \.swf$ 86400 80% 43200 reload-into-ims
refresh_pattern -i \.html$ 10 20% 4320 reload-into-ims
refresh_pattern -i \.htm$ 10 20% 4320 reload-into-ims
refresh_pattern -i \.shtml$ 10 20% 4320 reload-into-ims
refresh_pattern -i \.shtm$ 10 20% 4320 reload-into-ims
refresh_pattern -i \.nub$ 2880 80% 21600 reload-into-ims
refresh_pattern -i \.exe$ 86400 80% 43200
refresh_pattern -i \.zip$ 86400 80% 43200
refresh_pattern -i \.mov$ 86400 80% 43200
refresh_pattern -i \.mpe?g?$ 86400 80% 43200
refresh_pattern -i \.avi$ 86400 80% 43200
refresh_pattern -i \.qtm?$ 86400 80% 43200
refresh_pattern -i \.viv$ 86400 80% 43200
refresh_pattern -i \.wav$ 86400 80% 43200
refresh_pattern -i \.aiff?$ 86400 80% 43200
refresh_pattern -i \.au$ 86400 80% 43200
refresh_pattern -i \.ram?$ 86400 80% 43200
refresh_pattern -i \.snd$ 86400 80% 43200
refresh_pattern -i \.mid$ 86400 80% 43200
refresh_pattern -i \.mp2$ 86400 80% 43200
refresh_pattern -i \.mp3$ 86400 80% 43200
refresh_pattern -i \.sit$ 86400 80% 43200
refresh_pattern -i \.zip$ 86400 80% 43200
refresh_pattern -i \.hqx$ 86400 80% 43200
refresh_pattern -i \.arj$ 86400 80% 43200
refresh_pattern -i \.lzh$ 86400 80% 43200
refresh_pattern -i \.lha$ 86400 80% 43200
refresh_pattern -i \.cab$ 86400 80% 43200
refresh_pattern -i \.rar$ 86400 80% 43200
refresh_pattern -i \.tar$ 86400 80% 43200
refresh_pattern -i \.gz$ 86400 80% 43200
refresh_pattern -i \.z$ 86400 80% 43200
refresh_pattern -i \.a[0-9][0-9]$ 86400 80% 43200
refresh_pattern -i \.r[0-9][0-9]$ 86400 80% 43200
refresh_pattern -i \.txt$ 86400 80% 43200
refresh_pattern -i \.pdf$ 86400 80% 43200
refresh_pattern -i \.doc$ 86400 80% 43200
refresh_pattern -i \.rtf$ 86400 80% 43200
refresh_pattern -i \.tex$ 86400 80% 43200
refresh_pattern -i \.latex$ 86400 80% 43200
refresh_pattern -i \.class$ 86400 80% 43200
refresh_pattern -i \.js$ 86400 80% 43200
refresh_pattern -i \.ico$ 86400 80% 43200
refresh_pattern -i \.css$ 10 20% 4320
#----------------------------------------------------------------------
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern -i (/cgi-bin/|\?) 0     0%      0
#refresh_pattern (Release|Package(.gz)*)$       0       20%     2880
refresh_pattern .               0       20%     4320
#----------------------------------------------------------------------
# Log de acessos por el cache o para SARG
#----------------------------------------------------------------------
logfile_rotate 7
access_log /var/log/squid3/access.log
access_log /var/log/squid3/error.log
cache_store_log none
#----------------------------------------------------------------------
# Otras configuraciones
#----------------------------------------------------------------------
half_closed_clients off
server_persistent_connections off
client_persistent_connections off
log_fqdn off
quick_abort_min 0 KB
quick_abort_max 0 KB
quick_abort_pct 95
max_filedescriptors 65536
cache_effective_user proxy
cache_effective_group proxy
#----------------------------------------------------------------------
# Manteniendo objetos recientes y pequeños en memoria
#----------------------------------------------------------------------
memory_replacement_policy heap GDSF
cache_replacement_policy heap LFUDA
#----------------------------------------------------------------------
# Sitios que se les niega el cache 
#----------------------------------------------------------------------
acl nocache dstdomain .4shared.com .youtube.com .windowsupdate.com .gl$
no_cache deny nocache
#----------------------------------------------------------------------
# Negar cache para archivos con extension .asx e .asf |streaming|
#----------------------------------------------------------------------
acl asx url_regex -i \.asx$
cache deny asx
acl asf url_regex -i \.asf$
cache deny asf
#----------------------------------------------------------------------
acl raptor_lst url_regex -i "/etc/raptor/raptor.lst"
cache deny raptor_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 raptor_lst
cache_peer_access 192.168.10.2 deny all
# -----------------------------------------------------------------------------
# Qos_Flows
# -----------------------------------------------------------------------------
qos_flows local-hit=0x30
qos_flows parent-hit=0x32
qos_flows disable-preserve-miss
#----------------------------------------------------------------------
#50
Amigo aca mi squid.conf

#========================== Squid 3.x Conf ===========================#
#
# Opciones de SQUID 3.x
#----------------------------------------------------------------------
http_port 3128 intercept
visible_hostname proxy.os.com
icp_port 0
#----------------------------------------------------------------------
#error_directory /usr/share/squid3/errors/Spanish/
#----------------------------------------------------------------------
acl denegados url_regex -i "/etc/squid3/denegados.lst"
#----------------------------------------------------------------------
# Servidor DNS y Politica de Cambios
#----------------------------------------------------------------------
dns_nameservers 8.8.8.8 8.8.4.4
dns_retransmit_interval 5 seconds
dns_timeout 2 minutes
#----------------------------------------------------------------------
acl manager proto cache_object
acl localhost src 127.0.0.1/32 ::1
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
acl CONNECT method CONNECT

acl Safe_ports port 80          # http
acl Safe_ports port 21          # ftp
acl SSL_ports port 443
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 Safe_ports port 631         # cups
acl Safe_ports port 873         # rsync
acl Safe_ports port 901         # SWAT
acl Safe_ports port 1863        # MSN
#acl SSL_ports port 443          # https
acl SSL_ports port 563          # snews
acl SSL_ports port 873          # rsync

http_access allow manager localhost
http_access deny manager all
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny denegados
#----------------------------------------------------------------------
coredump_dir /var/spool/squid3
#----------------------------------------------------------------------
# Memoria reservada para cache
# Se recomienda que dedique aprox. 5MB de RAM por cada 1GB asignado a cache_dir
#----------------------------------------------------------------------
cache_mem 512 MB
#----------------------------------------------------------------------
# Maximo tamaño de archivo en cache de memoria
#----------------------------------------------------------------------
maximum_object_size_in_memory 128 KB
#----------------------------------------------------------------------
# Maximo y minimo tamaño de archivos cache en el Disco duro
#----------------------------------------------------------------------
maximum_object_size 100 MB
minimum_object_size 4 KB
#----------------------------------------------------------------------
# Sustituir archivos de cache cuando llegue a 96%
#----------------------------------------------------------------------
cache_swap_low 92
cache_swap_high 96
#----------------------------------------------------------------------
# Total de espacio en HD a ser usado por el cache, numero de carpetas,
# numero de subcarpetas en cache
# 100000 = 100 GB
#----------------------------------------------------------------------
cache_dir aufs /var/spool/squid3/cache1 100000  16 256
#----------------------------------------------------------------------
# Estandar de actualización de cache
# 1 mes = 10080 mins, 1 dia = 1440 mins
#----------------------------------------------------------------------
refresh_pattern -i \.jpg$ 86400 80% 43200 reload-into-ims
refresh_pattern -i \.gif$ 86400 80% 43200 reload-into-ims
refresh_pattern -i \.png$ 86400 80% 43200 reload-into-ims
refresh_pattern -i \.jpeg$ 86400 80% 43200 reload-into-ims
refresh_pattern -i \.bmp$ 86400 80% 43200 reload-into-ims
refresh_pattern -i \.tif$ 86400 80% 43200 reload-into-ims
refresh_pattern -i \.tiff$ 86400 80% 43200 reload-into-ims

refresh_pattern -i \.swf$ 86400 80% 43200 reload-into-ims
refresh_pattern -i \.html$ 10 20% 4320 reload-into-ims
refresh_pattern -i \.htm$ 10 20% 4320 reload-into-ims
refresh_pattern -i \.shtml$ 10 20% 4320 reload-into-ims
refresh_pattern -i \.shtm$ 10 20% 4320 reload-into-ims
refresh_pattern -i \.nub$ 2880 80% 21600 reload-into-ims
refresh_pattern -i \.exe$ 86400 80% 43200
refresh_pattern -i \.zip$ 86400 80% 43200
refresh_pattern -i \.mov$ 86400 80% 43200
refresh_pattern -i \.mpe?g?$ 86400 80% 43200
refresh_pattern -i \.avi$ 86400 80% 43200
refresh_pattern -i \.qtm?$ 86400 80% 43200
refresh_pattern -i \.viv$ 86400 80% 43200
refresh_pattern -i \.wav$ 86400 80% 43200
refresh_pattern -i \.aiff?$ 86400 80% 43200
refresh_pattern -i \.au$ 86400 80% 43200
refresh_pattern -i \.ram?$ 86400 80% 43200
refresh_pattern -i \.snd$ 86400 80% 43200
refresh_pattern -i \.mid$ 86400 80% 43200
refresh_pattern -i \.mp2$ 86400 80% 43200
refresh_pattern -i \.mp3$ 86400 80% 43200
refresh_pattern -i \.sit$ 86400 80% 43200
refresh_pattern -i \.zip$ 86400 80% 43200
refresh_pattern -i \.hqx$ 86400 80% 43200
refresh_pattern -i \.arj$ 86400 80% 43200
refresh_pattern -i \.lzh$ 86400 80% 43200
refresh_pattern -i \.lha$ 86400 80% 43200
refresh_pattern -i \.cab$ 86400 80% 43200
refresh_pattern -i \.rar$ 86400 80% 43200
refresh_pattern -i \.tar$ 86400 80% 43200
refresh_pattern -i \.gz$ 86400 80% 43200
refresh_pattern -i \.z$ 86400 80% 43200
refresh_pattern -i \.a[0-9][0-9]$ 86400 80% 43200
refresh_pattern -i \.r[0-9][0-9]$ 86400 80% 43200
refresh_pattern -i \.txt$ 86400 80% 43200
refresh_pattern -i \.pdf$ 86400 80% 43200
refresh_pattern -i \.doc$ 86400 80% 43200
refresh_pattern -i \.rtf$ 86400 80% 43200
refresh_pattern -i \.tex$ 86400 80% 43200
refresh_pattern -i \.latex$ 86400 80% 43200
refresh_pattern -i \.class$ 86400 80% 43200
refresh_pattern -i \.js$ 86400 80% 43200
refresh_pattern -i \.ico$ 86400 80% 43200
refresh_pattern -i \.css$ 10 20% 4320
#----------------------------------------------------------------------
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern -i (/cgi-bin/|\?) 0     0%      0
#refresh_pattern (Release|Package(.gz)*)$       0       20%     2880
refresh_pattern .               0       20%     4320
#----------------------------------------------------------------------
# Log de acessos por el cache o para SARG
#----------------------------------------------------------------------
logfile_rotate 7
access_log /var/log/squid3/access.log
access_log /var/log/squid3/error.log
cache_store_log none
#----------------------------------------------------------------------
# Otras configuraciones
#----------------------------------------------------------------------
half_closed_clients off
server_persistent_connections off
client_persistent_connections off
log_fqdn off
quick_abort_min 0 KB
quick_abort_max 0 KB
quick_abort_pct 95
max_filedescriptors 65536
cache_effective_user proxy
cache_effective_group proxy
#----------------------------------------------------------------------
# Manteniendo objetos recientes y pequeños en memoria
#----------------------------------------------------------------------
memory_replacement_policy heap GDSF
cache_replacement_policy heap LFUDA
#----------------------------------------------------------------------
# Bloqueo de publicidades
#----------------------------------------------------------------------
acl adblock url_regex "/etc/squid3/adblock.acl"
http_access deny adblock
#----------------------------------------------------------------------
# Sitios que se les niega el cache 
#----------------------------------------------------------------------
acl nocache dstdomain .4shared.com .youtube.com .windowsupdate.com .gl$
no_cache deny nocache
#----------------------------------------------------------------------
# Negar cache para archivos con extension .asx e .asf |streaming|
#----------------------------------------------------------------------
acl asx url_regex -i \.asx$
cache deny asx
acl asf url_regex -i \.asf$
cache deny asf
#----------------------------------------------------------------------
acl raptor_lst url_regex -i "/etc/raptor/raptor.lst"
cache deny raptor_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 raptor_lst
cache_peer_access 192.168.10.2 deny all
# -----------------------------------------------------------------------------
# Qos_Flows
# -----------------------------------------------------------------------------
qos_flows local-hit=0x30
qos_flows parent-hit=0x32
qos_flows disable-preserve-miss
#----------------------------------------------------------------------
#51
Amigo pregunta
1-.si algo no funcionase hay forma de volver para atras ?
2-.esta bien como puse estas lineas en el Squid.conf pongo una parte.

#----------------------------------------------------------------------
# Manteniendo objetos recientes y pequeños en memoria
#----------------------------------------------------------------------
memory_replacement_policy heap GDSF
cache_replacement_policy heap LFUDA
#----------------------------------------------------------------------
# Bloqueo de publicidades
#----------------------------------------------------------------------
acl adblock url_regex "/etc/squid3/adblock.acl"
http_access deny adblock
#----------------------------------------------------------------------
# Sitios que se les niega el cache  
#----------------------------------------------------------------------
acl nocache dstdomain .4shared.com .youtube.com .windowsupdate.com .gl$
no_cache deny nocache
#----------------------------------------------------------------------
# Negar cache para archivos con extension .asx e .asf |streaming|
#----------------------------------------------------------------------
acl asx url_regex -i \.asx$
cache deny asx
acl asf url_regex -i \.asf$
cache deny asf
#----------------------------------------------------------------------
acl raptor_lst url_regex -i "/etc/raptor/raptor.lst"
cache deny raptor_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 raptor_lst
cache_peer_access 192.168.10.2 deny all
# -----------------------------------------------------------------------------
# Qos_Flows
# -----------------------------------------------------------------------------
qos_flows local-hit=0x30
qos_flows parent-hit=0x32
qos_flows disable-preserve-miss
#----------------------------------------------------------------------


Otra pregunta amigo al ejecutar en el cron estas lineas
#!/bin/bash

tmp_dir=$(mktemp -d)

rm_temp() {
rm -rf "${tmp_dir}"
rm /tmp/adblock.sed && return 0;
}

acl=/etc/squid3/adblock.acl

source=(
https://easylist-downloads.adblockplus.org/easyprivacy.txt
https://easylist-downloads.adblockplus.org/easylist.txt
https://easylist-downloads.adblockplus.org/easyprivacy_nointernational.txt
https://easylist-downloads.adblockplus.org/easylist_noadult.txt
https://easylist-downloads.adblockplus.org/fanboy-social.txt
)

cat > /tmp/adblock.sed <<'EOF'
/.*\$.*/d;
/\n/d;
/.*\#.*/d;
/@@.*/d;
/^!.*/d;
s/\[\]/\[.\]/g;
s#http://#||#g;
s/\/\//||/g
s/^\[.*\]$//g;
s,[+.?&/|],\\&,g;
s#*#.*#g;
s,\$.*$,,g;
s/\\|\\|\(.*\)\^\(.*\)/\.\1\\\/\2/g;
s/\\|\\|\(.*\)/\.\1/g;
/^\.\*$/d;
/^$/d;
EOF

mv $acl "$acl".old
cd $tmp_dir
wget -nv ${source[*]} || $(mv "$acl".old $acl && rm_temp)
sed -f /tmp/adblock.sed $(ls) >> $acl

rm_temp

# squid3 -k reconfigure


tambien debo volver a reiniciar el squid?
#52
Gracias amigo JoemG pero este gran aporte y actualización estaremos probando para comprobar como va, Saludos
#53
Plugins de música & videos / Re:Plugin de Muzofon
Abril 03, 2014, 12:15:18 PM
Gracias por el aporte amigo !
#54
Plugins para ThunderCache 3.1.2 / Re:Plugins Varios
Abril 02, 2014, 08:07:14 PM
Cita de: luistec en Abril 02, 2014, 06:13:17 PM
Eso ocurre porque en el codigo, en la linea 32 falta cerrar con un parentesis.

Saludos.

Muchas Gracias amigo Luistec por tu cooperacion se agradece mucho.

Saludos
#55
Plugins para ThunderCache 3.1.2 / Re:Plugins Varios
Abril 02, 2014, 06:01:40 PM
copio y pego en notepad + este plugin desde google chrome y al compilar me da error

mlstatic.com.cpp: In function 'resposta getmatch(std::string)':
mlstatic.com.cpp:33:14: error: expected ')' before '{' token
MOVIENDO PLUGINS Y CODIGOS
mv: no se puede efectuar `stat' sobre «*.so»: No existe el fichero o el directorio

no se que estará mal
#56
amigo quise compilar el de Disneylatino y da error

disneylatino.com.cpp:15:1: error: âtringâ does not name a type
disneylatino.com.cpp: In function âresposta getmatch(std::string)â:
disneylatino.com.cpp:62:37: error: âget_filenameâ was not declared in this scope
MOVIENDO PLUGINS Y CODIGOS
mv: no se puede efectuar `stat' sobre «*.so»: No existe el fichero o el directorio
#57
Amigos me podran dar una mano para hacer este plugin el modo de motrar el contenido es este

http://i2.wp.com/442.perfil.com/wp-content/uploads/2014/04/0401_barcelona_aleti_g7_afp.jpg?resize=372%2C255

yo cree el plugin de esta manera pero no me funciona

#include <iostream>
#include <cstring>
#include <vector>
#include "../utils.cpp"

// imagenes wp.com

// g++ -I. -fPIC -shared -g -o wp.com.so wp.com.cpp
// regex
// http.*\.wp\.com.*(\.jpg|\.png|\.swf|\.gif|\.mp3)

string get_filename(string url) {
               vector<string> resultado;
               if (url.find("?") != string::npos) {
                       stringexplode(url, "?", &resultado);
                       stringexplode(resultado.at(resultado.size()-2), "/", &resultado);
                       return resultado.at(resultado.size()-1);          
               } else {
                       stringexplode(url, "/", &resultado);
                       return resultado.at(resultado.size()-1);
               }
}

extern "C" resposta getmatch(const string url) {
   resposta r;

       if ( (url.find("wp.com/") != string::npos) and
            ( (url.find(".jpg") != string::npos) or
            (url.find(".png") != string::npos) or
            (url.find(".swf")!= string::npos) or
            (url.find(".gif")!= string::npos) or
            (url.find(".mp3")!= string::npos))
            {
               
           r.file = get_filename(url);
               if (!r.file.empty()) {
                       r.match = true;
                       r.domain = "wp.com";
               } else {
                       r.match = false;
               }
       } else {
               r.match = false;
       }
       return r;
}


y si le pongo asi

(url.find(".wp.com/")

tampoco funciona quien me da una mano?

y para este otro sitio tampoco me sale el plugin

http://appnoticias.com.ar/fotos/redimensionar_galeria_script.php?imagen=002805.jpg
#58
Plugins para ThunderCache 3.1.2 / Re:Plugins Varios
Abril 01, 2014, 10:37:35 PM
No se que es lo que pasa que no puedo compilar ninguno de los pugins estos, me dan todos error, alguien tiene el cpp de mercadolibre ?
#59
Firecold Gracias por tu respuesta, hice lo que me comentas y cuando reinicio me doy cuenta de que salta un error en la carga de debian y quizas eso este afectando mi raptor
me dice algo de
Warning Domain name service lwresd error
y me nombra algo de bind9


te adjunto un txt porque me da error el foro
#60
Amigos les hago una consulta quizas tonta para algunos pero que yo desconozco, quise hacer un scandisk a mi disco ya que sospecho que mi raptor se detiene en entragar el contenido y sospecho que sea mi disco rigido para ello quise hacer una scandisk y ejecute fsck -fyC y me dice que no se puede y me escribe algo como e2fsck por lo que sospecho que es una nueva version del mismo googlee y los comandos son los mismos y al ejecutarlo me dice que la unidad esta en uso por lo que me pide desmontarla cosa que no puedo ya que tengo instalado todo en un solo disco de 1 tb,
como puedo escanear mi disco sin tene que instalar en otro disco linux y no tengo inngun cd booteable, desde ya muchas gracias