Changes

From Amahi Wiki
Jump to: navigation, search
285 bytes removed ,  01:58, 23 June 2020
{{MessageBox|backgroundcolor = #FBB|
image =Warning.png|
heading =WARNING|
message = Fedora 12 is deprecated.<br>[[Amahi 7]] is the latest stable release.}}
----
 
 
{{NeedsUpdate}}
log in as root and issue the following command:
{{Code|Code = bash# yum -y install squidGuard}}
Download the latest blacklist package from MESD (featured on the squidGuard site):
{{Code|Code = bash# cd /root/ bash# wget http://squidguard.mesd.k12.or.us/blacklists.tgz}}
== Configuring squidGuard ==
Now you need to configure squidGuard. Create a backup of /etc/squid/squidGuard.conf first:
{{Code|Code = bash# cp /etc/squid/squidGuard.conf /etc/squid/squidGuard.conf.orig}}
Then open the file in your favorite editor (e.g. vi).
Now we need to make Squid aware that it should use squidGuard. First we create a backup:
{{Code|Code = bash# cp /etc/squid/squid.conf /etc/squid/squid.conf.orig}}
Open the file with your favorite editor and add the following line at the end:
Now we need to extract the blacklist files we've downloaded (they are more up to date than the Fedora maintained versions):
{{Code|Code = bash# cd /var/squidGuard/ bash# tar -xvzf /root/blacklists.tgz}} 
The last step is reloading squid with the new settings. You can use a separate terminal to follow the logfile.
{{Code|Code = bash# tail -f /var/log/squidGuard/squidGuard.log
other terminal:
bash# service squid reload}}
You should see something like this:
To see when/how often the redirect (in this case blocked.html) has been triggered you can search the squid access log:
{{Code|Code = bash# grep blocked.html /var/log/squid/access.log}}
Note that unconfigured clients can still roam the web freely.
Enjoy!
12,424

edits