systemadmin.es > LAMP y web > Comprobar la configuración de squid

Comprobar la configuración de squid

Antes de aplicar una cambio en la configuración de squid nos interesará almenos comprobar la configuración para evitar que no arranque por un simple problema de sintaxis.

Mediante la opción -k con el parámetro parse podemos realizar la comprobación de sintaxi del fichero de configutación, por ejemplo:

# /usr/local/sbin/squid -k parse
2014/10/28 12:51:15| Startup: Initializing Authentication Schemes ...
2014/10/28 12:51:15| Startup: Initialized Authentication Scheme 'basic'
2014/10/28 12:51:15| Startup: Initialized Authentication Scheme 'digest'
2014/10/28 12:51:15| Startup: Initialized Authentication Scheme 'negotiate'
2014/10/28 12:51:15| Startup: Initialized Authentication Scheme 'ntlm'
2014/10/28 12:51:15| Startup: Initialized Authentication.
2014/10/28 12:51:15| Processing Configuration File: /usr/local/etc/squid.conf (depth 0)
2014/10/28 12:51:15| Processing: connect_timeout 5 minutes
2014/10/28 12:51:15| Processing: acl localnet src 10.0.0.0/8	 # RFC1918 possible internal network
2014/10/28 12:51:15| Processing: acl localnet src 192.168.10.0/24	 # les meves nets
2014/10/28 12:51:15| Processing: acl localnet src 192.168.101.0/24 # vpn
2014/10/28 12:51:15| Processing: acl SSL_ports port 443
2014/10/28 12:51:15| Processing: acl Safe_ports port 80		# http
2014/10/28 12:51:15| Processing: acl Safe_ports port 21		# ftp
2014/10/28 12:51:15| Processing: acl Safe_ports port 443		# https
2014/10/28 12:51:15| Processing: acl Safe_ports port 70		# gopher
2014/10/28 12:51:15| Processing: acl Safe_ports port 210		# wais
2014/10/28 12:51:15| Processing: acl Safe_ports port 1025-65535	# unregistered ports
2014/10/28 12:51:15| Processing: acl Safe_ports port 280		# http-mgmt
2014/10/28 12:51:15| Processing: acl Safe_ports port 488		# gss-http
2014/10/28 12:51:15| Processing: acl Safe_ports port 591		# filemaker
2014/10/28 12:51:15| Processing: acl Safe_ports port 777		# multiling http
2014/10/28 12:51:15| Processing: acl CONNECT method CONNECT
2014/10/28 12:51:15| Processing: http_access deny !Safe_ports
2014/10/28 12:51:15| Processing: http_access deny CONNECT !SSL_ports
2014/10/28 12:51:15| Processing: http_access allow localhost manager
2014/10/28 12:51:15| Processing: http_access deny manager
2014/10/28 12:51:15| Processing: http_access allow localnet
2014/10/28 12:51:15| Processing: http_access allow localhost
2014/10/28 12:51:15| Processing: http_access deny all
2014/10/28 12:51:15| Processing: http_port 192.168.10.1:8080
2014/10/28 12:51:15| Processing: coredump_dir /usr/local/var/cache/squid
2014/10/28 12:51:15| Processing: refresh_pattern ^ftp:		1440	20%	10080
2014/10/28 12:51:15| Processing: refresh_pattern ^gopher:	1440	0%	1440
2014/10/28 12:51:15| Processing: refresh_pattern -i (/cgi-bin/|\?) 0	0%	0
2014/10/28 12:51:15| Processing: refresh_pattern .		0	20%	4320
2014/10/28 12:51:15| Processing: cache deny all
2014/10/28 12:51:15| Processing: httpd_suppress_version_string on
2014/10/28 12:51:15| Processing: via off
2014/10/28 12:51:15| Processing: forwarded_for delete
2014/10/28 12:51:15| Processing: memory_pools off
2014/10/28 12:51:15| Processing: access_log none
2014/10/28 12:51:15| Processing: cache_store_log none
2014/10/28 12:51:15| WARNING: HTTP requires the use of Via
d.

Deja un comentario:

XHTML - Tags permitidos:<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>