16.07.2009

Squid

squid.conf
acl loc src *.*.*.*/*.*.*.*
acl all src all
http_access allow loc
http_access deny all
http_port 3128 transparent #without configuration client browser, need rule for redirection in firewall
cache_mem 128 MB
cache_dir ufs /srv/squid 10000 16 256 #filesystem path size which_directorys which_subdirectorys
maximum_object_size 100480 KB
cache_swap_low 90 #size in %
cache_swap_high 97
delay_pools 1 #one general pool
delay_class 1 3 #3 class, aggregate, network, individual
delay_access 1 allow loc #access rule for pool
delay_access 1 deny all
delay_parameters 1 -1/-1 -1/-1 16000/16000 #parameters for pool, aggregate unlim, network unlim, individual 16 KByte/s
redirect_program /usr/bin/squidGuard
squidguard.conf
dest bad_boy {
domainlist bad_boy/domains #bad domains
urllist bad_boy/urls #bad urls
}
acl {
default {
pass !bad_boy all #deny bad_boy, pass all
redirect http://localhost #
arbeiten!
}
}