Amahi Wiki
Page
Discussion
View source
History
Links
Wiki Home
Amahi Home
Amahi Apps
FAQ
Forums
Bug Tracker
Blog
Feature Gallery
Mailing Lists
Personal tools
Log in
Request account
Navigation
Recent changes
Help
Tools
Special pages
Printable version
Changes
From Amahi Wiki
Jump to:
navigation
,
search
← Older edit
SquidGuard
(view source)
Revision as of 01:58, 23 June 2020
285 bytes removed
,
01:58, 23 June 2020
→Checking the setup
{{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!
Bigfoot65
Trusted,
Bureaucrats
,
Administrators
12,424
edits