Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problemas com squid
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Portuguese
View previous topic :: View next topic  
Author Message
mfdzerohour
Tux's lil' helper
Tux's lil' helper


Joined: 31 Aug 2005
Posts: 143
Location: Paranaíba-MS

PostPosted: Thu Sep 06, 2007 12:42 am    Post subject: Problemas com squid Reply with quote

Boa noite,

Estou tentando implementar um proxy com o squid, mas o mesmo ta dando o seguinte erro:

* Starting squid ...
2007/09/05 20:32:19| aclParseIpData: WARNING: Netmask masks away part of the specified IP in 192.168.1.12/255.255.255.0'
[/b]2007/09/05 20:32:19| aclParseIpData: WARNING: Netmask masks away part of the specified IP in '192.168.1.16/255.255.255.0'[/b]
2007/09/05 20:32:19| aclParseIpData: WARNING: Netmask masks away part of the specified IP in '192.168.1.13/255.255.255.0'
[/b]2007/09/05 20:32:19| aclParseIpData: WARNING: Netmask masks away part of the specified IP in '192.168.1.11/255.255. [ ok ][/b]

apesar do mesmo dar um ok, o proxy não funciona como deveria, posto abaixo a configuração do meu squid e os arquivos de configuração, com mascara 192.168.1.0/24
#############################################################################
# *
# ipBloqGeral - Bloqueia tudo; *
# ipSemBloqueio - Libera tudo; *
# siteLiberar - Libera acesso a estes sites Web; *
# siteBloquear - Bloqueia o acesso a estes sites Web; *
# IPBloquear - Bloqueia o acesso total a web; *
# ipWebLiberar - Libera IP de alguns sites Web. *
# *
# Referencias *
# http://www.vivaolinux.com.br/artigos/verArtigo.php?codigo=6610&pagina=2 *
# *
#############################################################################

#http_port internal-addr:3128 transparent
#http_port 3128 transparent

acl ip_bloquear_geral src "/etc/squid/regras/ipBloqgeral"
acl ip_sem_bloqueio src "/etc/squid/regras/ipSemBloqueio"
acl web_liberar url_regex -i "/etc/squid/regras/sitesLiberar"
acl web_bloquear url_regex -i "/etc/squid/regras/siteBloquear"
acl ip_bloquear src "/etc/squid/regras/ipBloquear"
acl ip_liberar src "/etc/squid/regras/ipWebLiberar"

# Logo iremos encontrar a TAG iremos digitar atrás da porta 3128 transparent

# NETWORK OPTIONS
# ------------------------------------

# TAG: http_port
http_port 192.168.1.1:3128 transparent
visible_hostname Proxy.SQUID
# Esta versão do Squid 2.6 utiliza a configuração para modo transparente desta forma.

# Configuração do cache
cache_mem 256 MB
maximum_object_size_in_memory 128 KB
maximum_object_size 50 MB
#minimum_object_size 0 KB
cache_swap_low 90
cache_swap_high 95
cache_dir ufs /var/cache/squid 2048 16 256

#ACL do Squid
acl all src 0.0.0.0/0.0.0.0
acl rede_interna src 192.168.1.0/24
http_access allow all
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 80 #http
acl Safe_ports port 21 #ftp
acl Safe_ports port 443 563 #https, news
acl Safe_ports port 70 #gopher
acl Safe_ports port 210 #wais
acl Safe_ports port 1025-65535 #unregistred 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 901 #swat
acl purge method PURGE
acl CONNECT method CONNECT

# Deny requests to unknown ports
http_access allow rede_interna

#Bloqueio
http_access deny ip_bloquear_geral
#http_access deny ipBloquearGeral
http_access allow ip_sem_bloqueio
#http_access allow ipSemBloqueio
http_access allow web_liberar
#http_access allow webLiberar
http_access deny web_bloquear
#http_access deny webBloquear
http_access deny ip_bloquear
#http_access deny ipBloquear
http_access allow ip_liberar
#http_access allow ipWebLiberar
http_access deny all
#
http_access deny all

#Mensagens de erro do Squid em Português
error_directory /usr/share/squid/errors/Portuguese

# Localização do arquivo de log do Squid
cache_access_log /var/log/squid/access.log

http_access allow !Safe_ports
# Deny CONNECT to other than SSL ports
http_access allow CONNECT !SSL_ports

---

Desde já agradeço[/b]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portuguese All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum