Fedora squidGuard squidGuard.conf example on Fedora 17
Fedora squidGuard squidGuard.conf example
The example below show the squidguard configuration file squidGuard.conf that located in /etc/squid/ directory. This squidGuard.conf file is install, configure and done on Fedora 17. To edit the squidGuard configuration file, make sure that yu have permiission to the configuration file.... so this step by step only show you how to edit the squidGurd.conf start from the su - command.. and click here if you need to install and configure squidGuard to block unwanted web access from your squid client
Edit the squidGuard configuration
1. Login on your Fedora box. Open x terminal by go to Activities -> Applications -> System Tools -> Terminal
2. and then issue su - command and enter root password when ask as show on example below

[jason@fedora ~]$ su -
Password: <-- Type in root password here and hit enter key
[root@fedora ~]#
3. Then go to /etc/squid/ directory by using the cd command and you can list directory contents by issuing ls command
[root@fedora ~]# cd /etc/squid/
[root@fedora squid]# ls
4. Open the squidGurd conf by using gedit editor or other editor....
[root@fedora squid]# gedit squidGuard.conf

================================================
#
# CONFIG FILE FOR SQUIDGUARD
#
# See http://www.squidguard.org/config/ for more examples
#
dbhome /var/squidGuard/blacklists
logdir /var/log/squidGuard
#
# SOURCE ADDRESSES:
#
src admin {
ip 172.16.160.129 172.16.160.120
}
#
# DESTINATION CLASSES:
#
dest ads {
log ads
domainlist ads/domains
urllist ads/urls
}
dest audio-video {
log audio-video
domainlist audio-video/domains
urllist audio-video/urls
}
dest aggressive {
log aggressive
domainlist aggressive/domains
urllist aggressive/urls
}
dest drugs {
log drugs
domainlist drugs/domains
urllist drugs/urls
}
dest gambling{
log gambling
domainlist gambling/domains
urllist gambling/urls
}
dest hacking {
log hacking
domainlist hacking/domains
urllist hacking/urls
}
dest mail {
log mail
domainlist mail/domains
urllist mail/urls
}
dest porn{
log porn
domainlist porn/domains
urllist porn/urls
}
dest proxy{
log proxy
domainlist proxy/domains
urllist proxy/urls
}
dest violence{
log violence
domainlist violence/domains
urllist violence/urls
}
dest warez{
log warez
domainlist warez/domains
urllist warez/urls
}
# Disable local-ok and local-block until you configure it
# dest local-ok{
# domainlist local-ok/domains
# urllist local-ok/urls
# }
# dest local-block{
# log local-block
# domainlist local-block/domains
# urllist local-block/urls
# }
rewrite google {
s@(google.com/search.*q=.*)@\1\&safe=active@i
s@(google.com/images.*q=.*)@\1\&safe=active@i
s@(google.com/groups.*q=.*)@\1\&safe=active@i
s@(google.com/news.*q=.*)@\1\&safe=active@i
# log google
}
acl {
admin {
pass any
}
default {
# for google to be in "safe mode"
rewrite google
# the default categories are conservative, please add any additional
# categories listed above or simply comment out this line and uncomment
# out the line below it.
# pass local-ok !local-block !gambling !porn !warez all
pass !aggressive !drugs !gambling !hacking !porn !proxy !violence !warez any
redirect 302:http://fedora.localdomain/cgi-bin/squidGuard.cgi?clientaddr=%a&clientname=%n&clientident=%i&srcclass=%s&targetgroup=%t&url=%u
# redirect 302:http://fedora.localdomain/cgi-bin/squidGuard-simple.cgi?clientaddr=%a&clientname=%n&clientident=%i&srcclass=%s&targetclass=%t&url=%u
}
}
================================================
5. Edit and configure the squidGuard as configuration above.... you may customize the configuration as you wish.... please note that the configuration error or any error on above configuratoin may result that you may not able to compile the squidGuard blacklists database.
Now... Just make sure you save the squidGuard configuration before continue to next step...
Keywords: squidguard.conf example, squidguard configuration example, squidguard example, squidguard example
- Add new comment
- 890 reads
- Email this page
Thanks for Reading and Check Other Popular Linux Topics
All time:
- Configure and Setup Squid Cache Proxy Server on Fedora Core.
- Using Linux rm command to delete, remove hidden files and folder - Basic Linux Command.
- Copy Linux Files and Copy Directory Using cp Command - Linux Basic Command.
- Moving or rename files and directory using Linux mv command - Basic Linux Command.
- Add, view, edit and configure route and static route on Linux Fedora Core - Linux Server Configuration.
- Get and display the size of file and directory in Linux system using du command.
- Step by step Install Setup and Configure Linux Fedora Core Server and Network Management with Screen Shot and Example.
- Create file and display file contents in Linux using cat command.
- Configure Squid to block HTTP request to specific web sites.
- Example of samba smbpasswd file and samba smbusers configuration file.

Recent comments
1 week 12 hours ago
1 week 4 days ago
5 weeks 4 days ago
10 weeks 2 days ago
10 weeks 2 days ago
11 weeks 17 hours ago
11 weeks 3 days ago
12 weeks 23 hours ago
12 weeks 1 day ago
18 weeks 4 days ago