Poderia ter explicado como faz rewrite com ele, segue meu squidGuard.conf (Windows + Cygwin):
dbhome /usr/local/squidGuard/db
logdir /usr/local/squidGuard/log
src kids {
ip 192.168.0.0/24 # range 10.0.0.0 - 10.0.3.255
}
rew dmz {
s@http://www.altavista.com@http://www.google.com@iR
s@://img[2-9].orkut.com/@://img1.orkut.com/@iR
s@://static[2-9].orkut.com/@://static1.orkut.com/@iR
s@://i[2-9].ytimg.com/@://i1.ytimg.com/@iR
s@.css.int@.css@iR
s@://[2-9]-www.orkut@://1-www.orkut@iR
s@://lh[0-2|4-9].ggpht.com@://lh3.ggpht.com@iR
s@://photos[2-9].hi5.com@://photos1.hi5.com@iR
s@://www.youtube.com/get_video@://192.168.0.1/youtube_video.php@iR
s@://192.168.0.1/youtube_video.php_info@://208.65.153.238/get_video_info@iR
log anonymous rewrite.log
}
dest porn1 {
domainlist shalla/porn/domains
urllist shalla/porn/urls
expressionlist teste/expressions
log anonymous porn1_accesses.log
redirect
http://192.168.0.1
}
dest proxy1 {
domainlist shalla/proxy/domains
urllist shalla/proxy/urls
log anonymous proxy1_accesses.log
redirect
http://192.168.0.1
}
dest adv1 {
domainlist shalla/adv/domains
urllist shalla/adv/urls
log anonymous adv1_accesses.log
redirect
http://192.168.0.1/blank.html
}
dest downloads1 {
domainlist shalla/downloads/domains
urllist shalla/downloads/urls
log anonymous downloads1_accesses.log
redirect
http://192.168.0.1
}
dest tracker1 {
domainlist shalla/tracker/domains
urllist shalla/tracker/urls
log anonymous tracker1_accesses.log
redirect
http://192.168.0.1
}
dest spyware1 {
domainlist shalla/spyware/domains
urllist shalla/spyware/urls
log anonymous spyware1_accesses.log
redirect
http://192.168.0.1
}
dest warez1 {
domainlist shalla/warez/domains
urllist shalla/warez/urls
log anonymous warez1_accesses.log
redirect
http://192.168.0.1
}
#################Comeco da URLBlacklist.com
dest adv2 {
domainlist urlblack/ads/domains
urllist urlblack/ads/urls
expressionlist urlblack/ads/expressions
log anonymous adv2_accesses.log
redirect
http://192.168.0.1/blank.html
}
dest filehosting2 {
domainlist urlblack/filehosting/domains
urllist urlblack/filehosting/urls
log anonymous filehosting2_accesses.log
redirect
http://192.168.0.1
}
dest porn2 {
domainlist urlblack/porn/domains
urllist urlblack/porn/urls
expressionlist urlblack/porn/expressions
log anonymous porn2_accesses.log
redirect
http://192.168.0.1
}
dest proxy2 {
domainlist urlblack/proxy/domains
urllist urlblack/proxy/urls
log anonymous proxy2_accesses.log
redirect
http://192.168.0.1
}
dest spyware2 {
domainlist urlblack/spyware/domains
log anonymous spyware2_accesses.log
redirect
http://192.168.0.1
}
dest virusinfected2 {
domainlist urlblack/virusinfected/domains
urllist urlblack/virusinfected/urls
log anonymous virusinfected2_accesses.log
redirect
http://192.168.0.1
}
dest warez2 {
domainlist urlblack/warez/domains
urllist urlblack/warez/urls
log anonymous warez2_accesses.log
redirect
http://192.168.0.1
}
dest white {
domainlist urlblack/whitelist/domains
urllist urlblack/whitelist/urls
expressionlist white/expressions
}
dest youtube {
urllist youblock/urls2
}
dest orkut {
expressionlist orkut/orkut
redirect
http://192.168.0.1/orkut_redir.php?url=%u
log anonymous orkut.log
}
dest adver {
expressionlist ads/squid.adservers
redirect
http://192.168.0.1/blank.html
log anonymous adver.log
}
#########ACL Global
acl {
#default {
#pass !adv1 !adv2
#redirect
http://192.168.0.1/blank.html
#}
default {
rewrite dmz
pass !adver !porn1 !proxy1 !downloads1 !spyware1 !warez1 !filehosting2 !proxy2 !spyware2 !virusinfected2 !warez2 all white youtube
}
}
Essas regras rewrite são muito boas
Exemplo:
s@://static[2-9].orkut.com/@://static1.orkut.com/@iR
Redireciona tudo static[2-9] para static1, ou seja, ajuda o squid a fazer o cache certo