No puedo hacer funcionar bien el SQUID (solucionado) [INACTIVE]

Foro dedicado a Argento QoS, Argento Bridge y HDB.

No puedo hacer funcionar bien el SQUID (solucionado)

Mensagempor strike40 » Dom Fev 14, 2010 1:33 pm

hola gente pues nada,
Primero que todo si me Sale SQUID funcionando.
Pero, es como si las pc's no pasaran por el squid, pongo algunas paginas en prohibidos y igual puedo acceder a ellas.


este es mi squid.conf

Código: Selecionar todos
acl all src 192.168.0.0/24
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8

acl pc_blanca src "/argentobr/squid/pc_blanca"
acl pc_negra src "/argentobr/squid/pc_negra"
acl NO_cache dstdomain -i "/argentobr/squid/no_cache"
acl sitios_prohibidos url_regex -i "/argentobr/squid/sitios_prohibidos"
acl sitios_inocentes url_regex -i "/argentobr/squid/sitios_inocentes"
acl lista_extensiones urlpath_regex -i "/argentobr/squid/lista_extensiones"

#server_persistent_connections off
#tcp_outgoing_address 192.168.1.20 localnet


#
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
# Deny requests to unknown ports
http_access deny !Safe_ports
# Deny CONNECT to other than SSL ports
http_access deny CONNECT !SSL_ports
##########################

hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny NO_cache
no_cache deny QUERY
acl normal_service_net src 192.168.1.46
acl good_service_net src 192.168.1.47
tcp_outgoing_tos 0x00 normal_service_net
tcp_outgoing_tos 0x08 good_service_net
http_access allow pc_negra sitios_inocentes
http_access allow pc_negra !sitios_prohibidos
http_access deny pc_negra
http_access allow pc_blanca
#http_access allow localnet
http_access deny all

icp_access allow pc_blanca
icp_access deny all

http_port 8080 transparent

cache_mem 128 MB
maximum_object_size_in_memory 64 KB

cache_replacement_policy heap LFUDA
cache_dir aufs /partition/cache 24000 16 256

max_open_disk_fds 0
minimum_object_size 0 KB
maximum_object_size 20480 KB
cache_swap_low 90
cache_swap_high 95
max_stale 4 week

update_headers on


## Videos de Youtube ##
refresh_pattern -i \.flv$ 10080 90% 999999 ignore-no-cache override-expire ignore-private
quick_abort_min -1 KB
acl youtube dstdomain .youtube.com
acl youtube dstdomain .googlevideo.com
acl youtube dstdomain .video.google.com
acl youtube dstdomain .llnwd.net
acl youtube dstdomain .dailymotion.com
acl youtube dstdomain .pornotube.com

cache allow youtube

## FLAGS para aumentar el uso del cache ###
#
refresh_pattern -i \.doubleclick\.net 1440 40% 20160
refresh_pattern -i \.benchmark\.kelkoo\.net: 1440 40% 20160
refresh_pattern -i \.googleadservices\.com 1440 40% 20160
refresh_pattern \.google\.pe\/search$ 30 40% 20160
refresh_pattern -i \.do? 3000 80% 432000 override-expire
refresh_pattern -i \.do$ 3000 80% 432000 override-expire
refresh_pattern -i \.do 3000 80% 432000
refresh_pattern -i \.jsp? 3000 80% 432000 override-expire
refresh_pattern -i \.jsp$ 3000 80% 432000 override-expire
refresh_pattern -i \.jsp 3000 80% 432000 override-expire
#
## Salvar actualizaciones de WINDOWS XP, NOD32, Gunbound y Rakion ##
refresh_pattern .windowsupdate.com/.*\.(cab|exe) 4320 100% 43200 reload-into-ims
refresh_pattern .download.microsoft.com/.*\.(cab|exe) 4320 100% 43200 reload-into-ims
refresh_pattern .au.download.windowsupdate.com/msdownload/update/.*\.(cab|exe) 4320 100% 43200 reload-into-ims
refresh_pattern .download.windowsupdate.com/msdownload/update/.*\.(cab|exe) 4320 100% 43200 reload-into-ims
refresh_pattern .au.download.windowsupdate.com/msdownload/update/software/.*\.(cab|exe) 4320 100% 43200 reload-into-ims
refresh_pattern .eset.com/.*\.(rar|nup|ver) 4320 100% 43200 reload-into-ims
refresh_pattern .gunbound.softnyx-latino.net/.*\.(exe|xfs|gme) 4320 100% 43200 reload-into-ims
#
# Java
refresh_pattern \.class$ 2880 60% 28800
#
# Imagenes
refresh_pattern \.gif$ 2880 80% 28800
refresh_pattern \.jpg$ 2880 80% 28800
refresh_pattern \.jpeg$ 2880 80% 28800
refresh_pattern \.png$ 2880 80% 28800
refresh_pattern \.bmp$ 2880 80% 28800
refresh_pattern \.tif$ 2880 80% 28800
refresh_pattern \.tiff$ 2880 80% 28800
refresh_pattern \.xbm$ 2880 80% 28800
#
# Animaciones
refresh_pattern \.mov$ 2880 80% 28800
refresh_pattern \.avi$ 2880 80% 28800
refresh_pattern \.mpg$ 2880 80% 28800
refresh_pattern \.swf$ 2880 80% 28800
refresh_pattern \.flv$ 2880 80% 28800
#
# Audio
refresh_pattern \.wav$ 2880 80% 28800
refresh_pattern \.au$ 2880 80% 28800
refresh_pattern \.mid$ 2880 80% 28800
refresh_pattern \.mp3$ 2880 80% 28800
#
# Archivos comprimidos
refresh_pattern \.zip$ 2880 50% 28800
refresh_pattern \.cab$ 2880 50% 28800
refresh_pattern \.gz$ 2880 50% 28800
refresh_pattern \.arj$ 2880 50% 28800
refresh_pattern \.lha$ 2880 50% 28800
refresh_pattern \.lzh$ 2880 50% 28800
refresh_pattern \.rar$ 2880 50% 28800
refresh_pattern \.tgz$ 2880 50% 28800
refresh_pattern \.tar$ 2880 50% 28800
refresh_pattern \.Z$ 2880 50% 28800
#
# Documentos
refresh_pattern \.pdf$ 2880 60% 28800
refresh_pattern \.rtf$ 2880 60% 28800
refresh_pattern \.doc$ 2880 60% 28800
refresh_pattern \.wp$ 2880 60% 28800
refresh_pattern \.wp5$ 2880 60% 28800
refresh_pattern \.ps$ 2880 60% 28800
refresh_pattern \.prn$ 2880 60% 28800
#
#Fin
refresh_pattern -i ^http://.*\.(css|htm|html|ico|js|jsp|xml)$ 1440 80% 999999
refresh_pattern -i ^http://.*\.(bmp|gif|jpeg|jpg|png)$ 1440 80% 999999 ignore-reload
refresh_pattern -i ^http://.*\(ace|adt|arj|asf|avi|bin|bz2|bzip|cab|dat|dll|doc|dot|exe|fla|flv|gz|iso|lha|log|lzh|mdb|mid|mov|mp3|mpeg|mpg|msi|mso|ogg|pps|ppt|rar|rm|rtf|shs|src|sys|swf|tgz|tif|ttf|wav|wma|wri|wmv|vpu|vpaa|vqf|vob|zip)$ 43200 100% 999999 ignore-reload
#

access_log /partition/squidlog/access.log squid
cache_log /partition/squidlog/cache.log
cache_store_log /partition/squidlog/store.log

logfile_rotate 1

quick_abort_min 0 KB
quick_abort_max 0 KB
log_icp_queries off
client_db off
buffered_logs on
half_closed_clients off

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
#windows update
#refresh_pattern .windowsupdate.com/.*\.(cab|exe) 4320 100% 43200 reload-into-ims


acl shoutcast rep_header X-HTTP09-First-Line ^ICY\s[0-9]
upgrade_http0.9 deny shoutcast

# Apache mod_gzip and mod_deflate known to be broken so don't trust
# Apache to signal ETag correctly on such responses
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache


#
cache_effective_user nobody

#dns_nameservers 10.0.0.1 192.172.0.4

error_directory /partition/squid/share/errors/Spanish

check_hostnames off

hosts_file /etc/hosts

memory_pools off
memory_pools_limit 5 MB

############################# DELAY POOLS #########################
### Zero Penalty Hits ###
server_persistent_connections off
zph_mode tos
zph_local 0x10
#
delay_pools 2
delay_class 1 2
delay_class 2 2
delay_parameters 1 -1/-1 20480/1048576
delay_parameters 2 -1/-1 21504/2097152
acl lan src 192.168.1.0/24
acl extdown urlpath_regex -i \.(iso|cab|dll|exe|arj|rar|tar|zip|7z|lzh|lha|png|bmp|mp3|mpga|wav|ra|ram|rm|mov|movie|mpeg|mpg|mpe|wmv|avi|rpm|gz|bz2|deb|ogg|ppt|swf|flv|flash)$
delay_access 1 allow lan
delay_access 2 allow extdown
delay_access 2 deny all
#
#delay_pools 1 #1
#delay_class 1 2 #1 2
#delay_parameters 1 -1/-1 20000/20000
#acl descargas urlpath_regex -i /.(iso|cab|dll|exe|arj|rar|tar|zip|7z|lzh|lha|png|bmp|mp3|mpga|wav|ra|ram|rm|mov|movie|mpeg|mpg|mpe|wmv|avi|rpm|gz|bz2|deb|ogg|ppt|swf|flv|flash)$
#delay_access 1 allow descargas

# snmp_access allow snmppublic localhost
# snmp_access deny all
#
#Default:
# snmp_access deny all

#  TAG: tcp_outgoing_tos
#   Allows you to select a TOS/Diffserv value to mark outgoing
#   connections with, based on the username or source address
#   making the request.
#
#   tcp_outgoing_tos ds-field [!]aclname ...
#
#   Example where normal_service_net uses the TOS value 0x00
#   and good_service_net uses 0x20
#
#   acl normal_service_net src 10.0.0.0/255.255.255.0
#   acl good_service_net src 10.0.1.0/255.255.255.0
#   tcp_outgoing_tos 0x00 normal_service_net
#   tcp_outgoing_tos 0x20 good_service_net
#
#   TOS/DSCP values really only have local significance - so you should
#   know what you're specifying. For more information, see RFC2474 and
#   RFC3260.
#
#   The TOS/DSCP byte must be exactly that - a octet value  0 - 255, or
#   "default" to use whatever default your host has. Note that in
#   practice often only values 0 - 63 is usable as the two highest bits
#   have been redefined for use by ECN (RFC3168).
#
#   Processing proceeds in the order specified, and stops at first fully
#   matching line.
#
#   Note: The use of this directive using client dependent ACLs is
#   incompatible with the use of server side persistent connections. To
#   ensure correct results it is best to set server_persisten_connections
#   to off when using this directive in such configurations.
#
#Default:
# none

#  TAG: tcp_outgoing_address
#   Allows you to map requests to different outgoing IP addresses
#   based on the username or source address of the user making
#   the request.
#
#   tcp_outgoing_address ipaddr [[!]aclname] ...
#
#   Example where requests from 10.0.0.0/24 will be forwarded
#   with source address 10.1.0.1, 10.0.2.0/24 forwarded with
#   source address 10.1.0.2 and the rest will be forwarded with
#   source address 10.1.0.3.
#
#   acl normal_service_net src 10.0.0.0/24
#   acl good_service_net src 10.0.1.0/24 10.0.2.0/24
#   tcp_outgoing_address 10.1.0.1 normal_service_net
#   tcp_outgoing_address 10.1.0.2 good_service_net
#   tcp_outgoing_address 10.1.0.3
#
#   Processing proceeds in the order specified, and stops at first fully
#   matching line.
#
#   Note: The use of this directive using client dependent ACLs is
#   incompatible with the use of server side persistent connections. To
#   ensure correct results it is best to set server_persistent_connections
#   to off when using this directive in such configurations.
#
#Default:
# none

#  TAG: zph_mode
#   This option enables packet level marking of HIT/MISS responses,
#   either using IP TOS or socket priority.
#       off      Feature disabled
#       tos      Set the IP TOS/Diffserv field
#       priority   Set the socket priority (may get mapped to TOS by OS,
#         otherwise only usable in local rulesets)
#       option   Embed the mark in an IP option field. See also
#             zph_option.
#
#   See also tcp_outgoing_tos for details/requirements about TOS usage.
#
#Default:
#zph_mode on

#  TAG: zph_local
#   Allows you to select a TOS/Diffserv/Priority value to mark local hits.
#   Default: 0 (disabled).
#
#Default:
# zph_local 0

#  TAG: zph_sibling
#   Allows you to select a TOS/Diffserv/Priority value to mark sibling hits.
#   Default: 0 (disabled).
#
#Default:
# zph_sibling 0

#  TAG: zph_parent
#   Allows you to select a TOS/Diffserv/Priority value to mark parent hits.
#   Default: 0 (disabled).
#
#Default:
# zph_parent 0

#  TAG: zph_option
#   The IP option to use when zph_mode is set to "option". Defaults to
#   136 which is officially registered as "SATNET Stream ID".
#
#Default:
# zph_option 136

#  TAG: emulate_httpd_log   on|off
#   The Cache can emulate the log file format which many 'httpd'
#   programs use.  To disable/enable this emulation, set
#   emulate_httpd_log to 'off' or 'on'.  The default
#   is to use the native log format since it includes useful
#   information Squid-specific log analyzers use.
#
#Default:
# emulate_httpd_log off

#  TAG: log_ip_on_direct   on|off
#   Log the destination IP address in the hierarchy log tag when going
#   direct. Earlier Squid versions logged the hostname here. If you
#   prefer the old way set this to off.
#
#Default:
# log_ip_on_direct on


#  TAG: mail_program
#   Email program used to send mail if the cache dies.
#   The default is "mail". The specified program must comply
#   with the standard Unix mail syntax:
#     mail-program recipient < mailfile
#
#   Optional command line options can be specified.
#
#Default:
# mail_program mail


el class.conf del QOS lo tengo asi

Código: Selecionar todos
#

enqueue_class_wan WAN_0 300 2000 2000 1800 2000 #define velocidades a una clase
enqueue_wan_id WAN_0 300

#definimos backbones
enqueue_parent 4 40000 40000 #lan
#enqueue_parent 2 3500 3500 #cerquita
#enqueue_parent 3 1800 1800 #no tan cerquita

enqueue_simple_class 4 48 75 256 400 1300 parent_match_yes 1000 5000 1000 5000 variable_qos_yes
enqueue_simple_id 4 48 192.168.0.4 bind_yes squid_yes zph_yes 0x10 mac_no

enqueue_simple_class 4 49 75 256 400 1300 parent_match_yes 1000 5000 1000 5000 variable_qos_yes
enqueue_simple_id 4 49 192.168.0.5 bind_yes squid_yes zph_yes 0x10 mac_no

enqueue_simple_class 4 49 75 256 256 700 parent_match_yes 1000 5000 1000 5000 variable_qos_yes
enqueue_simple_id 4 49 192.168.0.6 bind_yes squid_yes zph_yes 0x10 mac_no

enqueue_simple_class 4 50 75 256 256 700 parent_match_yes 1000 500 1000 5000 variable_qos_yes
enqueue_simple_id 4 50 192.168.0.7 bind_yes squid_yes zph_yes 0x10 mac_no


#
dummytransp_ip 192.168.0.0/24
#


y pues es como si el SQUID no me cacheara ningun archivo ya que la particion del cache siempre esta en 0%

Código: Selecionar todos
Mostrando valores generales del disco

Filesystem                Size      Used Available Use% Mounted on
rootfs                  246.7M     14.1M    232.6M   6% /
/dev/hda2                 1.8G     71.4M      1.7G   4% /hdb
/dev/hda5                 3.7G     33.5M      3.4G   1% /hdb/syslog
/dev/hda3                23.8G     36.2M     23.8G   0% /hdb/cache
/dev/hda6                 3.7G     32.3M      3.4G   1% /hdb/squidlog
/dev/hda3                23.8G     36.2M     23.8G   0% /hdb/ftp
/dev/hda5                 3.7G     33.5M      3.4G   1% /hdb/sarg
Analisis terminado.


igual en los reportes del sarg lo unico que me sale es esto

Imagem

y bueno esto no se si esta bien o no, pero cuando trato de acceder a 192.168.0.1:8080 me encuentro con esto

Imagem

por favor espero me puedan ayudar, el QOS si me anda bien.
pero el problema es con el SQUID . GRACIAS
Editado pela última vez por strike40 em Ter Fev 16, 2010 8:48 pm, em um total de 2 vezes.
strike40
 

Re: No puedo hacer funcionar bien el SQUID ayuda por favor

Mensagempor ramiropampa » Dom Fev 14, 2010 3:32 pm

Hola Strike.

no entiendo porque te bloquea el acceso al nat.... :shock: :roll: ^/

segundo, para que te blqouee un dominio, donde dice pc negra, ponés la ip de la pc que querés que se afectada y que no pueda abrir una determinada url. Luego en sitios prohibido pones el url, y la ip declarada no podrá acceder. Empecemos por resolver eso...

Saludos
Ramiro
Reglas del foro
Topics Importantes a leer antes de preguntar!
Que hacer al solucionar un problema

-Si compartes el Dinero, queda la mitad, Si compartes el Conocimiento, queda el DOBLE
Avatar do usuário
ramiropampa
BFW Beneméritos
 
Mensagens: 4141
Registrado em: Qua Dez 28, 2005 6:31 pm
Localização: En mi casa
BrazilFW Box:

Re: No puedo hacer funcionar bien el SQUID ayuda por favor

Mensagempor strike40 » Seg Fev 15, 2010 12:02 pm

Hola ramiro, gracias por responder,

puse esto en PC negra ( mi ip)

192.168.0.4

y en sistios prohibidos ps esto

Código: Selecionar todos
multiproxy.org
proxify.com
stayinvisible.com
anon.inf.tu-dresden.de
samair.ru/proxy
inetprivacy.com/a4proxy
pcmesh.com/surf-anonymous.htm
atomintersoft.com/products/alive-proxy
proxyblind.org/
anonymizer.com/
proxy4free.com/
unipeak.com/
stonehenge.com/merlyn/WebTechniques/
proxyone.com
megaproxy.com/
nonymouse.com/
guardster.com/
proxyweb.net/
snoopblocker.com/
metaspinner-media.de/mdsme/mdsme-docs/proxy.shtml
thevirtualbrowser.com/
nomorelimits.net/


y igual puedo acceder a esas paginas.... no se que pasa, como te digo es como si las pc no pasaran por el squid T_T ...
strike40
 

Re: No puedo hacer funcionar bien el SQUID ayuda por favor

Mensagempor nachazo » Seg Fev 15, 2010 12:13 pm

proba configurar manualmente tu navegador y trata de navegar por squid...

saludos.
nachazo
 

Re: No puedo hacer funcionar bien el SQUID ayuda por favor

Mensagempor strike40 » Seg Fev 15, 2010 4:12 pm

hola nachazo, gracias por responder, ps configurando el navegador, si quedo tras el squid, ya no puedo acceder a prohibidas, y el reporte del sarg ya me sale bien xD, pero una pregunta, cuando ingreso a 192.168.0.1:8080, igual me sale esto

Imagem

y pues no se si eso esta bien xD

y pues como puedo hacer para no tener que configurar manualmente el navegador?, osea un usuario cambia la configuracion y pues listo puede acceder a lo que quiera jeje, de antemano gracias
strike40
 

Re: No puedo hacer funcionar bien el SQUID ayuda por favor

Mensagempor nachazo » Seg Fev 15, 2010 4:58 pm

esta mas que claro que no estas aplicando la transparencia a tus reglas de qos...

con respecto al acceso denegado revisa tu configuracion de ips permitidas...

lamento que no sea tan sencillo como con otros softs, pero bueno yo considero que para entender bien algo es mejor saber como fuciona...

te recomiendo que googlees sobre acl en squid...

abrazos...
nachazo
 

Re: No puedo hacer funcionar bien el SQUID ayuda por favor

Mensagempor strike40 » Seg Fev 15, 2010 6:54 pm

hola nachazo, disculpa mi ignorancia en el tema, pero cuando me dices de las transparencia a mis reglas QOS, te refieres al

#dummytransp_ip 192.168.0.0/24

que tengo comentado?, xq ya lo probe descomentandolo tb y ps nada, porfa puedes ayudarme, gracias.
strike40
 

Re: No puedo hacer funcionar bien el SQUID ayuda por favor

Mensagempor nachazo » Ter Fev 16, 2010 11:26 am

fijate como tenes lo que puse en negrita...

enqueue_simple_class 4 348 8 32 32 1024 parent_match_yes 2000 4500 2000 4500
enqueue_simple_id 4 348 192.168.3.48 bind_yes squid_yes zph_yes 0x10 mac_no 00:1B:FC:4B:E0:31

---------------------------


si lo tenes en squid_yes postea la tabla nat...
nachazo
 

Re: No puedo hacer funcionar bien el SQUID ayuda por favor

Mensagempor strike40 » Ter Fev 16, 2010 12:36 pm

Hola nacho gracias nuevamente por responder, aqui esta la tabla nat.
y ps si lo tengo en squid_yes arriba deje el class.conf

Código: Selecionar todos
hain PREROUTING (policy ACCEPT 3275 packets, 239K bytes)
 pkts bytes target     prot opt in     out     source               destination         
 3275  239K nat-acl    all  --  *      *       0.0.0.0/0            0.0.0.0/0           
 3275  239K dns-preroute  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
 3275  239K auto-forward  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
 3275  239K port-forward  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
    0     0 REDIRECT   udp  --  eth0   *       192.168.0.4          0.0.0.0/0           udp dpt:53 redir ports 54
    0     0 REDIRECT   tcp  --  eth0   *       192.168.0.4          0.0.0.0/0           tcp dpt:80 redir ports 8080
    0     0 REDIRECT   udp  --  eth0   *       192.168.0.5          0.0.0.0/0           udp dpt:53 redir ports 54
    0     0 REDIRECT   tcp  --  eth0   *       192.168.0.5          0.0.0.0/0           tcp dpt:80 redir ports 8080
    0     0 REDIRECT   udp  --  eth0   *       192.168.0.6          0.0.0.0/0           udp dpt:53 redir ports 54
    0     0 REDIRECT   tcp  --  eth0   *       192.168.0.6          0.0.0.0/0           tcp dpt:80 redir ports 8080
    0     0 REDIRECT   udp  --  eth0   *       192.168.0.7          0.0.0.0/0           udp dpt:53 redir ports 54
    0     0 REDIRECT   tcp  --  eth0   *       192.168.0.7          0.0.0.0/0           tcp dpt:80 redir ports 8080
    0     0 REDIRECT   udp  --  eth0   *       192.168.0.0/24       0.0.0.0/0           udp dpt:53 redir ports 55

Chain POSTROUTING (policy ACCEPT 6 packets, 473 bytes)
 pkts bytes target     prot opt in     out     source               destination         
  111  8117 subnets-masks  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
    6   473 nat-masks  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
    6   473 dns-postroute  all  --  *      *       0.0.0.0/0            0.0.0.0/0           

Chain OUTPUT (policy ACCEPT 6 packets, 473 bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain auto-forward (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain dns-postroute (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain dns-preroute (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain nat-acl (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain nat-masks (1 references)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 MASQUERADE  all  --  *      eth0    192.168.0.0/24       0.0.0.0/0           

Chain port-forward (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain subnets-masks (1 references)
 pkts bytes target     prot opt in     out     source               destination         
  105  7644 MASQUERADE  all  --  *      eth0    192.168.0.0/24       0.0.0.0/0           
    0     0 RETURN     all  --  *      *       192.168.0.0/24       0.0.0.0/0           
strike40
 

Re: No puedo hacer funcionar bien el SQUID ayuda por favor

Mensagempor gamba47 » Ter Fev 16, 2010 4:06 pm

Es un bridge ? pareciera ser que no tiene rutas para salir a internet.

POstea la salida del comando (por consola ssh) :

Código: Selecionar todos
route -n



gamba47
Avatar do usuário
gamba47
BFW Beneméritos
 
Mensagens: 7243
Registrado em: Ter Dez 27, 2005 1:51 pm
Localização: Buenos Aires, Argentina
BrazilFW Box: Pentium4 1256mb RAM HD 200gb
BrazilFW 3.0.237 without Squid
3 ADSLs & 1 Cablemodem
50 Users & more!

Re: No puedo hacer funcionar bien el SQUID ayuda por favor

Mensagempor strike40 » Ter Fev 16, 2010 8:32 pm

hola, ps en vista q andaba algo raro, volvi a formatear (es la 3 vez q lo formateo), salve todas las configuraciones, y ps volvi a instalar el Brazil, argento y todo, y ahora si empezo a funcionar el squid ni idea de que pueda haber sido, pero me keda pensar q algo con la PC o que se yo, ¿alguna idea? ...

Bueno, en todo caso, gracias por responder a mis preguntas, ya esta andando todo bien :D .
strike40
 

Re: No puedo hacer funcionar bien el SQUID ayuda por favor

Mensagempor ramiropampa » Ter Fev 16, 2010 8:36 pm

strike40 escreveu:pero me keda pensar q algo con la PC o que se yo, ¿alguna idea? ...

Bueno, lo único cierto aca es que era un error tuyo, y que si el usuario realiza un acorrecta instalación, el problema no existe. hacé memoria que tocase y de que forma se puede haber arruinado.... la idea tiene que ser tuya no nuestra, en algo le pifeaste :D

Ponele Solucionado al post

Saludos
Ramiro
Reglas del foro
Topics Importantes a leer antes de preguntar!
Que hacer al solucionar un problema

-Si compartes el Dinero, queda la mitad, Si compartes el Conocimiento, queda el DOBLE
Avatar do usuário
ramiropampa
BFW Beneméritos
 
Mensagens: 4141
Registrado em: Qua Dez 28, 2005 6:31 pm
Localização: En mi casa
BrazilFW Box:

Re: No puedo hacer funcionar bien el SQUID (solucionado)

Mensagempor strike40 » Ter Fev 16, 2010 8:51 pm

yo tb creo ps que algo por ahi habre configurado mal ^^ ni idea en que .... pero bueno gracias ya todo funcionando ..... valio la pena leer tantos post xD jeje.
strike40
 

Re: No puedo hacer funcionar bien el SQUID (solucionado)

Mensagempor Horus » Qua Mar 17, 2010 5:54 pm

como puedo saber si realmente e SQUID esta guardando datos???


saludos..
Avatar do usuário
Horus
BFW Very Participative
 
Mensagens: 311
Registrado em: Qui Abr 02, 2009 12:34 pm
BrazilFW Box:

Re: No puedo hacer funcionar bien el SQUID (solucionado)

Mensagempor nachazo » Qua Mar 17, 2010 6:08 pm

Horus escreveu:como puedo saber si realmente e SQUID esta guardando datos???


saludos..


chicos recuerden que squid esu n proyecto MULTIPLATAFORMA para ver los logs de cacheo estan en el webmin en el cuadro de squid en el apartado de los logs....

ver logs de almacenamiento y ver logs de acceso....

saludos.
nachazo
 

Re: No puedo hacer funcionar bien el SQUID (solucionado)

Mensagempor Horus » Qua Mar 17, 2010 6:15 pm

holas....
esta bien ke salga esto en Ver Logs de Almacenamiento
Código: Selecionar todos
buscando log.....
log encontrado en: /partition/squidlog/store.log ....
1268769562.101 RELEASE -1 FFFFFFFF 146802F927E5A14A698EBC1A9874930C  200 1268765962 1268765962 1268769562 application/cache-digest 144/144 GET internal://brazilfw/squid-internal-periodic/store_digest
1268842599.616 RELEASE -1 FFFFFFFF 146802F927E5A14A698EBC1A9874930C  200 1268838999 1268838999 1268842599 application/cache-digest 144/144 GET internal://brazilfw/squid-internal-periodic/store_digest
1268846199.656 RELEASE -1 FFFFFFFF 4454B0B2EF8CBCB8F45F60929B65A7C5  200 1268842599 1268842599 1268846199 application/cache-digest 144/144 GET internal://brazilfw/squid-internal-periodic/store_digest
1268849799.656 RELEASE -1 FFFFFFFF 54D0B199289A5693733615B74ECE7328  200 1268846199 1268846199 1268849799 application/cache-digest 144/144 GET internal://brazilfw/squid-internal-periodic/store_digest
1268853399.677 RELEASE -1 FFFFFFFF 22C5FA0738CC07F68B9B8BC66FA97549  200 1268849799 1268849799 1268853399 application/cache-digest 144/144 GET internal://brazilfw/squid-internal-periodic/store_digest
1268859125.391 RELEASE -1 FFFFFFFF 146802F927E5A14A698EBC1A9874930C  200 1268855525 1268855525 1268859125 application/cache-digest 144/144 GET internal://brazilfw/squid-internal-periodic/store_digest


y esto me aparece en Ver Logs de Acceso

Código: Selecionar todos
buscando log.....
log encontrado en: /partition/squidlog/access.log ....



saludos...
Avatar do usuário
Horus
BFW Very Participative
 
Mensagens: 311
Registrado em: Qui Abr 02, 2009 12:34 pm
BrazilFW Box:

Re: No puedo hacer funcionar bien el SQUID (solucionado)

Mensagempor nachazo » Qua Mar 17, 2010 7:09 pm

horus...

definistes las clases y las class=id?

postea la tabla nat...

y el class.conf
nachazo
 

Re: No puedo hacer funcionar bien el SQUID (solucionado)

Mensagempor Horus » Qua Mar 17, 2010 7:21 pm

tabla NAT
Código: Selecionar todos
Chain PREROUTING (policy ACCEPT 4005 packets, 504K bytes)
 pkts bytes target     prot opt in     out     source               destination         
 4005  504K nat-acl    all  --  *      *       0.0.0.0/0            0.0.0.0/0           
 4005  504K dns-preroute  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
 4005  504K auto-forward  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
 4005  504K port-forward  all  --  *      *       0.0.0.0/0            0.0.0.0/0           

Chain POSTROUTING (policy ACCEPT 422 packets, 33124 bytes)
 pkts bytes target     prot opt in     out     source               destination         
 3041  361K subnets-masks  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
 3041  361K nat-masks  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
  422 33124 dns-postroute  all  --  *      *       0.0.0.0/0            0.0.0.0/0           

Chain OUTPUT (policy ACCEPT 422 packets, 33124 bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain auto-forward (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain dns-postroute (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain dns-preroute (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain nat-acl (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain nat-masks (1 references)
 pkts bytes target     prot opt in     out     source               destination         
 2619  328K MASQUERADE  all  --  *      eth1    192.168.10.0/24      0.0.0.0/0           

Chain port-forward (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain subnets-masks (1 references)
 pkts bytes target     prot opt in     out     source               destination         



/argentoqos/class.conf
Código: Selecionar todos

#enqueue_class_wan WAN_0 300 150 200 1000 2900 #define velocidades a una clase
#enqueue_wan_id WAN_0 300

#definimos backbones
#enqueue_parent 4 40000 40000 #lan
#enqueue_parent 2 3500 3500 #cerquita
#enqueue_parent 3 1800 1800 #no tan cerquita

#localnet_no_squid 192.168.0.0/16

#####################################
#enqueue_simple_class 4 148 8 32 32 1024 parent_match_yes 2000 4500 2000 4500 variable_qos_yes
#enqueue_simple_id 4 148 192.168.1.48 bind_yes squid_yes zph_yes 0x10 mac_yes 00:1C:C0:91:09:EE
#####################################

#####################################
#enqueue_simple_class 4 348 8 32 32 1024 parent_match_yes 2000 4500 2000 4500 variable_qos_no
#enqueue_simple_id 4 348 192.168.3.48 bind_yes squid_yes zph_yes 0x10 mac_no 00:1B:FC:4B:E0:31
#####################################
#enqueue_simple_class 3 25 8 32 32 1024 parent_match_yes 2000 4500 2000 4500 variable_qos_no
#enqueue_simple_id 3 25 192.168.1.25 bind_yes squid_yes zph_yes 0x10 mac_no 00:1B:FC:4B:E0:31
#####################################
#enqueue_simple_class 2 44 8 32 32 1024 parent_match_yes 2000 4500 2000 4500 variable_qos_no
#enqueue_simple_id 2 44 192.168.1.44 bind_yes squid_yes zph_yes 0x10 mac_no 00:1B:FC:4B:E0:31
#####################################
#
#dummytransp_ip 192.168.0.0/16
#


saludos..

la ip de brazil es 192.168.10.1 y mi net 4mbps / 512kbps

saludos...
Avatar do usuário
Horus
BFW Very Participative
 
Mensagens: 311
Registrado em: Qui Abr 02, 2009 12:34 pm
BrazilFW Box:

Re: No puedo hacer funcionar bien el SQUID (solucionado)

Mensagempor Horus » Qui Mar 18, 2010 9:28 pm

el squid me funciona, pero al ver el log de acceso, obtengo solo TCP_MISS, que podria ser??
Avatar do usuário
Horus
BFW Very Participative
 
Mensagens: 311
Registrado em: Qui Abr 02, 2009 12:34 pm
BrazilFW Box:

Re: No puedo hacer funcionar bien el SQUID (solucionado)

Mensagempor nachazo » Sáb Mar 20, 2010 8:07 pm

per no tenes nada definido.....


como queres que ande si no tenes nada configurado???
nachazo
 

Re: No puedo hacer funcionar bien el SQUID (solucionado)

Mensagempor marianitosanchez » Sáb Mar 20, 2010 9:08 pm

Hola muchachos, perdon que me meta... pero vi que esta queriendo acceder al webadmin con el puerto 8080....
hola nachazo, gracias por responder, ps configurando el navegador, si quedo tras el squid, ya no puedo acceder a prohibidas, y el reporte del sarg ya me sale bien xD, pero una pregunta, cuando ingreso a 192.168.0.1:8080...


ERROR... deberia acceder con el 8180, 192.168.0.1:8180.... saludos.
Avatar do usuário
marianitosanchez
BFW Participative
 
Mensagens: 191
Registrado em: Seg Jul 17, 2006 11:33 pm
BrazilFW Box:

Re: No puedo hacer funcionar bien el SQUID (solucionado)

Mensagempor Horus » Dom Mar 21, 2010 10:48 pm

nachazo escreveu:per no tenes nada definido.....


como queres que ande si no tenes nada configurado???


es que despues lo configure y obtuve 2 HIT y puros MISS, pero debido a que el HDD que tenia sonaba mucho, puse otro, e instale todo nuevamente, pero ahora si que nose porque no me arranca

class.conf
Código: Selecionar todos
enqueue_class_wan WAN_0 300 400 550 3000 4500 #define velocidades a una clase
enqueue_wan_id WAN_0 300

#definimos backbones
enqueue_parent 4 40000 40000 #lan
#enqueue_parent 2 3500 3500 #cerquita
#enqueue_parent 3 1800 1800 #no tan cerquita

localnet_no_squid 192.168.0.0/16

#####################################
enqueue_simple_class 4 148 300 550 3000 4500 parent_match_yes 2000 4500 2000 4500 variable_qos_yes
enqueue_simple_id 4 148 192.168.10.17 bind_yes squid_yes zph_yes 0x10 mac_yes 00:1D72:55:e2:4f
#####################################

#####################################
#enqueue_simple_class 4 348 8 32 32 1024 parent_match_yes 2000 4500 2000 4500 variable_qos_no
#enqueue_simple_id 4 348 192.168.3.48 bind_yes squid_yes zph_yes 0x10 mac_no 00:1B:FC:4B:E0:31
#####################################
#enqueue_simple_class 3 25 8 32 32 1024 parent_match_yes 2000 4500 2000 4500 variable_qos_no
#enqueue_simple_id 3 25 192.168.1.25 bind_yes squid_yes zph_yes 0x10 mac_no 00:1B:FC:4B:E0:31
#####################################
#enqueue_simple_class 2 44 8 32 32 1024 parent_match_yes 2000 4500 2000 4500 variable_qos_no
#enqueue_simple_id 2 44 192.168.1.44 bind_yes squid_yes zph_yes 0x10 mac_no 00:1B:FC:4B:E0:31
#####################################
#
#dummytransp_ip 192.168.0.0/16
#


tabla NAT

Código: Selecionar todos
Chain PREROUTING (policy ACCEPT 1160 packets, 166K bytes)
 pkts bytes target     prot opt in     out     source               destination         
 1160  166K nat-acl    all  --  *      *       0.0.0.0/0            0.0.0.0/0           
 1160  166K dns-preroute  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
 1160  166K auto-forward  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
 1160  166K port-forward  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
    0     0 ACCEPT     tcp  --  eth0   *       0.0.0.0/0            192.168.0.0/16      tcp dpt:80

Chain POSTROUTING (policy ACCEPT 41 packets, 3643 bytes)
 pkts bytes target     prot opt in     out     source               destination         
  816  119K subnets-masks  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
  816  119K nat-masks  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
   41  3643 dns-postroute  all  --  *      *       0.0.0.0/0            0.0.0.0/0           

Chain OUTPUT (policy ACCEPT 41 packets, 3643 bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain auto-forward (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain dns-postroute (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain dns-preroute (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain nat-acl (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain nat-masks (1 references)
 pkts bytes target     prot opt in     out     source               destination         
  775  116K MASQUERADE  all  --  *      eth1    192.168.10.0/24      0.0.0.0/0           

Chain port-forward (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain subnets-masks (1 references)
 pkts bytes target     prot opt in     out     source               destination       


saludos..
Avatar do usuário
Horus
BFW Very Participative
 
Mensagens: 311
Registrado em: Qui Abr 02, 2009 12:34 pm
BrazilFW Box:

Re: No puedo hacer funcionar bien el SQUID (solucionado)

Mensagempor nachazo » Seg Mar 22, 2010 12:39 am

iniciaste el cache?
nachazo
 

Re: No puedo hacer funcionar bien el SQUID (solucionado)

Mensagempor Horus » Seg Mar 22, 2010 12:46 am

nachazo escreveu:iniciaste el cache?

si, probe bloquear una url, pero no lo hace, entra igual...



saludos..
Avatar do usuário
Horus
BFW Very Participative
 
Mensagens: 311
Registrado em: Qui Abr 02, 2009 12:34 pm
BrazilFW Box:

Re: No puedo hacer funcionar bien el SQUID (solucionado)

Mensagempor nachazo » Seg Mar 22, 2010 11:55 am

Horus escreveu:
nachazo escreveu:iniciaste el cache?

si, probe bloquear una url, pero no lo hace, entra igual...



saludos..


estoy viendo que todavia hay muchisimas dudas sobre el tema de squid... quien tiene los tutoriales de argento bridge?

el squid en el web admin te figura como funcionando?

configuraste hdb?

no anda porque no hay transparencia echa, no hay transparencia porque el demonio squid no fue iniciado... Argento se da cuenta y evita que tus usuarios se queden sin navegacion...


no sabes de squid? te haces una maquina virtual con debian y te lees este manual...
http://www.linuxparatodos.net/portal/st ... id-general
o podes seguir el tuto o manual que mas te guste, casi todos son muy buenos...

lo configuras lo haces andar y despues cuando lo miras en el argento vas a decir... "es igual pero mas facil"

lo que te debe estar faltando el el comando squid -z que en el webmin figura como "iniciar cache"...

saludos.
nachazo
 

Re: No puedo hacer funcionar bien el SQUID (solucionado)

Mensagempor Horus » Seg Mar 22, 2010 12:14 pm

estoy viendo que todavia hay muchisimas dudas sobre el tema de squid... quien tiene los tutoriales de argento bridge?

el squid en el web admin te figura como funcionando?

configuraste hdb?

no anda porque no hay transparencia echa, no hay transparencia porque el demonio squid no fue iniciado... Argento se da cuenta y evita que tus usuarios se queden sin navegacion...


no sabes de squid? te haces una maquina virtual con debian y te lees este manual...
http://www.linuxparatodos.net/portal/st ... id-general
o podes seguir el tuto o manual que mas te guste, casi todos son muy buenos...

lo configuras lo haces andar y despues cuando lo miras en el argento vas a decir... "es igual pero mas facil"

lo que te debe estar faltando el el comando squid -z que en el webmin figura como "iniciar cache"...

saludos.[/quote]
para la instalacion de brazilFW y de hdb y argentos qos 1.1 rev4, me guie por este video tutorial

viewtopic.php?f=19&t=72915

despues me guie por
viewtopic.php?f=19&t=68677#p169008
donde hice del l7 , perl, las librerias y lo que se refiere al squid..

ahora reinstale todo, voi a seguir paso por paso para no tener mas problemas (espero XD )

cuales serian los pasos correctos para arrancar SQUID?
estan bien los que salen en esos manuales??


saludos...
Avatar do usuário
Horus
BFW Very Participative
 
Mensagens: 311
Registrado em: Qui Abr 02, 2009 12:34 pm
BrazilFW Box:

Re: No puedo hacer funcionar bien el SQUID (solucionado)

Mensagempor nachazo » Seg Mar 22, 2010 1:28 pm

con el tutorial de argento qos 1.0 el squid funciona satisfactoriamente....

en resumen... esta bien explicado como arrancar con argentoqos 1.x .....

siempre que algo no te ande... por ejemplo el squid... tiene un log... si no anda squid... fijate en el log que te dice... si no anda bind, te fijas en el log... si no anda el soft X te fijas en el log de de ese soft que es lo que esta fallando y lo corregis...

asi es el mundo linux....

pd: te doy una pista mas (viste que no soy tan malo? :mrgreen: )

fijate en el webmin en "Ver Logs del Cache" esos son los logs de squid que te muestran que no funciona o que esta fallando...
nachazo
 

Re: No puedo hacer funcionar bien el SQUID (solucionado)

Mensagempor Horus » Seg Mar 22, 2010 2:33 pm

nachazo escreveu:con el tutorial de argento qos 1.0 el squid funciona satisfactoriamente....

en resumen... esta bien explicado como arrancar con argentoqos 1.x .....

siempre que algo no te ande... por ejemplo el squid... tiene un log... si no anda squid... fijate en el log que te dice... si no anda bind, te fijas en el log... si no anda el soft X te fijas en el log de de ese soft que es lo que esta fallando y lo corregis...

asi es el mundo linux....

pd: te doy una pista mas (viste que no soy tan malo? :mrgreen: )

fijate en el webmin en "Ver Logs del Cache" esos son los logs de squid que te muestran que no funciona o que esta fallando...



estoy reintalando, asi que cuando termine, vere que sucede...

saludos..
Avatar do usuário
Horus
BFW Very Participative
 
Mensagens: 311
Registrado em: Qui Abr 02, 2009 12:34 pm
BrazilFW Box:

Re: No puedo hacer funcionar bien el SQUID (solucionado)

Mensagempor Horus » Seg Mar 22, 2010 7:39 pm

reinstale todo, segui paso por paso los manulaes y me funciona :D
Avatar do usuário
Horus
BFW Very Participative
 
Mensagens: 311
Registrado em: Qui Abr 02, 2009 12:34 pm
BrazilFW Box:


Voltar para Serie de add-ons Argento

Quem está online

Usuários navegando neste fórum: Nenhum usuário registrado e 4 visitantes