Squid.conf com acls de liberação e bloqueio

1. Squid.conf com acls de liberação e bloqueio

João Leonel Figueira Hoelz Junior
juninhoelz

(usa Suse)

Enviado em 02/08/2012 - 23:25h

Olá pessoal, tenho um arquivo squid.conf mas está dando muitos problemas.

Gostaria de ver se alguem pode compartilhar algum arquivo pronto já com os caminhos e nomes das Acl's de bloqueio, ips da rede, sites liberados que possa enviar!

Abraços e obrigado

O que está acontecendo é que as máquinas da rede estão todas navegando em tudo que é site, parece não passar pelas Acl's, o estranho que já utilizei esse squid em outras empresas e funcionou.

Abaixo segue meu .conf para verificarem!


#http_port 3128 transparent
http_port 3128
visible_hostname topmixproxy

cache_dir ufs /home/squid 200 32 32
access_log /var/log/squid/access.log squid
cache_log /var/log/squid/cache.log
cache_store_log none
error_directory /usr/share/squid/errors/Portuguese
logfile_rotate 5

refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
hierarchy_stoplist cgi-bin ?
coredump_dir /var/spool/squid
cache_effective_user proxy

########################### ACLs Squid Defaut########################

#####################################################################

acl all src all
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/24 # RFC1918 possible internal network
acl SSL_ports1 port 443 # https
acl SSL_ports port 563 # snews
acl SSL_ports port 873 # rsync
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl Safe_ports port 3007 # Rais
acl purge method PURGE
acl CONNECT method CONNECT
#acl autenticado proxy_auth REQUIRED

####################################################################

http_access allow manager localhost
http_access allow SSL_ports1
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports


########### Regras para Bloqueio e acesso a sites #################

acl sites_bloqueados url_regex -i "/etc/squid/regras/sites_bloqueados"
acl sites_liberados url_regex -i "/etc/squid/regras/sites_liberados"
acl sites_msn url_regex -i "/etc/squid/regras/sites_msn"
acl ips_liberados src "/etc/squid/regras/ips_liberados"
acl ftp port 21 443
acl ftp port 21 443
acl ips_rede src "/etc/squid/regras/ips_rede

http_access allow ips_liberados
#http_access deny sites_msn
http_access allow sites_liberados
http_access deny sites_bloqueados
http_access allow ips_rede


##################################################################

http_access allow localhost
http_access allow localnet
http_access deny all

icp_access allow localnet
icp_access deny all



  


2. Re: Squid.conf com acls de liberação e bloqueio

João Leonel Figueira Hoelz Junior
juninhoelz

(usa Suse)

Enviado em 03/08/2012 - 09:01h

juninhoelz escreveu:

Olá pessoal, tenho um arquivo squid.conf mas está dando muitos problemas.

Gostaria de ver se alguem pode compartilhar algum arquivo pronto já com os caminhos e nomes das Acl's de bloqueio, ips da rede, sites liberados que possa enviar!

Segue abaixo meu squid para que possam ajudar!

O que está ocorrendo é que minhas regras não estão sendo aplicadas, as máquinas ficam com todos os sites liberados. Jà usei esse squid em outras empresas e funcionou. verifiquem:

#http_port 3128 transparent
http_port 3128
visible_hostname topmixproxy

cache_dir ufs /home/squid 200 32 32
access_log /var/log/squid/access.log squid
cache_log /var/log/squid/cache.log
cache_store_log none
error_directory /usr/share/squid/errors/Portuguese
logfile_rotate 5

refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
hierarchy_stoplist cgi-bin ?
coredump_dir /var/spool/squid
cache_effective_user proxy

########################### ACLs Squid Defaut########################

#####################################################################

acl all src all
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/24 # RFC1918 possible internal network
acl SSL_ports1 port 443 # https
acl SSL_ports port 563 # snews
acl SSL_ports port 873 # rsync
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl Safe_ports port 3007 # Rais
acl purge method PURGE
acl CONNECT method CONNECT
#acl autenticado proxy_auth REQUIRED

####################################################################

http_access allow manager localhost
http_access allow SSL_ports1
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports


########### Regras para Bloqueio e acesso a sites #################

acl sites_bloqueados url_regex -i "/etc/squid/regras/sites_bloqueados"
acl sites_liberados url_regex -i "/etc/squid/regras/sites_liberados"
acl sites_msn url_regex -i "/etc/squid/regras/sites_msn"
acl ips_liberados src "/etc/squid/regras/ips_liberados"
acl ftp port 21 443
acl ftp port 21 443
acl ips_rede src "/etc/squid/regras/ips_rede

http_access allow ips_liberados
#http_access deny sites_msn
http_access allow sites_liberados
http_access deny sites_bloqueados
http_access allow ips_rede


##################################################################

http_access allow localhost
http_access allow localnet
http_access deny all

icp_access allow localnet
icp_access deny all


















Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts