Changes

From SME Server
Jump to navigationJump to search
1,068 bytes added ,  10:28, 22 October 2012
m
Line 45: Line 45:  
db configuration setprop squidguard AutoUpdate disabled
 
db configuration setprop squidguard AutoUpdate disabled
 
You can add your own categories. If they don't already exists, they won't be deleted or modified by the update feature.
 
You can add your own categories. If they don't already exists, they won't be deleted or modified by the update feature.
 +
 +
===Denied page===
 +
With the default configuration, denied requests are redirected to https://hostname.domain.tld/squidGuard/cgi-bin/blocked.cgi with various parameters (like IP address, username, client group, category etc...). Username will be empty (only -), this is because squid authentication is disabled. If you enable squid authentication (with custom templates), you'll be able to log username. The downside is that you'll have to configure all your browsers to use squid as proxy, because authentication is not compatible with transparent proxying.
 +
 +
If you want to change the blocked page, you can. First, copye the default page to another name:
 +
 +
cp -a /usr/share/squidGuard/cgi-bin/blocked.cgi /usr/share/squidGuard/cgi-bin/custom.cgi
 +
 +
Now, you can edit this new file to your need. Then, just select it as the default blocked page:
 +
 +
db configuration setprop squidguard RedirectURL \
 +
http://hostname.systemname.com/squidGuard/cgi-bin/custom.cgi?clientaddr=%a&clientname=%n&clientuser=%i&clientgroup=%s&targetgroup=%t&url=%u
 +
signal-event http-proxy-update
    
===MySQL logs===
 
===MySQL logs===

Navigation menu