willianrosa
(usa Debian)
Enviado em 18/08/2017 - 16:53h
Pessoal o squid esta rodando vejam:
2017/08/18 16:47:56| Squid is already running! Process ID 1836
só que não esta bloqueando os sites.
vejam meu squid.conf
http_port 3128
visible_hostname ROMA_FREICANECA
cache_mem 512 MB
cache_dir aufs /var/spool/squid 2024 16 256
maximum_object_size_in_memory 500 MB
maximum_object_size 700 MB
minimum_object_size 0 KB
cache_swap_low 90
cache_swap_high 95
cache_dir aufs /dev/shm 300 20 512
cache_access_log /var/log/squid/access.log squid
refresh_pattern ^ftp: 15 20% 2280
refresh_pattern ^gopher: 15 0% 2280
refresh_pattern . 15 20% 2280
refresh_pattern (Release|Package(.gz)*)$ 0 20% 2880
refresh_pattern . 0 20% 4320
error_directory /usr/share/squid/errors/Portuguese
hosts_file /etc/hosts
coredump_dir /var/spool/squid
acl all src
acl manager proto cache_object
acl localnet src 10.12.53.0/24
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 ACESSO_FULL src "/etc/squid/regras/acesso-full"
acl ACESSO_MEDIO src "/etc/squid/regras/acesso-medio"
acl DOWNLOADS_PERMITIDOS url_regex -i "/etc/squid/regras/downloads_permitidos"
acl DOWNLOADS_PROIBIDOS urlpath_regex -i "/etc/squid/regras/downloads_proibidos"
acl SITES_PROIBIDOS dstdomain "/etc/squid/regras/sites_proibidos"
acl SITES_PERMITIDOS dstdomain "/etc/squid/regras/sites_permitidos"
http_access allow ACESSO_FULL
http_access allow DOWNLOADS_PERMITIDOS
http_access deny DOWNLOADS_PROIBIDOS
http_access deny SITES_PROIBIDOS
http_access allow SITES_PERMITIDOS
http_access deny ACESSO_MEDIO !SITES_PERMITIDOS
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
http_access deny all
http_access allow localhost