luciano_gomes
(usa Outra)
Enviado em 07/09/2007 - 09:37h
Olá pessoal, bom dia a todos!!!
Sou novo no forum e no linux, mas quero muito aprender e conto com a ajuda de todos. obrigado!!!
http_port 3128
visible_hostname proxy
ftp_user asdf@asdf.com
#########
# CACHE #
#########
cache_mem 64 MB
maximum_object_size_in_memory 64 KB
maximum_object_size 700 MB
minimum_object_size 0 KB
cache_swap_low 90
cache_swap_high 95
cache_dir ufs /var/spool/squid 5000 16 256
refresh_pattern ^ftp: 15 2% 2280
refresh_pattern ^gother: 15 0% 2280
refresh_pattern . 15 20% 2280
cache_effective_user squid
########
# LOGS #
########
cache_access_log /var/log/squid/access.log
#########
# ACLs ##
#########
acl all src 0.0.0.0/0.0.0.0
acl permitidos src 192.168.0.5
acl localhost src 127.0.0.1/255.255.255.255
acl redelocal src 192.168.0.0/24
acl proibidos url_regex "/etc/squid/proibidos"
acl excecoes url_regex "/etc/squid/excecoes"
acl exe url_regex -i .exe
acl zip url_regex -i .zip
acl rar url_regex -i .rar
acl scr url_regex -i .scr
acl msi url_regex -i .msi
acl wmv url_regex -i .wmv
acl pif url_regex -i .pif
acl avi url_regex -i .avi
acl Safe_ports port 2631
http_access deny exe !excecoes
http_access deny zip !excecoes
http_access deny rar !excecoes
http_access deny scr !excecoes
http_access deny msi !excecoes
http_access deny wmv !excecoes
http_access deny pif !excecoes
http_access deny avi !excecoes
http_access allow Safe_ports
http_access allow redelocal
http_access deny all
######################
# PROXY TRANSPARENTE ##
#######################
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
Quando vou iniciar o squid aparece o seguinte erro.
[root@localhost luciano]# /etc/proxytransparente
[root@localhost luciano]# squid -z
2007/09/08 08:41:20| parseConfigFile: line 103 unrecognized: 'httpd_accel_host virtual'
2007/09/08 08:41:20| parseConfigFile: line 104 unrecognized: 'httpd_accel_port 80'
2007/09/08 08:41:20| parseConfigFile: line 105 unrecognized: 'httpd_accel_with_proxy on'
2007/09/08 08:41:20| parseConfigFile: line 106 unrecognized: 'httpd_accel_uses_host_header on'
2007/09/08 08:41:20| Squid is already running! Process ID 3478
[root@localhost luciano]# squid -D
2007/09/08 08:41:39| parseConfigFile: line 103 unrecognized: 'httpd_accel_host virtual'
2007/09/08 08:41:39| parseConfigFile: line 104 unrecognized: 'httpd_accel_port 80'
2007/09/08 08:41:39| parseConfigFile: line 105 unrecognized: 'httpd_accel_with_proxy on'
2007/09/08 08:41:39| parseConfigFile: line 106 unrecognized: 'httpd_accel_uses_host_header on'
2007/09/08 08:41:39| Squid is already running! Process ID 3478
[root@localhost luciano]# /etc/init.d/squid start
Iniciando squid: [FALHOU]