netocazuza
(usa Ubuntu)
Enviado em 05/06/2016 - 14:52h
Esse é o arquivo squid.conf atual:
http_port 3128
visible_hostname proxy-server
cache_effective_user squid
cache_mem 64 MB
maximum_object_size_in_memory 64 KB
maximum_object_size 512 MB
minimum_object_size 0 KB
cache_swap_low 90
cache_swap_high 95
cache_dir ufs /usr/var/cache 2048 16 256
cache_access_log /usr/var/logs/access.log
refresh_pattern ^ftp: 15 20% 2280
refresh_pattern ^gopher: 15 0% 2280
refresh_pattern . 15 20% 2280
#acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 21 80 443 563 70 210 280 488 59 777 901 1025-65535
acl purge method PURGE
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
acl bloqueados url_regex -i "/usr/etc/bloqueados"
http_access deny bloqueados
acl redelocal src 172.16.0.0/24
http_access allow localhost
http_access allow redelocal
http_access deny all
Quando vou atualizar, dá o seguinte erro:
root@debianCasa:/home/casa# squid3 -k reconfigure
2016/06/05 11:53:33| WARNING: Netmasks are deprecated. Please use CIDR masks instead.
2016/06/05 11:53:33| WARNING: IPv4 netmasks are particularly nasty when used to compare IPv6 to IPv4 ranges.
2016/06/05 11:53:33| WARNING: For now we will assume you meant to write /32
2016/06/05 11:53:33| WARNING: (B) '127.0.0.1' is a subnetwork of (A) '127.0.0.1'
2016/06/05 11:53:33| WARNING: because of this '127.0.0.1' is ignored to keep splay tree searching predictable
2016/06/05 11:53:33| WARNING: You should probably remove '127.0.0.1' from the ACL named 'localhost'
2016/06/05 11:53:33| WARNING: (B) '127.0.0.1' is a subnetwork of (A) '127.0.0.1'
2016/06/05 11:53:33| WARNING: because of this '127.0.0.1' is ignored to keep splay tree searching predictable
2016/06/05 11:53:33| WARNING: You should probably remove '127.0.0.1' from the ACL named 'localhost'
2016/06/05 11:53:33| strtokFile: /usr/etc/bloqueados not found
2016/06/05 11:53:33| Warning: empty ACL: acl bloqueados url_regex -i "/usr/etc/bloqueados"
WARNING: Cannot write log file: /var/log/squid3/cache.log
/var/log/squid3/cache.log: Permission denied
messages will be sent to 'stderr'.
2016/06/05 11:53:33| Current Directory is /home/casa
root@debianCasa:/home/casa#