slackw4re
(usa Ubuntu)
Enviado em 22/09/2014 - 20:19h
Olá pessoal, estou com o seguinte problema, ao instalar o ubuntu 14.04 e instalar o squid3 e tentar configurar ele autenticado, ja tentei de quase todas as meneiras e o infeliz não quer funcionar, sendo que no ubuntu 10.04 ele funciona numa boa, não sei pq ele fica me retornando um erro chato.
minha rede:
eth0 10.1.1.1
eth1 192.168.1.1
segue abaixo meu squid.conf
########################################################
## PORTA ##
2 http_port 3128
3
4 ## ESQUEMA AUTENTICACAO ##
5 auth_param basic program /usr/lib/squid3/ncsa_auth /etc/squid3/listas/usuarios
6 auth_param basic children 5
7 auth_param basic realm prestigeDesign
8 auth_param basic credentialsttl 2 hours
9 auth_param basic casesensitive off
10 acl usuarios proxy_auth REQUIRED
11 visible_hostname prestigeDesing
12 cache_mgr diogovieiraleite@hotmail.com
13 error_directory /usr/share/squid3/errors/Portuguese
14 hierarchy_stoplist cgi-bin ?
15 cache_mem 256 MB
16 maximum_object_size_in_memory 64 KB
17 maximum_object_size 100 MB
18 cache_dir ufs /var/spool/squid3 2040 16 256
19
20 refresh_pattern ^ftp: 360 20% 10080
21 refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
22 refresh_pattern . 0 20% 4320
23
24 access_log /var/log/squid3/access.log
25
26 acl localhost 127.0.0.1/32
27 #acl localnet src 192.168.1.0/24
28
29
30
31 #############################################
32 # PAGINA DE ERRO EM PORTUGUES
33 error_directory /usr/share/squid3/errors/pt-br
34 #############################################
## ESQUEMA DE CONTROLE POR GRUPOS DE USUARIOS
39
40 ## Acesso total
41 acl userRoot proxy_auth “/etc/squid3/listas/root”
42 http_access allow userRoot
43
44 ## Acesso restrito
45 acl userListaNegra proxy_auth “/etc/squid3/listas/userListaNegra”
46 acl urlListaNegra url_regex -i “/etc/squid3/listas/urlListaNegra”
47 http_access deny urlListaNegra
48 http_access allow userListaNegra !urlListaNegra
49
50 ## Acesso somente a sites liberados
51 acl userListaBranca proxy_auth “/etc/squid3/listas/userListaBranca”
52 acl urlListaBranca url_regex -i “/etc/squid3/listas/urlListaBranca”
53
54 acl Safe_ports port 21 # ftp
55 acl Safe_ports port 70 # gopher
56 acl Safe_ports port 80 # http
57 acl Safe_ports port 210 # wais
58 acl Safe_ports port 280 # http-mgmt
59 acl Safe_ports port 443 # https
60 acl Safe_ports port 488 # gss-http
61 acl Safe_ports port 563 # mntps
62 acl Safe_ports port 591 # filemaker
63 acl Safe_ports port 633 # cups
64 acl Safe_ports port 777 # multiling http
65 acl Safe_ports port 873 # rsync
66 acl Safe_ports port 901 # swat
67 acl Safe_ports port 1025-65535 # unregistered ports
68 http_access deny !Safe_ports
acl connect method CONNECT
71 acl ssl_ports port 443 # https
72 acl ssl_ports port 563 # mntps
73 acl ssl_ports port 873 # rsync
74 http_access deny connect !SSL_ports
75
76 acl purge method PURGE
77 http_access allow purge localhost
78 http_access deny purge
79
80 http_access allow usuarios
81 http_access allow localhost
82 http_access allow localnet
83 http_access deny all
#############################################
-----------------
######erro ao executar squid3 -k reconfigure
root@firewall:/etc/squid3# squid3 -k reconfigure
2014/09/22 20:17:57| FATAL: Invalid ACL type '127.0.0.1/32'
FATAL: Bungled /etc/squid3/squid.conf line 26: acl localhost 127.0.0.1/32
Squid Cache (Version 3.3.8): Terminated abnormally.
CPU Usage: 0.004 seconds = 0.003 user + 0.001 sys
Maximum Resident Size: 21856 KB
Page faults with physical i/o: 0
Não sei dizer pq esse maldito erro ecorre... alguem ai poderia me dar uma luz ?? obrigado.