Hi,
nein bei mir wird nichts geblockt, es kommt aber noch dazu das ich ne basic Authentifizierung drin hab. Die Tests hatte ich auch schon einmal gefunden, aber konnte nit so wirklich was damit anfangen
Code:
home:/home/user# export request="http://www.porno.de/index.html - - GET";
home:/home/user# echo $request > test.pass;
home:/home/user# echo $request > test.rewrite;
home:/home/user# echo $request > test.block;
home:/home/user# squidGuard -c /etc/squid/squidGuard.conf < test.pass > test.pass.out;
home:/home/user# squidGuard -c /etc/squid/squidGuard.conf < test.rewrite > test.rewrite.out;
home:/home/user# squidGuard -c /etc/squid/squidGuard.conf < test.block > test.block.out;
home:/home/user# wc -l test.pass;
1 test.pass
home:/home/user# wc -l test.pass.out;
1 test.pass.out
home:/home/user# wc -w test.pass.out;
4 test.pass.out
home:/home/user#
Code:
home:/home/user# wc -l test.rewrite;
1 test.rewrite
home:/home/user# wc -l test.rewrite.out;
1 test.rewrite.out
home:/home/user# diff test.rewrite test.rewrite.out | egrep -ic '^> ..* [0-9.]+/..* ..* [a-z]+$';
0
home:/home/user# more test.rewrite.out;
http://192.168.101.150/proxy/index.php&clientaddr=-&clientname=&clientident=&srcclass=default&targetclass=none&url=http://www.porno.de/index.html -/- - GET
home:/home/user# wc -l test.block;
1 test.block
home:/home/user# wc -l test.block.out;
1 test.block.out
home:/home/user# diff test.block test.block.out | egrep -ic '^> ..* [0-9.]+/..* ..* [a-z]+$';
0
home:/home/user# more test.block.out;
http://192.168.101.150/proxy/index.php&clientaddr=-&clientname=&clientident=&srcclass=default&targetclass=none&url=http://www.porno.de/index.html -/- - GET
home:/home/user#
und hier mal meine Config:
Code:
#
# CONFIG FILE FOR SQUIDGUARD
#
dbhome /var/lib/squidguard/db
logdir /var/log/squid
#
# SOURCE ADDRESSES:
#
src user02 {
user test03
ip 192.168.101.0/24
}
src user01 {
user test01 test02
}
#
# DESTINATION CLASSES:
#
dest paul {
domainlist paul/domains
expressionlist paul/expressions
log paul.log
redirect http://192.168.101.150/proxy/index.php&clientaddr=%a&clientname=%n&clientident=%i&srcclass=%s&targetclass=%t&url=%u
}
#
# ACLs
#
acl {
user01 {
pass any all
}
user02 {
pass !any !all paul
redirect http://192.168.101.150/proxy/index.php&clientaddr=%a&clientname=%n&clientident=%i&srcclass=%s&targetclass=%t&url=%u
}
default {
pass none
redirect http://192.168.101.150/proxy/index.php&clientaddr=%a&clientname=%n&clientident=%i&srcclass=%s&targetclass=%t&url=%u
}
}
log /var/log/squid/SquidGuard.log
Code:
2007-01-10 05:17:57 [21895] init domainlist /var/lib/squidguard/db/paul/domains
2007-01-10 05:17:57 [21895] loading dbfile /var/lib/squidguard/db/paul/domains.db
2007-01-10 05:17:57 [21895] init expressionlist /var/lib/squidguard/db/paul/expressions
2007-01-10 05:17:57 [21895] squidGuard 1.2.0 started (1168424277.842)
2007-01-10 05:17:57 [21895] squidGuard ready for requests (1168424277.843)
2007-01-10 05:17:57 [21895] squidGuard stopped (1168424277.843)
Ha, gerade gesehen. evtl liegts ja da dran, aber keine ahnug wieso, weil die prozesse eigentlich noch laufen:
Code:
home:/var/log/squid# ps aux | grep squid
root 21789 0.0 0.0 4628 668 ? Ss Jan09 0:00 /usr/sbin/squid -D -sYC
proxy 21791 0.0 0.5 7516 5208 ? S Jan09 0:00 (squid) -D -sYC
proxy 21793 0.0 0.1 2812 1176 ? Ss Jan09 0:00 (squidGuard) -c /etc/squid/squidGuard.conf
proxy 21794 0.0 0.1 2812 1176 ? Ss Jan09 0:00 (squidGuard) -c /etc/squid/squidGuard.conf
proxy 21795 0.0 0.1 2808 1124 ? Ss Jan09 0:00 (squidGuard) -c /etc/squid/squidGuard.conf
proxy 21796 0.0 0.1 2804 1124 ? Ss Jan09 0:00 (squidGuard) -c /etc/squid/squidGuard.conf
proxy 21797 0.0 0.1 2804 1124 ? Ss Jan09 0:00 (squidGuard) -c /etc/squid/squidGuard.conf
proxy 21798 0.0 0.0 2072 700 ? Ss Jan09 0:00 (ncsa_auth) /etc/squid/passwd
proxy 21799 0.0 0.0 1936 408 ? Ss Jan09 0:00 (ncsa_auth) /etc/squid/passwd
proxy 21800 0.0 0.0 1940 412 ? Ss Jan09 0:00 (ncsa_auth) /etc/squid/passwd
proxy 21801 0.0 0.0 1936 408 ? Ss Jan09 0:00 (ncsa_auth) /etc/squid/passwd
proxy 21802 0.0 0.0 1936 408 ? Ss Jan09 0:00 (ncsa_auth) /etc/squid/passwd
root 21920 0.0 0.0 2852 712 pts/0 S+ 05:28 0:00 grep squid
Ich versuch das teil jetzt schon seid nem Monat zum laufen zu bekommen....
Lesezeichen