isra
(usa Debian)
Enviado em 11/01/2016 - 17:42h
isra escreveu:
Blz galera do Viva o linux!
To começando aqui no site, ME AJUDEM AQUI POR FAVOR!
seguinte, comecei a fazer meu squid.conf e ja coloquei pro squid rodar so que ele ta dando esses erros.
Alguns são por faltar o documento, ja o da linha 29 não vejo pq ta apresentando.
Alguem me ajuda ai.
Desde ja agradeço!
[root@pc-57 squid]# service squid start
Iniciando o squid: [FALHOU]
2016/01/11 17:07:59| Processing Configuration File: /etc/squid/squid.conf (depth 0)
2016/01/11 17:07:59| Processing: acl manager proto cache_object
2016/01/11 17:07:59| Processing: acl loaclhost src 127.0.0.1/24 ::1
2016/01/11 17:07:59| aclIpParseIpData: WARNING: Netmask masks away part of the specified IP in '127.0.0.1/24'
2016/01/11 17:07:59| Processing: alc to_localhost dst 127.0.0.0/8 0.0.0.0/24 ::1
2016/01/11 17:07:59| cache_cf.cc(381) parseOneConfigFile: squid.conf:4 unrecognized: 'alc'
2016/01/11 17:07:59| Processing: visible_hostname meuproxy
2016/01/11 17:07:59| Processing: http_port 3128 intercept
2016/01/11 17:07:59| Starting Authentication on port [::]:3128
2016/01/11 17:07:59| Disabling Authentication on port [::]:3128 (interception enabled)
2016/01/11 17:07:59| Disabling IPv6 on port [::]:3128 (interception enabled)
2016/01/11 17:07:59| Processing: acl localnet src 192.168.2.41/24
2016/01/11 17:07:59| aclIpParseIpData: WARNING: Netmask masks away part of the specified IP in '192.168.2.41/24'
2016/01/11 17:07:59| Processing: acl Safe_ports port 80 21 70 210 280 488 591 777 # portas padroes
2016/01/11 17:07:59| Processing: acl Safe_ports port 443 # https
2016/01/11 17:07:59| Processing: acl SSL_ports port 443 563 #ssl
2016/01/11 17:07:59| Processing: acl Safe_ports port 1025-65535 #portas altas
2016/01/11 17:07:59| Processing: acl CONNECT method CONNECT
2016/01/11 17:07:59| Processing: auth_param basic program /usr/lib64/squid/ncsa_auth /etc/squid/passwd
2016/01/11 17:07:59| Processing: acl autentica proxy_auth REQUIRED
2016/01/11 17:07:59| Processing: acl blocksites dstdomain "/etc/squid/bloqueados"
2016/01/11 17:07:59| strtokFile: /etc/squid/bloqueados not found
2016/01/11 17:07:59| Warning: empty ACL: acl blocksites dstdomain "/etc/squid/bloqueados"
2016/01/11 17:07:59| Processing: acl blockkeywords url_regex -i"/etc/squid/palavras"
2016/01/11 17:07:59| Processing: http_access allow manager localhost
2016/01/11 17:07:59| aclParseAclList: ACL name 'localhost' not found.
FATAL: Bungled squid.conf line 29: http_access allow manager localhost
Squid Cache (Version 3.1.23): Terminated abnormally.
CPU Usage: 0.015 seconds = 0.006 user + 0.009 sys
Maximum Resident Size: 24128 KB
Page faults with physical i/o: 0
Meu squid.conf ta assim:
padrão
acl manager proto cache_object
acl loaclhost src 127.0.0.1/24 ::1
alc to_localhost dst 127.0.0.0/8 0.0.0.0/24 ::1
visible_hostname meuproxy
http_port 3128 intercept
#capturar a rede
acl localnet src 192.168.2.41/24
#portas
acl Safe_ports port 80 21 70 210 280 488 591 777 # portas padroes
acl Safe_ports port 443 # https
acl SSL_ports port 443 563 #ssl
acl Safe_ports port 1025-65535 #portas altas
acl CONNECT method CONNECT
auth_param basic program /usr/lib64/squid/ncsa_auth /etc/squid/passwd
acl autentica proxy_auth REQUIRED
acl blocksites dstdomain "/etc/squid/bloqueados"
acl blockkeywords url_regex -i"/etc/squid/palavras"
#permissoes
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny blocksites
http_access deny blockkeywords
http_access deny to_localhost
http_access allow autentica
http_access deny !autentica
padrão
acl manager proto cache_object
acl loaclhost src 127.0.0.1/24 ::1
alc to_localhost dst 127.0.0.0/8 0.0.0.0/24 ::1
visible_hostname meuproxy
http_port 3128 intercept
#capturar a rede
acl localnet src 192.168.2.41/24
#portas
acl Safe_ports port 80 21 70 210 280 488 591 777 # portas padroes
acl Safe_ports port 443 # https
acl SSL_ports port 443 563 #ssl
acl Safe_ports port 1025-65535 #portas altas
acl CONNECT method CONNECT
auth_param basic program /usr/lib64/squid/ncsa_auth /etc/squid/passwd
acl autentica proxy_auth REQUIRED
acl blocksites dstdomain "/etc/squid/bloqueados"
acl blockkeywords url_regex -i"/etc/squid/palavras"
#permissoes
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny blocksites
http_access deny blockkeywords
http_access deny to_localhost
http_access allow autentica
http_access deny !autentica
http_access deny all
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440