Bienvenido(a) a Alcance Libre 29/03/2023, 06:41

Alcance Libre Foros

 Índice del foro > Todo acerca de Linux > Redes y Servidores New Topic Post Reply
 Error en Squid no compila, ayuda por favor
Tópico anterior Tópico siguiente
   
Ángel Vinny
 01/07/13 02:29PM (Leído 7,333 veces)  

Nuevo
sick

Estado: desconectado
Forum User

Identificado: 12/16/12
Mensajes: 13
Saludos cordiales he configurado una red la cual quiero implementar proxy con Squid y me da un error el momento que le mando un reload o restart el error es el siguiente:

[root@ServidorPrx02 ~]# service squid reload
2013/01/07 15:06:58| ERROR: '0.0.0.0/0' needs to be replaced by the term 'all'.
2013/01/07 15:06:58| SECURITY NOTICE: Overriding config setting. Using 'all' instead.
2013/01/07 15:06:58| WARNING: (Cool '::/0' is a subnetwork of (A) '::/0'
2013/01/07 15:06:58| WARNING: because of this '::/0' is ignored to keep splay tree searching predictable
2013/01/07 15:06:58| WARNING: You should probably remove '::/0' from the ACL named 'all'
2013/01/07 15:06:58| aclIpParseIpData: WARNING: Netmask masks away part of the specified IP in '127.0.0.1/8'
2013/01/07 15:06:58| WARNING: Could not determine this machines public hostname. Please configure one or set 'visible_hostname'.
2013/01/07 15:06:58| WARNING: Could not determine this machines public hostname. Please configure one or set 'visible_hostname'.
squid: ERROR: No running copy

Espero me puedan ayudar el contenido del archivo squid.conf es el siguiente:
Por favor espero me ayuden en esta comunidad que veo que es mmuy buena

# Recommended minimum configuration:
#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 all src 0.0.0.0/0
acl manager proto cache_object
acl localhost src 127.0.0.1/8
acl localnet src 192.168.3.0/24
acl horario time MTWHFA 07:00-20:00
acl expresionesdenegadas url_regex "/etc/squid/listas/expresionesdenegadas"
acl dominiosdenegados dstdomain "/etc/squid/listas/dominiosdenegados"
acl dominios-inocentes dstdomain "/etc/squid/listas/dominios-inocentes"

# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
#acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
#acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
#acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
#acl localnet src fc00::/7 # RFC 4193 local private network range
#acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines
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

# Recommended minimum Access Permission configuration:

# Only allow cachemgr access from localhost
http_access allow manager localhost
http_access deny manager

# Deny requests to certain unsafe ports
http_access deny !Safe_ports

# Deny CONNECT to other than secure SSL ports
http_access deny CONNECT !SSL_ports

# We strongly recommend the following be uncommented to protect innocent
# web applications running on the proxy server who think the only
# one who can access services on "localhost" is a local user
#http_access deny to_localhost
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
#
# Example rule allowing access from your local networks.
# Adapt localnet in the ACL section to list your (internal) IP networks
# from where browsing should be allowed
#Esta linea sirve para denegar o acceder al internet
http_access allow localhost
http_access allow localnet
#http_access allow horario localnet dominios-inocentes !expresionesdenegadas !dominiosdenegados
http_access deny all


# And finally deny all other access to this proxy
http_access deny all

# Squid normally listens to port 3128
http_port 192.168.3.2:8080 intercept

# We recommend you to use at least the following line.
hierarchy_stoplist cgi-bin ?

# Uncomment and adjust the following to add a disk cache directory.
cache_dir aufs /var/spool/squid 2048 16 256

# Leave coredumps in the first cache dir
coredump_dir /var/spool/squid

# Add any of your own refresh_pattern entries above these.
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
84,1 Final

 
Profile Email
 Quote
diego sanchez
 01/07/13 03:11PM  

Participa mucho

Estado: desconectado
Forum User

Identificado: 10/03/12
Mensajes: 51
veo algunos errores, sigue los siguientes pasos:

comenta esta acl,
#acl all src 0.0.0.0/0

y agrega el siguiente parametro

#Nombre del server proxy
visible_hostname serverproxy

luego le das un restart
$> service squid restart
 
Profile Email
 Quote
Joel Barrios Dueñas
 01/07/13 04:58PM  

Admin

Estado: desconectado
Site Admin

Identificado: 02/17/07
Mensajes: 1761
Localización:Mexico
Compilar se refiere a que tomaste4 un código fuente y está compilando el código fuente en binarios. Lo que estás realmente haciendo es intentar un servicio, no compilar.

Squid requiere que el nombre de anfitrión de tu sistema (lo que devuelve al ejecutar hostname) esté resuelto en un DNS o bien al menos en el archivo /etc/hosts. El nombre de anfitrión de tu sistema debe seguir la norma nombre.dominio.tld (ejemplo: proxy.dominio.com).
 
Profile Email Website
 Quote
Contenido generado en: 0.10 segundos New Topic Post Reply
 Todas las horas son CST. Hora actual 06:41 AM.
Tópico normal Tópico normal
Tópico Pegado Tópico Pegado
Tópico bloqueado Tópico bloqueado
Mensaje Nuevo Mensaje Nuevo
Tópico pegado con nuevo mensaje Tópico pegado con nuevo mensaje
Tópico bloqueado con nuevo mensaje Tópico bloqueado con nuevo mensaje
Ver mensajes anónimos 
Los usuarios anónimos pueden enviar 
Se permite HTML Filtrado 
Contenido censurado