Safe Squid
Safe Squid
Safe Squid
The name SafeSquid®, suggests that it is built out of Squid. However that is
not true! Squid is an excellent Caching Proxy server built by an entirely
different team of people and maintained at http://www.squid-cache.org
SafeSquid was originally conceived as an add-on plug-in for Squid, with a
simple objective of merely enhancing the filtering capabilities of Squid. The
name SafeSquid therefore seemed quite appropriate then! SafeSquid® is
functionally quite similar to Squid, just the perspective and execution is
different.SafeSquid® basically looks to address, the need of an web-
gateway from the security perspective. SafeSquid® is a complete Content
Filtering Internet Proxy with intrinsic capabilities for filtering malicious
content. SafeSquid® can now be used independently;- or in-conjunction
with Squid, as just a content-filter!
Copy the downloaded safesquid.tar.gz into /usr/local/src/
#cp safesquid-4.2.0-com20-free.tar.gz
/usr/local/src/safesquid.tar.gz
#cd
safesquid/
#./install
The install script asks you to select one of the following 3 options -
“Checking Dependencies
/lib/libsafe.so.2 (0xf6ffa000)
libpam.so.0 => /lib/libpam.so.0 (0xf6fea000)
libdl.so.2 => /lib/libdl.so.2 (0xf6fe5000)
libpthread.so.0 => /lib/tls/i686/libpthread.so.0
(0xf6fd4000)
libssl.so.4 => /lib/libssl.so.4 (0xf6fa0000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00bbb000)
libm.so.6 => /lib/tls/i686/libm.so.6 (0xf6f7d000)
libc.so.6 => /lib/tls/i686/libc.so.6 (0xf6e69000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0×00974000)
/lib/ld-linux.so.2 (0x00b97000)
libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2
(0x009e7000)
libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x00b1e000)
libcom_err.so.2 => /lib/libcom_err.so.2 (0x009e2000)
libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x00afb000)
libresolv.so.2 => /lib/libresolv.so.2 (0xf6e55000)
libcrypto.so.4 => /lib/libcrypto.so.4 (0x00a11000)
libz.so.1 => /usr/lib/libz.so.1 (0×00962000)
looks okay
Press any key to continue”
If a missing dependency is reported, you will have to install it before you can continue.
If everything is fine, then press any key to continue
Here onwards, the install script will ask for about 28 configuration option.
All option pages are self explanatory, and should not require you to make any changes.
To make changes in the default option, press “C”
When you have made the necessary changes, press “S” to continue with the installation.
You can also press “S” on the first option screen, to install with the default option.
(The settings can later be changed by editing the startup.conf file, which you will find
in /opt/safesquid/safesquid/init.d directory.
The changes will take effect the next time Safesquid is restarted.)
#/etc/init.d/safesquid
dircheck
This will check the installed files and directories, and their permissions.
Restart SafeSquid after completion, with this command
#/etc/init.d/safesquid
restart
The following command will check the safesquid is running on the server
#ps -waux | grep safesquid
You wish to -
1. Forward outgoing request of the user group ‘Accounts’ and ‘Finance’ to ISP
whose connection is on interface with IP 192.168.0.175
2. Forward outgoing request of the user group ‘IT’ and ‘System’ to ISP whose
connection is on interface with IP 192.168.0.180
Then, in ‘Network Settings’ section, add the following rules under the ‘Interface’
subsection -
Option Value
Enabled true
Comment This rule forwards request to IP
192.168.0.175
Profile Accounts,Finance
IP 192.168.0.175
Option Value
Enabled true
Comment This rule forwards request to IP
192.168.0.180
Profile IT,System
IP 192.168.0.180
Save settings after creating these rules by clicking on ‘Save settings’ in the top menu.
And also restart the SafeSquid service by giving command
#/etc/init.d/safesquid
restart