Re: [squid-users] aclParseIpData: Bad host/IP: '~'

From: Juliao Braga - Rede Pegasus <juliao@dont-contact.us>
Date: Tue, 16 Nov 2004 21:33:11 -0200

Hi Rafael,

My configurations in squid.conf:

acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
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, snews
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 CONNECT method CONNECT
acl Playboy dstdomain www.playboy.com.br
acl RedeLiberada src "/proxy/squid/var/ipsliberados.txt"
# freeips.txt (sample following)
acl RedeLiberadaICQ src "/proxy/squid/var/ipsliberadosicq.txt"
# freeipstoICQ.txt
acl RedeInterna src "/proxy/squid/var/redeinterna.txt"
# localareaips.txt
acl SitesPermitidos dstdomain "/proxy/squid/var/sitespermitidos.txt"
# permitedsites.txt (sample following)
acl PalavrasPermitidas url_regex "/proxy/squid/var/palavraspermitidas.txt"
# permitedwords.txt (sample following)
acl PalavrasPermitidas1 url_regex "/proxy/squid/var/palavraspermitidas1.txt"
# permitedwords1.txt
acl PalavrasPermitidas2 url_regex "/proxy/squid/var/palavraspermitidas2.txt"
# permitedwords2.txt
acl SitesProibidos dstdomain "/proxy/squid/var/sitesproibidos.txt"
# nonpermitedsites.txt
acl PalavrasProibidas url_regex "/proxy/squid/var/palavrasproibidas.txt"
# nonpermitedwords.txt (sample following)
acl PalavrasProibidas1 url_regex "/proxy/squid/var/palavrasproibidas1.txt"
# nonpermitedwords1.txt
acl PalavrasProibidas2 url_regex "/proxy/squid/var/palavrasproibidas2.txt"
# nonpermitedwords2.txt
acl MSN url_regex "/proxy/squid/var/messegers.txt
# messegers.txt (sample following)

and:

http_access deny Playboy
http_access allow RedeLiberada
http_access allow RedeLiberadaICQ
http_access allow SitesPermitidos
http_access allow PalavrasPermitidas
http_access allow PalavrasPermitidas1
http_access allow PalavrasPermitidas2
http_access deny MSN
http_access deny PalavrasProibidas
http_access deny PalavrasProibidas1
http_access deny PalavrasProibidas2
http_access deny SitesProibidos
http_access allow RedeInterna
http_access deny all

Samples:

1. ipsliberados.txt (freeips.txt)

#Ips Liberados
192.168.1.32
192.168.1.34
192.168.1.125
192.168.0.23
192.168.0.5
192.168.0.3

2. sitespermitidos.txt (permitedsites.txt)

#Sites Permitidos
groups.msn.com/QUIMICA1P12004/
members.msn.com/
ftp.hp.com/pub/softlib/software2/COL1463/dj-6370-3/3820-ptb-win2k_xp.exe
www.sexologia.com.br
www.yahoo.com.br
groups.msn.com/
www.funec.br/principal/imagens/biblioteca1.jpg
www.funec.br/principal/imagens/biblioteca2.jpg

3. palavraspermitidas.txt (permitedwords.txt)

#Palavras Permitidas
sexologia
sexologo
curdocomputacao
metereologia
curdos
cubanacan
cuba
curriculo
curriculun
curriculum
vitae
menu
cursos
curso
. . .

4. palavrasproibidas.txt (nonpermitedwords.txt)

#Palavras Proibidas
orgia
$sex$
sacanagem
pedo
pedofilia
xoxota
chochota
transexual
gls
gay
porno
cacete
$come$
chat
caralho
grelo
$sexo$
. . .

5. messegers.txt (messegers.txt):

#Messengers
icq
irq
messenger

Muchas gracias,

Julião

---
Rede Pegasus
http://www.redepegasus.com.br
----- Original Message ----- 
From: Rafhael Almeida
To: Juliao Braga - Rede Pegasus
Cc: squid-users@squid-cache.org
Sent: Tuesday, November 16, 2004 8:53 PM
Subject: Re: [squid-users] aclParseIpData: Bad host/IP: '~'
Send your configuration (ACL's) in squid.conf for helpyou
Gretings.
Ing. Rafael Almeida Orellana.
JEFE DE COMPUTO DEL HCPL.
www.hcpl.gov.ec
Phone: 593-7-2570234 ext 127
Cel Phone: 593-94104982
P.O.Box: 1101181 
Received on Tue Nov 16 2004 - 16:33:08 MST

This archive was generated by hypermail pre-2.1.9 : Wed Dec 01 2004 - 12:00:01 MST