Installing SquidGuard

Hello. After installing Squid, SquidGuard might be useful, a “plugin” for Squid to control and redirect URLs processed by Squid, useful for blocking malicious and unwanted sites. Let’s proceed with the installation sudo apt-get install squidGuard and of course immediately after with the configuration sudo vi /etc/squidguard/squidGuard.conf where you need to add/modify these lines dbhome folders_path logdir /var/log/squid3 # DESTINATION CLASSES: dest ads { #location of blacklists, domains, urls, expressions. domainlist folder_name/ads/domains urllist folder_name/ads/urls expressionlist folder_name/ads/expressions } ...

April 30, 2015 · Ugo Palumbo

How to configure blacklist for Squid

Hello. Have you configured Squid ( how to do it) and now want to add a blacklist? Very simple. Create a text file containing the addresses of the sites you want to block and add in the Squid configuration file (/etc/squid/squid.conf) acl urlblock dstdom_regex “full_path_to_file” http_access deny urlblock where “full_path_to_file” means the path+name of the file you just created. Warning: http_access deny urlblock must be inserted before the “allow” statements. ...

April 26, 2015 · Ugo Palumbo

Install Squid (with web cache)

Hello. Let’s see how to install a proxy server like Squid with web cache. Installation apt-get install squid Simple, right? All the configuration is missing, the file of which we can find in /etc/squid/squid.conf sudo vi /etc/squid/squid.conf First of all, we need to enable our network, so under the string acl localnet src 192.168.0.0/16 # RFC1918 possible internal network we insert the acl called “mynetwork” with the static IP address of the computer from which we want to use the server: ...

April 19, 2015 · Ugo Palumbo

[Raspberry Pi] After installing Raspbian

Hello. After installing Raspbian (on the Raspberry website there are all the necessary guides), the first things to do are: enable ssh: sudo raspi-config navigate to the “SSH” option under “Advanced options” and enable it (it’s not necessary but it might be useful for remote access). Change the default username and password (respectively “pi” and “raspberry”): enable the root user with: sudo passwd root log out from the pi user, log in as root and give these commands (new_user = your new username): ...

April 18, 2015 · Ugo Palumbo