поставил SquidGuard в целях баннерезки вот конфиг (лежит там же где сквидовый).
Код: Выделить всё
dbhome /var/db/squidGuard
logdir /var/log
source comps {
ip 192.168.0.200
}
dest ads {
domainlist ads/domains
urllist ads/urls
}
dest aggressive {
domainlist aggressive/domains
urllist aggressive/urls
}
dest audio-video {
domainlist audio-video/domains
urllist audio-video/urls
}
dest drugs {
domainlist drugs/domains
urllist drugs/urls
}
dest gambling {
domainlist gambling/domains
urllist gambling/urls
}
dest hacking {
domainlist hacking/domains
urllist hacking/urls
}
dest mail {
domainlist mail/domains
}
dest porn {
domainlist porn/domains
urllist porn/urls
expressionlist porn/expressions
}
dest proxy {
domainlist proxy/domains
urllist proxy/urls
}
dest violence {
domainlist violence/domains
urllist violence/urls
expressionlist violence/expressions
}
dest warez {
domainlist warez/domains
urllist warez/urls
}
acl {
comps {
pass !ads !aggressive !audio-video !drugs !gambling !hacking !mail !porn !proxy !violence !warez !in-addr any
redirect www.ya.ru
}
default {
pass none
redirect http://admin.foo.bar.no/cgi/blocked?clientaddr=%a+clientname=%n+clientident=%i+srcclass=%s+targetclass=%t+url=%u
}
}
Код: Выделить всё
ns# ps -auxw | grep squid
root 5007 0,0 2,8 33012 28656 ?? S 14:56 0:02,98 kdeinit: kdeinit: kwrite /usr/local/etc/squid/squidGuard.conf (kde
chinga 5026 0,0 2,7 32812 28124 ?? S 14:57 0:02,34 kdeinit: kdeinit: kwrite /var/log/squidGuard.log (kdeinit)
root 5390 0,0 2,8 33704 29508 ?? S 15:43 0:01,50 kdeinit: kdeinit: kwrite /usr/local/etc/squid/squid.conf (kdeinit)
squid 5556 0,0 0,2 3084 1700 ?? Is 15:45 0:00,00 /usr/local/sbin/squid -D
squid 5558 0,0 2,0 21516 20972 ?? S 15:45 0:01,34 (squid) -D (squid)
squid 5559 0,0 0,1 2200 1284 ?? Ss 15:45 0:00,01 (squidGuard) (squidGuard)
squid 5560 0,0 0,1 2200 1284 ?? Is 15:45 0:00,01 (squidGuard) (squidGuard)
squid 5561 0,0 0,1 2200 1284 ?? Is 15:45 0:00,01 (squidGuard) (squidGuard)
squid 5562 0,0 0,1 2156 1276 ?? Is 15:45 0:00,01 (squidGuard) (squidGuard)
squid 5563 0,0 0,1 2156 1276 ?? Is 15:45 0:00,01 (squidGuard) (squidGuard)
squid 5564 0,0 0,1 2156 1276 ?? Is 15:45 0:00,01 (squidGuard) (squidGuard)
squid 5565 0,0 0,1 2156 1276 ?? Is 15:45 0:00,01 (squidGuard) (squidGuard)
squid 5566 0,0 0,1 2156 1276 ?? Is 15:45 0:00,01 (squidGuard) (squidGuard)
squid 5567 0,0 0,1 2156 1276 ?? Is 15:45 0:00,01 (squidGuard) (squidGuard)
squid 5568 0,0 0,1 2156 1276 ?? Is 15:45 0:00,01 (squidGuard) (squidGuard)
squid 5569 0,0 0,1 1172 576 ?? Is 15:45 0:00,01 (unlinkd) (unlinkd)
root 5571 0,0 0,1 1440 620 p1 R+ 15:47 0:00,00 grep squid
Что то я засношался сегодня с компом, пойду домой.