*** squidguard.conf ***
-----------------------
logdir /var/log/squidguard # путь к лог директории
dbhome /var/lib/squidguard # путь к базамrewrite download {
s@.*\.mp3$@http://192.168.2.9/squid/empty.wav@i
log download_log.log
}src student {
ip 192.168.2.1-192.168.2.40
ip 192.168.2.42-192.168.2.254
}
src my {
ip 192.168.2.41
}dest hands {
domainlist hands/domains
urllist hands/urls
}
acl {student { pass !hands all
rewrite download
}my { pass !hands all
rewrite download
}default {
pass none
redirect http://192.168.2.9/squid/empty.gif
log /var/log/squidguard/default.log
}
}*** squid.conf ***
------------------
http_port 8080
icp_port 3130hierarchy_stoplist cgi-bin ? chat
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERYcache_mem 20 MB
maximum_object_size 3000 KB
store_avg_object_size 50 KBcache_swap_low 97
cache_swap_high 98cache_dir ufs /var/spool/squid 256 16 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log none
cache_swap_log /var/log/squid/swap.log
logfile_rotate 10quick_abort_pct 60
negative_ttl 1 minutes
positive_dns_ttl 6 hours
negative_dns_ttl 5 minutes
half_closed_clients onerror_directory /usr/share/squid/errors/Russian-1251
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header onredirect_program /usr/bin/squidGuard
redirect_children 10
redirector_bypass onacl all src 0.0.0.0/0.0.0.0
acl office src 192.168.2.0/255.255.255.0
acl local src 127.0.0.1/255.255.255.255
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 1025-65535 # unregistered ports
acl CONNECT method CONNECT
acl FTP proto FTP
always_direct allow FTPhttp_access allow office
http_access allow local
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny CONNECThttp_access deny all
В чем может быть проблема? Все остальное режется отлично, а вот mp3 никак :(
В squid.conf должно быть указано:
redirect_program /usr/local/bin/squidGuardВместо:
s@.*\.mp3$@http://192.168.2.9/squid/empty.wav@i
вставь
s@.*\.mp3$@http://192.168.2.9/squid/empty.wav@rУ меня так работает
>В squid.conf должно быть указано:
> redirect_program /usr/local/bin/squidGuard
>у меня работает из /usr/sbin/squidGuard
>Вместо:
> s@.*\.mp3$@http://192.168.2.9/squid/empty.wav@i
>вставь
> s@.*\.mp3$@http://192.168.2.9/squid/empty.wav@r
>
>У меня так работаетда, помогло. спасибо!