Changes

From Amahi Wiki
Jump to: navigation, search
69 bytes removed ,  01:58, 23 June 2020
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