Difference between revisions of "Files And Folders"

From Secure Web Gateway
Share/Save/Bookmark
Jump to: navigation, search
 
Line 1: Line 1:
 
<div class="noautonum">
 
<div class="noautonum">
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/etc/init.d/safesquid</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/etc/init.d/safesquid</span></h1>
  
Directory<span style="font-family:lucida sans unicode,lucida grande,sans-serif"><code>/etc/init.d</code>&nbsp;</span> contains scripts for controlling(initialization and termination) the system and various services. These scripts can be invoked directly.<br/> SafeSquid script is also stored in <span style="font-family:lucida sans unicode,lucida grande,sans-serif">&nbsp;<code>/etc/init.d</code>&nbsp;</span> directory which provide the user to control with various commands&nbsp; <span style="font-family:lucida sans unicode,lucida grande,sans-serif"><code>{start|stop|restart|status|foreground}</code></span>.<br/> SafeSquid will start automatically when system gets rebooted. It provide the user to control over the SafeSquid to start, stop or restart the service. And also it sets all required dependencies to SafeSquid start like setting up all environmental variables.<br/> SafeSquid uses <span style="font-family:lucida sans unicode,lucida grande,sans-serif"><code>/etc/init.d/safesquid</code></span> to <span style="font-family:lucida sans unicode,lucida grande,sans-serif"><code>start</code>,&nbsp;<code>stop</code>, <code>restart</code></span> SafeSquid Service more frequently.
+
<p>Directory<span style="font-family:lucida sans unicode,lucida grande,sans-serif"><code>/etc/init.d</code>&nbsp;</span> contains scripts for controlling(initialization and termination) the system and various services. These scripts can be invoked directly.<br />
 +
SafeSquid script is also stored in <span style="font-family:lucida sans unicode,lucida grande,sans-serif">&nbsp;<code>/etc/init.d</code>&nbsp;</span> directory which provide the user to control with various commands&nbsp; <span style="font-family:lucida sans unicode,lucida grande,sans-serif"><code>{start|stop|restart|status|foreground}</code></span>.<br />
 +
SafeSquid will start automatically when system gets rebooted. It provide the user to control over the SafeSquid to start, stop or restart the service. And also it sets all required dependencies to SafeSquid start like setting up all environmental variables.<br />
 +
SafeSquid uses <span style="font-family:lucida sans unicode,lucida grande,sans-serif"><code>/etc/init.d/safesquid</code></span> to <span style="font-family:lucida sans unicode,lucida grande,sans-serif"><code>start</code>,&nbsp;<code>stop</code>, <code>restart</code></span> SafeSquid Service more frequently.</p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/etc/init.d/tcp_tune.sh</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/etc/init.d/tcp_tune.sh</span></h1>
  
SafeSquid stores <span style="font-family:lucida sans unicode,lucida grande,sans-serif"><code>tcp_tune.sh</code></span> script in the directory <span style="font-family:lucida sans unicode,lucida grande,sans-serif"><code>/etc/init.d/</code></span> for TCP Tunning. This script will optimize/set some of the values of the TCP parameters like<br/> -maximum number of packets to put in the queue before delivery to the upper layer.<br/> -the default and maximum write (receiving) and read (sending) buffer size allocated to any type of connection.<br/> -the maximum number of pending requests to put in queue before processing one connection.<br/> -the port ranges available for a new connection.<br/> -whether to reset new connections if the system is currently overflowed with new connection attempts that the daemon(s) can not handle.<br/> -how long to keep sockets in wait state after connections are closed.<br/> -Keep-alive parameters for overall stability and system resource utilization.<br/> -maximum number of remembered connection requests, which have not received an acknowledgment from connecting client.<br/> -TCP receive memory and transmit buffer size.<br/> -whether to allow to reuse TIME-WAIT sockets for new connections.<br/> SafeSquid stores the modified TCP parameters into <span style="font-family:lucida sans unicode,lucida grande,sans-serif"><code>/tmp/sysctl_.conf</code></span> file for debugging purpose.
+
<p>SafeSquid stores <span style="font-family:lucida sans unicode,lucida grande,sans-serif"><code>tcp_tune.sh</code></span> script in the directory <span style="font-family:lucida sans unicode,lucida grande,sans-serif"><code>/etc/init.d/</code></span> for TCP Tunning. This script will optimize/set some of the values of the TCP parameters like<br />
 +
-maximum number of packets to put in the queue before delivery to the upper layer.<br />
 +
-the default and maximum write (receiving) and read (sending) buffer size allocated to any type of connection.<br />
 +
-the maximum number of pending requests to put in queue before processing one connection.<br />
 +
-the port ranges available for a new connection.<br />
 +
-whether to reset new connections if the system is currently overflowed with new connection attempts that the daemon(s) can not handle.<br />
 +
-how long to keep sockets in wait state after connections are closed.<br />
 +
-Keep-alive parameters for overall stability and system resource utilization.<br />
 +
-maximum number of remembered connection requests, which have not received an acknowledgment from connecting client.<br />
 +
-TCP receive memory and transmit buffer size.<br />
 +
-whether to allow to reuse TIME-WAIT sockets for new connections.<br />
 +
SafeSquid stores the modified TCP parameters into <span style="font-family:lucida sans unicode,lucida grande,sans-serif"><code>/tmp/sysctl_.conf</code></span> file for debugging purpose.</p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/etc/logrotate.d/safesquid</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/etc/logrotate.d/safesquid</span></h1>
  
Logs are useful when you want to track usage or troubleshoot an application. As more information gets logged, however, log files use more disk space. Running out of disk space because of a large log file is a problem. Logrotate provides an ability for a system administrator to systematically rotate and archive any log files produced by the system and thus reducing an operating system's disk space requirement. By default, logrotate is invoked once a day using a cron scheduler from location. The SafeSquid logrotate script&nbsp; is responsible to rotate all logs related to the SafeSquid if any log file having size more than 1GB. And convert them into gzip format for every 1GB logs generated by SafeSquid.
+
<p>Logs are useful when you want to track usage or troubleshoot an application. As more information gets logged, however, log files use more disk space. Running out of disk space because of a large log file is a problem. Logrotate provides an ability for a system administrator to systematically rotate and archive any log files produced by the system and thus reducing an operating system&#39;s disk space requirement. By default, logrotate is invoked once a day using a cron scheduler from location. The SafeSquid logrotate script&nbsp; is responsible to rotate all logs related to the SafeSquid if any log file having size more than 1GB. And convert them into gzip format for every 1GB logs generated by SafeSquid.</p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/etc/monit/conf.d/safesquid.monit</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/etc/monit/conf.d/safesquid.monit</span></h1>
  
<a href="Monit">Monit</a>&nbsp;is a great utility that monitors your daemons. If a daemon fails, Monit will start the daemon it will automatically restart the process. We are using a generic configuration file for monit to monitor the SafeSquid service. So we created the configuration file SafeSquid.monit and place that in conf.d folder. So that no need to change the original configuration file. This will monitor SafeSquid service. When SafeSquid stops for any reason it will check and it will start the SafeSquid without user interaction.
+
<p>&lt;a href=&quot;Monit&quot;&gt;Monit&lt;/a&gt;&nbsp;is a great utility that monitors your daemons. If a daemon fails, Monit will start the daemon it will automatically restart the process. We are using a generic configuration file for monit to monitor the SafeSquid service. So we created the configuration file SafeSquid.monit and place that in conf.d folder. So that no need to change the original configuration file. This will monitor SafeSquid service. When SafeSquid stops for any reason it will check and it will start the SafeSquid without user interaction.</p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/etc/pam.d/safesquid</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/etc/pam.d/safesquid</span></h1>
  
This file contains the PAM configuration file for SafeSquid. PAM (Pluggable Authentication Modules) is a framework that assists applications in performing "authentication-related activities". The core pieces of PAM are a library (libpam) and a collection of PAM modules, which are dynamically linked libraries(.so) files. Each module performs one specific task, and a "PAM-aware" application typically uses a stack of several modules to get the job done. PAM can be used to authenticate users, control logins, allocate resources to users, or update login credentials.<br/> &nbsp; SafeSquid&nbsp;uses <span style="font-family:lucida sans unicode,lucida grande,sans-serif"><code>pam_unix.so</code></span> and <span style="font-family:lucida sans unicode,lucida grande,sans-serif"><code>pam_permit.so</code> </span>files.<br/> pam_unix&nbsp;: This is the standard Unix authentication module. It performs authentication against hashed passwords stored in <span style="font-family:lucida sans unicode,lucida grande,sans-serif"><code>/etc/shadow</code> </span>file and <span style="font-family:lucida sans unicode,lucida grande,sans-serif"><code>/etc/passwd</code> </span>file.<br/> pam_permit&nbsp;: This module always permit access and returns success. It does nothing else. &nbsp;
+
<p>This file contains the PAM configuration file for SafeSquid. PAM (Pluggable Authentication Modules) is a framework that assists applications in performing &quot;authentication-related activities&quot;. The core pieces of PAM are a library (libpam) and a collection of PAM modules, which are dynamically linked libraries(.so) files. Each module performs one specific task, and a &quot;PAM-aware&quot; application typically uses a stack of several modules to get the job done. PAM can be used to authenticate users, control logins, allocate resources to users, or update login credentials.<br />
 +
&nbsp; SafeSquid&nbsp;uses <span style="font-family:lucida sans unicode,lucida grande,sans-serif"><code>pam_unix.so</code></span> and <span style="font-family:lucida sans unicode,lucida grande,sans-serif"><code>pam_permit.so</code> </span>files.<br />
 +
pam_unix&nbsp;: This is the standard Unix authentication module. It performs authentication against hashed passwords stored in <span style="font-family:lucida sans unicode,lucida grande,sans-serif"><code>/etc/shadow</code> </span>file and <span style="font-family:lucida sans unicode,lucida grande,sans-serif"><code>/etc/passwd</code> </span>file.<br />
 +
pam_permit&nbsp;: This module always permit access and returns success. It does nothing else. &nbsp;</p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/etc/sysctl.conf</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/etc/sysctl.conf</span></h1>
  
This file contains the system tuning parameters, to increase the performance. SafeSquid modifies and save this file for setting system variables. This file is preload /configuration file which is used to modify kernel parameters at runtime. These parameters are listed under <span style="font-family:lucida sans unicode,lucida grande,sans-serif"><code>/proc/sys</code></span> directory.<br/> SafeSquid optimizes various Linux networking and system settings such as:<br/> - Improves memory-intensive workloads.<br/> - Limits the number of discrete mapped memory areas.<br/> - Maximum number of packets to put in the queue before delivery to the upper layer.<br/> - Increase the maximum connections.<br/> - Define the port range available for a new connection.<br/> - The maximum amount of option memory buffers.<br/> - The default and maximum amount for the receive and send socket memory.<br/> - Minimum, average and maximum size of the TCP read and send buffers.
+
<p>This file contains the system tuning parameters, to increase the performance. SafeSquid modifies and save this file for setting system variables. This file is preload /configuration file which is used to modify kernel parameters at runtime. These parameters are listed under <span style="font-family:lucida sans unicode,lucida grande,sans-serif"><code>/proc/sys</code></span> directory.<br />
 +
SafeSquid optimizes various Linux networking and system settings such as:<br />
 +
- Improves memory-intensive workloads.<br />
 +
- Limits the number of discrete mapped memory areas.<br />
 +
- Maximum number of packets to put in the queue before delivery to the upper layer.<br />
 +
- Increase the maximum connections.<br />
 +
- Define the port range available for a new connection.<br />
 +
- The maximum amount of option memory buffers.<br />
 +
- The default and maximum amount for the receive and send socket memory.<br />
 +
- Minimum, average and maximum size of the TCP read and send buffers.</p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/opt/safesquid/bin/modules</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/opt/safesquid/bin/modules</span></h1>
  
SafeSquid has a library of add-on modules that can be easily added or removed, to enhance or modify existing features. SafeSquid modules are independently developed and compiled unit from a source file. Each module encapsulates share object(.so) and xml files to implement a particular functionality. SafeSquid loads all add-on modules from the directory <span style="font-family:lucida sans unicode,lucida grande,sans-serif"><code>/opt/safesquid/bin/modules</code></span> when the process is started.
+
<p>SafeSquid has a library of add-on modules that can be easily added or removed, to enhance or modify existing features. SafeSquid modules are independently developed and compiled unit from a source file. Each module encapsulates share object(.so) and xml files to implement a particular functionality. SafeSquid loads all add-on modules from the directory <span style="font-family:lucida sans unicode,lucida grande,sans-serif"><code>/opt/safesquid/bin/modules</code></span> when the process is started.</p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/opt/safesquid/bin/modules/dlp</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/opt/safesquid/bin/modules/dlp</span></h1>
  
SafeSquid has DLP feature as an add-on module. This folder contains shared object (.so) and xml files of the DLP module. Data loss prevention(DLP) feature detects potential data breaches/data ex-filtration transmissions and prevents end users to send sensitive or critical information outside the corporate network. For example, if an employee tried to upload a corporate file via email, then file will not be uploaded and template will be displayed.
+
<p>SafeSquid has DLP feature as an add-on module. This folder contains shared object (.so) and xml files of the DLP module. Data loss prevention(DLP) feature detects potential data breaches/data ex-filtration transmissions and prevents end users to send sensitive or critical information outside the corporate network. For example, if an employee tried to upload a corporate file via email, then file will not be uploaded and template will be displayed.</p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/opt/safesquid/bin/modules/elevated</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/opt/safesquid/bin/modules/elevated</span></h1>
  
This folder contains shared object (.so) and xml files of the Elevated Privacy module. You can use Elevated Privacy to protect privacy activity across different websites. Otherwise, third-party cookies will be tracking your activities. Example: When you are surfing the internet by logging into any of your accounts like Hotmail, Yahoo, Gmail, Online Banking… etc. Your activities will be tracked by third party and referral domains. Set 'Privacy Level' as per your requirement to block Third-Party Cookies, hide the HTTP & HTTPS referer and User Agents.
+
<p>This folder contains shared object (.so) and xml files of the Elevated Privacy module. You can use Elevated Privacy to protect privacy activity across different websites. Otherwise, third-party cookies will be tracking your activities. Example: When you are surfing the internet by logging into any of your accounts like Hotmail, Yahoo, Gmail, Online Banking&hellip; etc. Your activities will be tracked by third party and referral domains. Set &#39;Privacy Level&#39; as per your requirement to block Third-Party Cookies, hide the HTTP &amp; HTTPS referer and User Agents.</p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/opt/safesquid/bin/modules/icap</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/opt/safesquid/bin/modules/icap</span></h1>
  
This folder contains shared object (.so) and xml files of the ICAP module. The ICAP feature enables the proxy server to use an ICAP server to perform request modification, request satisfaction, or response modification to any request or response.<br/> When an ICAP server is installed with a caching system, every transaction is piped through the ICAP server, allowing the server to modify or redirect Web requests or responses.<br/> When an ICAP server is installed in an FTP system, every transaction is piped through the ICAP server, allowing virus and content filtering software to operate on the content.
+
<p>This folder contains shared object (.so) and xml files of the ICAP module. The ICAP feature enables the proxy server to use an ICAP server to perform request modification, request satisfaction, or response modification to any request or response.<br />
 +
When an ICAP server is installed with a caching system, every transaction is piped through the ICAP server, allowing the server to modify or redirect Web requests or responses.<br />
 +
When an ICAP server is installed in an FTP system, every transaction is piped through the ICAP server, allowing virus and content filtering software to operate on the content.</p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/opt/safesquid/bin/modules/imgfilter</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/opt/safesquid/bin/modules/imgfilter</span></h1>
  
SafeSquid has Image Analyzer(also known as Imgfilter) feature as an add-on module. This folder contains shared object (.so) and xml files of the Image Analyzer module.<br/> This module allows you to block pornographic images from websites and webmails, by analyzing the graphical content of an image, in real time, and block all suspicious images, so that a blank or checkered box, is displayed in place of the blocked image. Although it is only about 80%-90% accurate (configurable), it acts as a good deterrent.
+
<p>SafeSquid has Image Analyzer(also known as Imgfilter) feature as an add-on module. This folder contains shared object (.so) and xml files of the Image Analyzer module.<br />
 +
This module allows you to block pornographic images from websites and webmails, by analyzing the graphical content of an image, in real time, and block all suspicious images, so that a blank or checkered box, is displayed in place of the blocked image. Although it is only about 80%-90% accurate (configurable), it acts as a good deterrent.</p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/opt/safesquid/bin/modules/imgfilter/imgfilter</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/opt/safesquid/bin/modules/imgfilter/imgfilter</span></h1>
  
This is a subfolder in the Image Analyzer(Imgfilter) module. This folder contains <code>libIAImageReaderShared.so.*</code> and <code>libIAEngineShared.so.*</code> files which are dependency/ library files.&nbsp;These are Engine and Reader library files which should be loaded after Image Analyzer module is initialized. This folder also contains <code>imgfilter.tune</code> file to fine tune the filter by defining the threshold score limit.
+
<p>This is a subfolder in the Image Analyzer(Imgfilter) module. This folder contains <code>libIAImageReaderShared.so.*</code> and <code>libIAEngineShared.so.*</code> files which are dependency/ library files.&nbsp;These are Engine and Reader library files which should be loaded after Image Analyzer module is initialized. This folder also contains <code>imgfilter.tune</code> file to fine tune the filter by defining the threshold score limit.</p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/opt/safesquid/bin/modules/rewrite</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/opt/safesquid/bin/modules/rewrite</span></h1>
  
SafeSquid has content modifier(Content Re-Write) feature as an add-on module. This folder contains shared object (.so) and xml files of the content modifier module. Content modifier is a very powerful feature that must be used with extreme care. This feature allows you to use regular expressions to modify the contents of web pages, files, the client header, and server header in real time. It can be used to remove content like AcitveX, JavaScript, cookies, etc., from non-trusted websites, before serving the page to users.
+
<p>SafeSquid has content modifier(Content Re-Write) feature as an add-on module. This folder contains shared object (.so) and xml files of the content modifier module. Content modifier is a very powerful feature that must be used with extreme care. This feature allows you to use regular expressions to modify the contents of web pages, files, the client header, and server header in real time. It can be used to remove content like AcitveX, JavaScript, cookies, etc., from non-trusted websites, before serving the page to users.</p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/opt/safesquid/bin/modules/sscore</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/opt/safesquid/bin/modules/sscore</span></h1>
  
This folder contains shared object (.so) and xml files of the SScore module. SScore allows you to categorize the websites, depending upon the potential nature of the content served by the web-site. SScore queries SafeSquid's Content Categorisation Service (CCS), to determine if a web-site belongs to one or more categories.
+
<p>This folder contains shared object (.so) and xml files of the SScore module. SScore allows you to categorize the websites, depending upon the potential nature of the content served by the web-site. SScore queries SafeSquid&#39;s Content Categorisation Service (CCS), to determine if a web-site belongs to one or more categories.</p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/opt/safesquid/bin/modules/svscan</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/opt/safesquid/bin/modules/svscan</span></h1>
  
This folder contains shared object (.so) and xml files of the SvScan module. SvScan is a high-speed in-memory virus scanner built in module that protects the users against malware. SvScan uses an anti-Malware signature database which is constantly updated to ensure application of the latest anti-malware definitions. SvScan uses proactive protection, such as: generic detection routines, heuristic engine, and a behavior based engine to proactively prevent unknown or previously unseen malware.
+
<p>This folder contains shared object (.so) and xml files of the SvScan module. SvScan is a high-speed in-memory virus scanner built in module that protects the users against malware. SvScan uses an anti-Malware signature database which is constantly updated to ensure application of the latest anti-malware definitions. SvScan uses proactive protection, such as: generic detection routines, heuristic engine, and a behavior based engine to proactively prevent unknown or previously unseen malware.</p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/opt/safesquid/bin/modules/wccp</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/opt/safesquid/bin/modules/wccp</span></h1>
  
This folder contains shared object (.so) and xml files of the WCCP module.<br/> Web Cache Communication Protocol (WCCP) is a Cisco-developed content-routing protocol that provides a mechanism to redirect traffic flows in real-time. It has built-in load balancing, scaling, fault tolerance, and service-assurance (failsafe) mechanisms. SafeSquid WCCP module is configured to interact with WCCP enabled routers. WCCP enabled routers are used as gateway for End users. All the clients traffic will be transparently redirected to SafeSquid proxy by router.
+
<p>This folder contains shared object (.so) and xml files of the WCCP module.<br />
 +
Web Cache Communication Protocol (WCCP) is a Cisco-developed content-routing protocol that provides a mechanism to redirect traffic flows in real-time. It has built-in load balancing, scaling, fault tolerance, and service-assurance (failsafe) mechanisms. SafeSquid WCCP module is configured to interact with WCCP enabled routers. WCCP enabled routers are used as gateway for End users. All the clients traffic will be transparently redirected to SafeSquid proxy by router.</p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/opt/safesquid/bin/safesquid</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/opt/safesquid/bin/safesquid</span></h1>
  
This is the SafeSquid total configuration file. It is soft linked with running version of SafeSquid. If you delete this file SafeSquid will not work.
+
<p>This is the SafeSquid total configuration file. It is soft linked with running version of SafeSquid. If you delete this file SafeSquid will not work.</p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/opt/safesquid/bin/sections</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/opt/safesquid/bin/sections</span></h1>
  
This folder contains the necessary XMLs of SafeSquid. You can find XML of every feature in this folder except add-on modules. These XMLs are used for rendering SafeSquid User Interface.
+
<p>This folder contains the necessary XMLs of SafeSquid. You can find XML of every feature in this folder except add-on modules. These XMLs are used for rendering SafeSquid User Interface.</p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/opt/safesquid/default</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/opt/safesquid/default</span></h1>
  
This folder contains default <code>startup.ini</code> and <code>setup.ini</code> files. These files should not be altered.<br/> SafeSquid loads default configuration/startup parameters from <code>startup.ini</code> file. You can modify the startup parameters values from SafeSquid User interface. Modified values of startup parameters are stored in <code>/opt/safesquid/startup.ini</code> file.<br/> SafeSquid loads default setup parameters from <code>setup.ini</code> file. To modify setup parameters you should take copy of <code>setup.ini</code> file and store it as <code>/opt/safesquid/setup.ini</code> before editing it manually.
+
<p>This folder contains default <code>startup.ini</code> and <code>setup.ini</code> files. These files should not be altered.<br />
 +
SafeSquid loads default configuration/startup parameters from <code>startup.ini</code> file. You can modify the startup parameters values from SafeSquid User interface. Modified values of startup parameters are stored in <code>/opt/safesquid/startup.ini</code> file.<br />
 +
SafeSquid loads default setup parameters from <code>setup.ini</code> file. To modify setup parameters you should take copy of <code>setup.ini</code> file and store it as <code>/opt/safesquid/setup.ini</code> before editing it manually.</p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/tmp/safesquid</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/tmp/safesquid</span></h1>
  
This folder contains the temporary files created by SafeSquid while process is running or upgrading to the latest version.
+
<p>This folder contains the temporary files created by SafeSquid while process is running or upgrading to the latest version.</p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/usr/local/safesquid</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/usr/local/safesquid</span></h1>
  
This directory contains <code>security</code>, <code>ui_root</code>, <code>sqlite</code> and <code>bin</code> sub-directories. These sub-directories contains the various files related to<br/> -activation of the product<br/> -User Interface rendering<br/> -Sqlite Database<br/> -SSL certificates etc.
+
<p>This directory contains <code>security</code>, <code>ui_root</code>, <code>sqlite</code> and <code>bin</code> sub-directories. These sub-directories contains the various files related to<br />
 +
-activation of the product<br />
 +
-User Interface rendering<br />
 +
-Sqlite Database<br />
 +
-SSL certificates etc.</p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/usr/local/safesquid/bin</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/usr/local/safesquid/bin</span></h1>
  
This directory contains the scripts which can be executed/run with external applications section. User created scripts should be stored in <code>/usr/local/safesquid/bin</code> directory for execution.
+
<p>This directory contains the scripts which can be executed/run with external applications section. User created scripts should be stored in <code>/usr/local/safesquid/bin</code> directory for execution.</p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/usr/local/safesquid/security</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/usr/local/safesquid/security</span></h1>
  
This directory contains <code>policies</code>, <code>ssl</code> and <code>dns</code> sub-directories. This directory contains <code>activation_key.updates.backup</code>, <code>activation_key.updates</code> and <code>activation_key</code> files which are product activation related files. These files should never be deleted otherwise SafeSquid service will be stopped.
+
<p>This directory contains <code>policies</code>, <code>ssl</code> and <code>dns</code> sub-directories. This directory contains <code>activation_key.updates.backup</code>, <code>activation_key.updates</code> and <code>activation_key</code> files which are product activation related files. These files should never be deleted otherwise SafeSquid service will be stopped.</p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/usr/local/safesquid/security/policies</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/usr/local/safesquid/security/policies</span></h1>
  
This directory contains the <code>default.config.xml</code> which is the default configuration file of SafeSquid. You can modify configuration, i.e. Any of the section or policies from SafeSquid interface. Whenever a user modifies the configuration 1st time and do save config, two files will be created. One of the file created is <code>config.xml</code> which will be now latest configuration file. Other file created will be <code>config_XXXX@YYYY_ZZZZ.xml</code> which will be the last backup file of your saved configuration. Here XXXX is Username who modified/Accessed the configuration, YYYY is IP Address from which file is modified and ZZZZ is the Time at which file modified. Every modification of configuration afterwards will create one new <code>config_XXXX@YYYY_ZZZZ.xml</code> file. All these files can be used for restoring last known good configuration of the user.
+
<p>This directory contains the <code>default.config.xml</code> which is the default configuration file of SafeSquid. You can modify configuration, i.e. Any of the section or policies from SafeSquid interface. Whenever a user modifies the configuration 1st time and do save config, two files will be created. One of the file created is <code>config.xml</code> which will be now latest configuration file. Other file created will be <code>config_XXXX@YYYY_ZZZZ.xml</code> which will be the last backup file of your saved configuration. Here XXXX is Username who modified/Accessed the configuration, YYYY is IP Address from which file is modified and ZZZZ is the Time at which file modified. Every modification of configuration afterwards will create one new <code>config_XXXX@YYYY_ZZZZ.xml</code> file. All these files can be used for restoring last known good configuration of the user.</p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/usr/local/safesquid/security/ssl/</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/usr/local/safesquid/security/ssl/</span></h1>
  
<span style="font-family:lucida sans unicode,lucida grande,sans-serif">This folder contains the SSL ROOT certificates and and trusted bundle file. It also contains the subca used in openvpn configuration.</span>
+
<p><span style="font-family:lucida sans unicode,lucida grande,sans-serif">This folder contains the SSL ROOT certificates and and trusted bundle file. It also contains the subca used in openvpn configuration.</span></p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/usr/local/safesquid/sqlite</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/usr/local/safesquid/sqlite</span></h1>
  
This directory contains the <code>users.db.conf</code>, <code>reporting_db.conf</code> and <code>bypass_db.conf</code> files. These are configuration files for Sqlite database in SafeSquid.
+
<p>This directory contains the <code>users.db.conf</code>, <code>reporting_db.conf</code> and <code>bypass_db.conf</code> files. These are configuration files for Sqlite database in SafeSquid.</p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/usr/local/safesquid/ui_root/</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/usr/local/safesquid/ui_root/</span></h1>
  
This directory contains further sub-directories which contains files used for rendering SafeSquid Web User Interface.
+
<p>This directory contains further sub-directories which contains files used for rendering SafeSquid Web User Interface.</p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/usr/local/safesquid/ui_root/cgi-bin</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/usr/local/safesquid/ui_root/cgi-bin</span></h1>
  
This directory contains the additional scripts which are used for execution of well defined functionality of SafeSquid. Some of the functionalities are generation of support tarball, generation of performance plot, Kerberos setup etc.
+
<p>This directory contains the additional scripts which are used for execution of well defined functionality of SafeSquid. Some of the functionalities are generation of support tarball, generation of performance plot, Kerberos setup etc.</p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/usr/local/safesquid/ui_root/css</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/usr/local/safesquid/ui_root/css</span></h1>
  
This directory contains all the CSS (Cascading Style Sheets) files. These files helps to describe how HTML elements of SafeSquid to be displayed on screen. Modification in these files without proper knowledge may disarrange the SafeSquid interface display.
+
<p>This directory contains all the CSS (Cascading Style Sheets) files. These files helps to describe how HTML elements of SafeSquid to be displayed on screen. Modification in these files without proper knowledge may disarrange the SafeSquid interface display.</p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/usr/local/safesquid/ui_root/fonts</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/usr/local/safesquid/ui_root/fonts</span></h1>
  
This directory contains web font files used in SafeSquid. You will get&nbsp; <code>glyphicons-halflings-regular.*</code>,&nbsp;<code>fontawesome-webfont.*</code> and&nbsp;<code>hinted-SegoeUI.*</code> files. Font Awesome is a font and icon toolkit based on CSS and LESS. Segoe is a typeface, or family of fonts, that is best known for its use by Microsoft. <span style="color:rgb(36, 39, 41)">Glyph</span><span style="color:rgb(36, 39, 41)">is used for variety of designs of a certain character.</span> You can add more web font files as per your need.
+
<p>This directory contains web font files used in SafeSquid. You will get&nbsp; <code>glyphicons-halflings-regular.*</code>,&nbsp;<code>fontawesome-webfont.*</code> and&nbsp;<code>hinted-SegoeUI.*</code> files. Font Awesome is a font and icon toolkit based on CSS and LESS. Segoe is a typeface, or family of fonts, that is best known for its use by Microsoft. <span style="color:rgb(36, 39, 41)">Glyph</span><span style="color:rgb(36, 39, 41)">is used for variety of designs of a certain character.</span> You can add more web font files as per your need.</p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/usr/local/safesquid/ui_root/img</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/usr/local/safesquid/ui_root/img</span></h1>
  
This directory contains the image files which are shown on SafeSquid interface. Some of these files are PNG and GIF format used to show simple animations or small icons on the interface. You can add your preferred image files in this folder to modify the interface display. Modify CSS/JavaScript files and edit your preferred image file names to modify SafeSquid interface display.
+
<p>This directory contains the image files which are shown on SafeSquid interface. Some of these files are PNG and GIF format used to show simple animations or small icons on the interface. You can add your preferred image files in this folder to modify the interface display. Modify CSS/JavaScript files and edit your preferred image file names to modify SafeSquid interface display.</p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/usr/local/safesquid/ui_root/js</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/usr/local/safesquid/ui_root/js</span></h1>
  
This directory contains all the javascript files used in SafeSquid to perform various functionality.
+
<p>This directory contains all the javascript files used in SafeSquid to perform various functionality.</p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/usr/local/safesquid/ui_root/templates</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/usr/local/safesquid/ui_root/templates</span></h1>
  
This directory contains <code>upgrade.sh</code>, <code>success.html</code>, <code>landing.html</code> and <code>block_bypass.html</code> files. SafeSquid uses <code>upgrade.sh</code> file to check and upgrade the latest package. Other HTML files are templates to display on the browser. Some of these templates are used for displaying successful logging,&nbsp; captive portal and when access is denied/ blocked. You can add your own custom template files here and create the entry in the templates section.
+
<p>This directory contains <code>upgrade.sh</code>, <code>success.html</code>, <code>landing.html</code> and <code>block_bypass.html</code> files. SafeSquid uses <code>upgrade.sh</code> file to check and upgrade the latest package. Other HTML files are templates to display on the browser. Some of these templates are used for displaying successful logging,&nbsp; captive portal and when access is denied/ blocked. You can add your own custom template files here and create the entry in the templates section.</p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/var/cache/safesquid</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/var/cache/safesquid</span></h1>
  
This is the default directory to store all caching objects. You can configure SafeSquid'’s cache and its storage area, for optimum performance. SafeSquid will create cache store for all cacheable objects if cache section is enabled.
+
<p>This is the default directory to store all caching objects. You can configure SafeSquid&#39;&rsquo;s cache and its storage area, for optimum performance. SafeSquid will create cache store for all cacheable objects if cache section is enabled.</p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/var/db/safesquid/report</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/var/db/safesquid/report</span></h1>
  
This folder contains the Sqlite database files of SafeSquid. SafeSquid retrieves the user information from the database to display on reports tab. You will get files like main.db, main.db-shm, main.db-wal, safesquid2.db, safesquid2.db-shm, safesquid2.db-wal and YYYYMMDDhhmmss-main.db in this folder. Where main.db and safesquid2.db are database files. A new time-stamped file YYYYMMDDhhmmss-main.db is created after every 1000 transactions. Files with extension DB-WAL are SQLite write-ahead log files. Database modifications are written to the DB-WAL file before being committed to the database. Files with extension DB-SHM are SQLite shared memory storage files.
+
<p>This folder contains the Sqlite database files of SafeSquid. SafeSquid retrieves the user information from the database to display on reports tab. You will get files like main.db, main.db-shm, main.db-wal, safesquid2.db, safesquid2.db-shm, safesquid2.db-wal and YYYYMMDDhhmmss-main.db in this folder. Where main.db and safesquid2.db are database files. A new time-stamped file YYYYMMDDhhmmss-main.db is created after every 1000 transactions. Files with extension DB-WAL are SQLite write-ahead log files. Database modifications are written to the DB-WAL file before being committed to the database. Files with extension DB-SHM are SQLite shared memory storage files.</p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/var/db/safesquid/ssl</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/var/db/safesquid/ssl</span></h1>
  
<span style="font-family:lucida sans unicode,lucida grande,sans-serif">Contains the temporary SSL certificates created by safesquid for webservers, while doing https inspection.</span>
+
<p><span style="font-family:lucida sans unicode,lucida grande,sans-serif">Contains the temporary SSL certificates created by safesquid for webservers, while doing https inspection.</span></p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/var/db/safesquid/users</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/var/db/safesquid/users</span></h1>
  
&nbsp;
+
<p>&nbsp;</p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/var/lib/safesquid/application_signatures</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/var/lib/safesquid/application_signatures</span></h1>
  
<span style="font-family:lucida sans unicode,lucida grande,sans-serif">This directory stores the&nbsp;<code>applications3</code> file in <code>updates</code> folder which is an application signature file. SafeSquid service checks and downloads the latest application signature file from cloud on an hourly basis.</span><br/> &nbsp;
+
<p><span style="font-family:lucida sans unicode,lucida grande,sans-serif">This directory stores the&nbsp;<code>applications3</code> file in <code>updates</code> folder which is an application signature file. SafeSquid service checks and downloads the latest application signature file from cloud on an hourly basis.</span><br />
 +
&nbsp;</p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/var/lib/safesquid/category</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/var/lib/safesquid/category</span></h1>
  
<span style="font-family:lucida sans unicode,lucida grande,sans-serif">This folder contains <code>category.db</code> file which is&nbsp;the local database for custom categories.</span>
+
<p><span style="font-family:lucida sans unicode,lucida grande,sans-serif">This folder contains <code>category.db</code> file which is&nbsp;the local database for custom categories.</span></p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/var/lib/safesquid/content_signatures</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/var/lib/safesquid/content_signatures</span></h1>
  
<span style="font-family:lucida sans unicode,lucida grande,sans-serif">This directory contains <code>magic.mgc</code> and <code>libmagic.so</code> files which are shared library files. This directory also has <code>updates</code> folder to store&nbsp;<code>content4</code> file which is an content signature file. SafeSquid service checks and downloads the latest content signature file from cloud on an hourly basis.</span>
+
<p><span style="font-family:lucida sans unicode,lucida grande,sans-serif">This directory contains <code>magic.mgc</code> and <code>libmagic.so</code> files which are shared library files. This directory also has <code>updates</code> folder to store&nbsp;<code>content4</code> file which is an content signature file. SafeSquid service checks and downloads the latest content signature file from cloud on an hourly basis.</span></p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/var/lib/safesquid/imgfilter</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/var/lib/safesquid/imgfilter</span></h1>
  
<span style="font-family:lucida sans unicode,lucida grande,sans-serif">This folder contains libIAImageReaderShared.so and libIAEngineShared.so files which are dependency/library files. These are Engine and Reader library files which are loaded after Image Analyzer module is initialized. This folder also contains imgfilter.tune file to fine tune the filter by defining the threshold score limit.&nbsp;SafeSquid service checks and downloads the latest library&nbsp;files from cloud on an hourly basis.</span>
+
<p><span style="font-family:lucida sans unicode,lucida grande,sans-serif">This folder contains libIAImageReaderShared.so and libIAEngineShared.so files which are dependency/library files. These are Engine and Reader library files which are loaded after Image Analyzer module is initialized. This folder also contains imgfilter.tune file to fine tune the filter by defining the threshold score limit.&nbsp;SafeSquid service checks and downloads the latest library&nbsp;files from cloud on an hourly basis.</span></p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/var/lib/safesquid/sscore2</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/var/lib/safesquid/sscore2</span></h1>
  
<span style="font-family:lucida sans unicode,lucida grande,sans-serif">This folder contains essential library files for proper execution of SScore module. All the SScore signatures are stored into <code>parental_sig</code> subfolder. SafeSquid service checks and downloads the latest <code>libbdupdatesdk.so</code> file and stores into <code>update</code> subfolder on an hourly basis.</span>
+
<p><span style="font-family:lucida sans unicode,lucida grande,sans-serif">This folder contains essential library files for proper execution of SScore module. All the SScore signatures are stored into <code>parental_sig</code> subfolder. SafeSquid service checks and downloads the latest <code>libbdupdatesdk.so</code> file and stores into <code>update</code> subfolder on an hourly basis.</span></p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/var/lib/safesquid/svscan</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/var/lib/safesquid/svscan</span></h1>
  
<span style="font-family:lucida sans unicode,lucida grande,sans-serif">This folder contains essential library files for proper execution of SvScan module. All the SvScan anti-Malware signature database are stored into <code>Plugins</code> subfolder. SafeSquid service checks and downloads the latest <code>libbdupdatesdk.so</code> file and stores into <code>update</code> subfolder on an hourly basis.</span>
+
<p><span style="font-family:lucida sans unicode,lucida grande,sans-serif">This folder contains essential library files for proper execution of SvScan module. All the SvScan anti-Malware signature database are stored into <code>Plugins</code> subfolder. SafeSquid service checks and downloads the latest <code>libbdupdatesdk.so</code> file and stores into <code>update</code> subfolder on an hourly basis.</span></p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/var/log/safesquid/config</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/var/log/safesquid/config</span></h1>
  
<span style="font-family:lucida sans unicode,lucida grande,sans-serif">This folder contains the <code>config.log</code> file which stores the details about modification in the SafeSquid configuration via SafeSquid UI. This log file will help the administrator to trace any rule is added/modified/deleted in SafeSquid configuration. The administrator can easily roll back the faulty changes from SafeSquid configuration.&nbsp;&nbsp;Log rotation will change <code>config.log</code> into <code>XXXX-config.log</code> file,&nbsp;where XXXX is the time of log rotation.<br/> Below is the heading/legend for Config Log file-</span>
+
<p><span style="font-family:lucida sans unicode,lucida grande,sans-serif">This folder contains the <code>config.log</code> file which stores the details about modification in the SafeSquid configuration via SafeSquid UI. This log file will help the administrator to trace any rule is added/modified/deleted in SafeSquid configuration. The administrator can easily roll back the faulty changes from SafeSquid configuration.&nbsp;&nbsp;Log rotation will change <code>config.log</code> into <code>XXXX-config.log</code> file,&nbsp;where XXXX is the time of log rotation.<br />
 +
Below is the heading/legend for Config Log file-</span></p>
  
<span style="font-family:lucida sans unicode,lucida grande,sans-serif">"ACCESS_TIME" &nbsp; "SAFESQUID_INTERFACE" &nbsp; "USERNAME@IP" &nbsp; "PAGE" &nbsp;"SECTION" &nbsp; &nbsp; &nbsp; "ACTION" &nbsp; &nbsp; &nbsp; &nbsp;"HTTP_METHOD" &nbsp; "URL" &nbsp; "REFERER" &nbsp; &nbsp; &nbsp; "ARGUMENTS" &nbsp; &nbsp; "CONFIG_FILE" &nbsp; "REASON"</span>
+
<p><span style="font-family:lucida sans unicode,lucida grande,sans-serif">&quot;ACCESS_TIME&quot; &nbsp; &quot;SAFESQUID_INTERFACE&quot; &nbsp; &quot;USERNAME@IP&quot; &nbsp; &quot;PAGE&quot; &nbsp;&quot;SECTION&quot; &nbsp; &nbsp; &nbsp; &quot;ACTION&quot; &nbsp; &nbsp; &nbsp; &nbsp;&quot;HTTP_METHOD&quot; &nbsp; &quot;URL&quot; &nbsp; &quot;REFERER&quot; &nbsp; &nbsp; &nbsp; &quot;ARGUMENTS&quot; &nbsp; &nbsp; &quot;CONFIG_FILE&quot; &nbsp; &quot;REASON&quot;</span></p>
  
<span style="font-family:lucida sans unicode,lucida grande,sans-serif">'''Log Rotation''':&nbsp;Log Rotation is the process in SafeSquid to control large log files. Some Log Analyzers and Text Editor cannot process bigger log files (2GB earlier). To handle this SafeSquid sets the parameter <LOG_SIZE_LIMIT> for the maximum file size in bytes for a log file. Exceeding the maximum file size SafeSquid will automatically truncate and compress the log file, further this file will be renamed and saved on the disk.</span>
+
<p><span style="font-family:lucida sans unicode,lucida grande,sans-serif"><strong>Log Rotation</strong>:&nbsp;Log Rotation is the process in SafeSquid to control large log files. Some Log Analyzers and Text Editor cannot process bigger log files (2GB earlier). To handle this SafeSquid sets the parameter &lt;LOG_SIZE_LIMIT&gt; for the maximum file size in bytes for a log file. Exceeding the maximum file size SafeSquid will automatically truncate and compress the log file, further this file will be renamed and saved on the disk.</span></p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/var/log/safesquid/extended</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/var/log/safesquid/extended</span></h1>
  
<span style="font-family:lucida sans unicode,lucida grande,sans-serif">This folder contains the <code>extended.log</code> file detailing the users, applications and security breaches. This log file will help the administrator to trace each request and response processed by the SafeSquid. Log rotation will change <code>extended.log</code> into <code>XXXX-extended.log</code> file,&nbsp;where XXXX is the time of log rotation.<br/> Below is the heading/legend for Extended Log file-</span>
+
<p><span style="font-family:lucida sans unicode,lucida grande,sans-serif">This folder contains the <code>extended.log</code> file detailing the users, applications and security breaches. This log file will help the administrator to trace each request and response processed by the SafeSquid. Log rotation will change <code>extended.log</code> into <code>XXXX-extended.log</code> file,&nbsp;where XXXX is the time of log rotation.<br />
 +
Below is the heading/legend for Extended Log file-</span></p>
  
<span style="font-family:lucida sans unicode,lucida grande,sans-serif">"record_id" &nbsp; &nbsp; "client_id" &nbsp; &nbsp; "request_id" &nbsp; &nbsp;"date_time" &nbsp; &nbsp; "elapsed_time" &nbsp;"status" &nbsp; &nbsp; &nbsp; &nbsp;"size" &nbsp;"upload" &nbsp; &nbsp; &nbsp; &nbsp;"download" &nbsp; &nbsp; &nbsp;"bypassed" &nbsp; &nbsp; &nbsp;"client_ip" &nbsp; &nbsp; "username" &nbsp; &nbsp; &nbsp;"method" &nbsp; &nbsp; &nbsp; &nbsp;"url" &nbsp; "http_referer" &nbsp;"useragent" &nbsp; &nbsp; "mime" &nbsp;"filter_name" &nbsp; "filtering_reason" &nbsp; &nbsp; &nbsp;"interface" &nbsp; &nbsp; "cachecode" &nbsp; &nbsp; "peercode" &nbsp; &nbsp; &nbsp;"peer" &nbsp;"request_host" &nbsp;"request_tld" &nbsp; "referer_host" &nbsp;"referer_tld" &nbsp; "range" "time_profiles" "user_groups" &nbsp; "request_profiles" &nbsp; &nbsp; &nbsp;"application_signatures" &nbsp; &nbsp; &nbsp; &nbsp;"categories" &nbsp; &nbsp;"response_profiles" &nbsp; &nbsp; "upload_content_types" &nbsp;"download_content_types" &nbsp; &nbsp; &nbsp; &nbsp;"profiles"</span>
+
<p><span style="font-family:lucida sans unicode,lucida grande,sans-serif">&quot;record_id&quot; &nbsp; &nbsp; &quot;client_id&quot; &nbsp; &nbsp; &quot;request_id&quot; &nbsp; &nbsp;&quot;date_time&quot; &nbsp; &nbsp; &quot;elapsed_time&quot; &nbsp;&quot;status&quot; &nbsp; &nbsp; &nbsp; &nbsp;&quot;size&quot; &nbsp;&quot;upload&quot; &nbsp; &nbsp; &nbsp; &nbsp;&quot;download&quot; &nbsp; &nbsp; &nbsp;&quot;bypassed&quot; &nbsp; &nbsp; &nbsp;&quot;client_ip&quot; &nbsp; &nbsp; &quot;username&quot; &nbsp; &nbsp; &nbsp;&quot;method&quot; &nbsp; &nbsp; &nbsp; &nbsp;&quot;url&quot; &nbsp; &quot;http_referer&quot; &nbsp;&quot;useragent&quot; &nbsp; &nbsp; &quot;mime&quot; &nbsp;&quot;filter_name&quot; &nbsp; &quot;filtering_reason&quot; &nbsp; &nbsp; &nbsp;&quot;interface&quot; &nbsp; &nbsp; &quot;cachecode&quot; &nbsp; &nbsp; &quot;peercode&quot; &nbsp; &nbsp; &nbsp;&quot;peer&quot; &nbsp;&quot;request_host&quot; &nbsp;&quot;request_tld&quot; &nbsp; &quot;referer_host&quot; &nbsp;&quot;referer_tld&quot; &nbsp; &quot;range&quot; &quot;time_profiles&quot; &quot;user_groups&quot; &nbsp; &quot;request_profiles&quot; &nbsp; &nbsp; &nbsp;&quot;application_signatures&quot; &nbsp; &nbsp; &nbsp; &nbsp;&quot;categories&quot; &nbsp; &nbsp;&quot;response_profiles&quot; &nbsp; &nbsp; &quot;upload_content_types&quot; &nbsp;&quot;download_content_types&quot; &nbsp; &nbsp; &nbsp; &nbsp;&quot;profiles&quot;</span></p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/var/log/safesquid/native</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/var/log/safesquid/native</span></h1>
  
<span style="font-family:lucida sans unicode,lucida grande,sans-serif">This folder contains the native.log file detailing the various functional aspects like REQUESTS, SECURITY, REDIRECT etc. that are affected by the various features and their configuration. This file stored all data related to every request and response processed by the SafeSquid which will be helpful to administrator for debugging purpose. You can control the verbosity of the Native Log by specifying LOGLEVEL. Log rotation will change native.log into XXXX-native.log file, where XXXX is the time of log rotation.</span><br/> <span style="font-family:lucida sans unicode,lucida grande,sans-serif">'''LOG_LEVEL: '''Set to 16777216 (for only warnings) 33554432 (only errors) 67108864 (only profiles) 134217728 (only debug) 268435455 (all activities and debug information). Default is 33554435(errors requests network).</span>
+
<p><span style="font-family:lucida sans unicode,lucida grande,sans-serif">This folder contains the native.log file detailing the various functional aspects like REQUESTS, SECURITY, REDIRECT etc. that are affected by the various features and their configuration. This file stored all data related to every request and response processed by the SafeSquid which will be helpful to administrator for debugging purpose. You can control the verbosity of the Native Log by specifying LOGLEVEL. Log rotation will change native.log into XXXX-native.log file, where XXXX is the time of log rotation.</span><br />
 +
<span style="font-family:lucida sans unicode,lucida grande,sans-serif"><strong>LOG_LEVEL: </strong>Set to 16777216 (for only warnings) 33554432 (only errors) 67108864 (only profiles) 134217728 (only debug) 268435455 (all activities and debug information). Default is 33554435(errors requests network).</span></p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/var/log/safesquid/performance</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/var/log/safesquid/performance</span></h1>
  
<span style="font-family:lucida sans unicode,lucida grande,sans-serif">This folder contains the <code>performance.log</code> file which provides performance metrics to identify any outage due to resource shortfall, or failure in Internet Connectivity, or surge in web-traffic, etc. This log file will help the administrator to analyze the performance of SafeSquid. SafeSquid performance log has been extended to make it easier for analysis with third-party software such as GNU Plot that analyses records on a progressive per line basis. Log rotation will change <code>performance.log</code> into <code>XXXX-performance.log</code> file, where XXXX is the time of log rotation.<br/> Below is the heading/legend for Performance Log file-</span>
+
<p><span style="font-family:lucida sans unicode,lucida grande,sans-serif">This folder contains the <code>performance.log</code> file which provides performance metrics to identify any outage due to resource shortfall, or failure in Internet Connectivity, or surge in web-traffic, etc. This log file will help the administrator to analyze the performance of SafeSquid. SafeSquid performance log has been extended to make it easier for analysis with third-party software such as GNU Plot that analyses records on a progressive per line basis. Log rotation will change <code>performance.log</code> into <code>XXXX-performance.log</code> file, where XXXX is the time of log rotation.<br />
 +
Below is the heading/legend for Performance Log file-</span></p>
  
<span style="font-family:lucida sans unicode,lucida grande,sans-serif">Time Stamp (YYYYMMDDhhmmss) , Elapsed Time , Client Connections Handled , Client Connections Closed , Client Transactions Handled , Client Connections in Pool , Spare Client Threads , Client Threads in Use , Client Threads in Waiting , Threads Starting up , Threads Reserved for Prefetching , Threading Errors , Outbound Connections created , Outbound Connections Failed , Outbound Connection Pool Reused , Outbound Connections in Pool , Bytes in (KBytes) , Bytes Out (KBytes) , Caching Objects Created in Memory , Caching Objects Removed from Memory , DNS Queries Reused , New DNS Queries , DNS Query failures , Total System Memory (KBytes) , Free System Memory (KBytes) , SafeSquid Virtual Memory (KBytes) , SafeSquid Resident Memory (KBytes) , SafeSquid Shared Memory (KBytes) , SafeSquid Code Memory (KBytes) , SafeSquid Data Memory (KBytes) , SafeSquid Library Memory (KBytes) , Connections Handled Delta , Connections Closed Delta , Transactions Handled Delta , Client Pool Delta , Spare Threads Delta , Active Threads Delta , Threads Waiting Delta , Threads Starting up Delta , Threads Prefetching Delta , Threading Errors Delta , Outbound Connections created Delta , Outbound Connections Failed Delta , Outbound Connection Pool Reused Delta , Outbound Connections in Pool Delta , Bytes in (KBytes) Delta , Bytes Out (KBytes) Delta , Caching Objects Created in Memory Delta , Caching Objects Removed from Memory Delta , DNS Queries Reused Delta , New DNS Queries Delta , DNS Query failures Delta, load avg.(1 min), load avg.(5 min), load avg.(15 min), Running Processes, Waiting Processes, User Time, System Time, Total (user + system) Time , User Time Delta , System Time Delta , Total Time Delta</span>
+
<p><span style="font-family:lucida sans unicode,lucida grande,sans-serif">Time Stamp (YYYYMMDDhhmmss) , Elapsed Time , Client Connections Handled , Client Connections Closed , Client Transactions Handled , Client Connections in Pool , Spare Client Threads , Client Threads in Use , Client Threads in Waiting , Threads Starting up , Threads Reserved for Prefetching , Threading Errors , Outbound Connections created , Outbound Connections Failed , Outbound Connection Pool Reused , Outbound Connections in Pool , Bytes in (KBytes) , Bytes Out (KBytes) , Caching Objects Created in Memory , Caching Objects Removed from Memory , DNS Queries Reused , New DNS Queries , DNS Query failures , Total System Memory (KBytes) , Free System Memory (KBytes) , SafeSquid Virtual Memory (KBytes) , SafeSquid Resident Memory (KBytes) , SafeSquid Shared Memory (KBytes) , SafeSquid Code Memory (KBytes) , SafeSquid Data Memory (KBytes) , SafeSquid Library Memory (KBytes) , Connections Handled Delta , Connections Closed Delta , Transactions Handled Delta , Client Pool Delta , Spare Threads Delta , Active Threads Delta , Threads Waiting Delta , Threads Starting up Delta , Threads Prefetching Delta , Threading Errors Delta , Outbound Connections created Delta , Outbound Connections Failed Delta , Outbound Connection Pool Reused Delta , Outbound Connections in Pool Delta , Bytes in (KBytes) Delta , Bytes Out (KBytes) Delta , Caching Objects Created in Memory Delta , Caching Objects Removed from Memory Delta , DNS Queries Reused Delta , New DNS Queries Delta , DNS Query failures Delta, load avg.(1 min), load avg.(5 min), load avg.(15 min), Running Processes, Waiting Processes, User Time, System Time, Total (user + system) Time , User Time Delta , System Time Delta , Total Time Delta</span></p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/var/log/safesquid/privacy</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/var/log/safesquid/privacy</span></h1>
  
&nbsp;
+
<p>&nbsp;</p>
  
= <span style="font-family:lucida sans unicode,lucida grande,sans-serif">/var/run/safesquid</span> =
+
<h1><span style="font-family:lucida sans unicode,lucida grande,sans-serif">/var/run/safesquid</span></h1>
<span style="font-family:lucida sans unicode,lucida grande,sans-serif">Run-time variable data. This directory contains system information data describing the system since it was booted. Here you will see SafeSquid pid file if SafeSquid is running. For every restart the file gets updated with new process id.</span></div>  
+
<span style="font-family:lucida sans unicode,lucida grande,sans-serif">This folder contains the <code>safesquid.pid</code> file which stores process ID of SafeSquid. For every restart of SafeSquid this file is modified with new process ID.&nbsp;</span></div>
Application Eco-system
+
 
 +
<p>Application Eco-system</p>

Latest revision as of 16:59, 23 July 2018

Contents

/etc/init.d/safesquid

Directory/etc/init.d  contains scripts for controlling(initialization and termination) the system and various services. These scripts can be invoked directly.
SafeSquid script is also stored in  /etc/init.d  directory which provide the user to control with various commands  {start|stop|restart|status|foreground}.
SafeSquid will start automatically when system gets rebooted. It provide the user to control over the SafeSquid to start, stop or restart the service. And also it sets all required dependencies to SafeSquid start like setting up all environmental variables.
SafeSquid uses /etc/init.d/safesquid to startstop, restart SafeSquid Service more frequently.

/etc/init.d/tcp_tune.sh

SafeSquid stores tcp_tune.sh script in the directory /etc/init.d/ for TCP Tunning. This script will optimize/set some of the values of the TCP parameters like
-maximum number of packets to put in the queue before delivery to the upper layer.
-the default and maximum write (receiving) and read (sending) buffer size allocated to any type of connection.
-the maximum number of pending requests to put in queue before processing one connection.
-the port ranges available for a new connection.
-whether to reset new connections if the system is currently overflowed with new connection attempts that the daemon(s) can not handle.
-how long to keep sockets in wait state after connections are closed.
-Keep-alive parameters for overall stability and system resource utilization.
-maximum number of remembered connection requests, which have not received an acknowledgment from connecting client.
-TCP receive memory and transmit buffer size.
-whether to allow to reuse TIME-WAIT sockets for new connections.
SafeSquid stores the modified TCP parameters into /tmp/sysctl_.conf file for debugging purpose.

/etc/logrotate.d/safesquid

Logs are useful when you want to track usage or troubleshoot an application. As more information gets logged, however, log files use more disk space. Running out of disk space because of a large log file is a problem. Logrotate provides an ability for a system administrator to systematically rotate and archive any log files produced by the system and thus reducing an operating system's disk space requirement. By default, logrotate is invoked once a day using a cron scheduler from location. The SafeSquid logrotate script  is responsible to rotate all logs related to the SafeSquid if any log file having size more than 1GB. And convert them into gzip format for every 1GB logs generated by SafeSquid.

/etc/monit/conf.d/safesquid.monit

<a href="Monit">Monit</a> is a great utility that monitors your daemons. If a daemon fails, Monit will start the daemon it will automatically restart the process. We are using a generic configuration file for monit to monitor the SafeSquid service. So we created the configuration file SafeSquid.monit and place that in conf.d folder. So that no need to change the original configuration file. This will monitor SafeSquid service. When SafeSquid stops for any reason it will check and it will start the SafeSquid without user interaction.

/etc/pam.d/safesquid

This file contains the PAM configuration file for SafeSquid. PAM (Pluggable Authentication Modules) is a framework that assists applications in performing "authentication-related activities". The core pieces of PAM are a library (libpam) and a collection of PAM modules, which are dynamically linked libraries(.so) files. Each module performs one specific task, and a "PAM-aware" application typically uses a stack of several modules to get the job done. PAM can be used to authenticate users, control logins, allocate resources to users, or update login credentials.
  SafeSquid uses pam_unix.so and pam_permit.so files.
pam_unix : This is the standard Unix authentication module. It performs authentication against hashed passwords stored in /etc/shadow file and /etc/passwd file.
pam_permit : This module always permit access and returns success. It does nothing else.  

/etc/sysctl.conf

This file contains the system tuning parameters, to increase the performance. SafeSquid modifies and save this file for setting system variables. This file is preload /configuration file which is used to modify kernel parameters at runtime. These parameters are listed under /proc/sys directory.
SafeSquid optimizes various Linux networking and system settings such as:
- Improves memory-intensive workloads.
- Limits the number of discrete mapped memory areas.
- Maximum number of packets to put in the queue before delivery to the upper layer.
- Increase the maximum connections.
- Define the port range available for a new connection.
- The maximum amount of option memory buffers.
- The default and maximum amount for the receive and send socket memory.
- Minimum, average and maximum size of the TCP read and send buffers.

/opt/safesquid/bin/modules

SafeSquid has a library of add-on modules that can be easily added or removed, to enhance or modify existing features. SafeSquid modules are independently developed and compiled unit from a source file. Each module encapsulates share object(.so) and xml files to implement a particular functionality. SafeSquid loads all add-on modules from the directory /opt/safesquid/bin/modules when the process is started.

/opt/safesquid/bin/modules/dlp

SafeSquid has DLP feature as an add-on module. This folder contains shared object (.so) and xml files of the DLP module. Data loss prevention(DLP) feature detects potential data breaches/data ex-filtration transmissions and prevents end users to send sensitive or critical information outside the corporate network. For example, if an employee tried to upload a corporate file via email, then file will not be uploaded and template will be displayed.

/opt/safesquid/bin/modules/elevated

This folder contains shared object (.so) and xml files of the Elevated Privacy module. You can use Elevated Privacy to protect privacy activity across different websites. Otherwise, third-party cookies will be tracking your activities. Example: When you are surfing the internet by logging into any of your accounts like Hotmail, Yahoo, Gmail, Online Banking… etc. Your activities will be tracked by third party and referral domains. Set 'Privacy Level' as per your requirement to block Third-Party Cookies, hide the HTTP & HTTPS referer and User Agents.

/opt/safesquid/bin/modules/icap

This folder contains shared object (.so) and xml files of the ICAP module. The ICAP feature enables the proxy server to use an ICAP server to perform request modification, request satisfaction, or response modification to any request or response.
When an ICAP server is installed with a caching system, every transaction is piped through the ICAP server, allowing the server to modify or redirect Web requests or responses.
When an ICAP server is installed in an FTP system, every transaction is piped through the ICAP server, allowing virus and content filtering software to operate on the content.

/opt/safesquid/bin/modules/imgfilter

SafeSquid has Image Analyzer(also known as Imgfilter) feature as an add-on module. This folder contains shared object (.so) and xml files of the Image Analyzer module.
This module allows you to block pornographic images from websites and webmails, by analyzing the graphical content of an image, in real time, and block all suspicious images, so that a blank or checkered box, is displayed in place of the blocked image. Although it is only about 80%-90% accurate (configurable), it acts as a good deterrent.

/opt/safesquid/bin/modules/imgfilter/imgfilter

This is a subfolder in the Image Analyzer(Imgfilter) module. This folder contains libIAImageReaderShared.so.* and libIAEngineShared.so.* files which are dependency/ library files. These are Engine and Reader library files which should be loaded after Image Analyzer module is initialized. This folder also contains imgfilter.tune file to fine tune the filter by defining the threshold score limit.

/opt/safesquid/bin/modules/rewrite

SafeSquid has content modifier(Content Re-Write) feature as an add-on module. This folder contains shared object (.so) and xml files of the content modifier module. Content modifier is a very powerful feature that must be used with extreme care. This feature allows you to use regular expressions to modify the contents of web pages, files, the client header, and server header in real time. It can be used to remove content like AcitveX, JavaScript, cookies, etc., from non-trusted websites, before serving the page to users.

/opt/safesquid/bin/modules/sscore

This folder contains shared object (.so) and xml files of the SScore module. SScore allows you to categorize the websites, depending upon the potential nature of the content served by the web-site. SScore queries SafeSquid's Content Categorisation Service (CCS), to determine if a web-site belongs to one or more categories.

/opt/safesquid/bin/modules/svscan

This folder contains shared object (.so) and xml files of the SvScan module. SvScan is a high-speed in-memory virus scanner built in module that protects the users against malware. SvScan uses an anti-Malware signature database which is constantly updated to ensure application of the latest anti-malware definitions. SvScan uses proactive protection, such as: generic detection routines, heuristic engine, and a behavior based engine to proactively prevent unknown or previously unseen malware.

/opt/safesquid/bin/modules/wccp

This folder contains shared object (.so) and xml files of the WCCP module.
Web Cache Communication Protocol (WCCP) is a Cisco-developed content-routing protocol that provides a mechanism to redirect traffic flows in real-time. It has built-in load balancing, scaling, fault tolerance, and service-assurance (failsafe) mechanisms. SafeSquid WCCP module is configured to interact with WCCP enabled routers. WCCP enabled routers are used as gateway for End users. All the clients traffic will be transparently redirected to SafeSquid proxy by router.

/opt/safesquid/bin/safesquid

This is the SafeSquid total configuration file. It is soft linked with running version of SafeSquid. If you delete this file SafeSquid will not work.

/opt/safesquid/bin/sections

This folder contains the necessary XMLs of SafeSquid. You can find XML of every feature in this folder except add-on modules. These XMLs are used for rendering SafeSquid User Interface.

/opt/safesquid/default

This folder contains default startup.ini and setup.ini files. These files should not be altered.
SafeSquid loads default configuration/startup parameters from startup.ini file. You can modify the startup parameters values from SafeSquid User interface. Modified values of startup parameters are stored in /opt/safesquid/startup.ini file.
SafeSquid loads default setup parameters from setup.ini file. To modify setup parameters you should take copy of setup.ini file and store it as /opt/safesquid/setup.ini before editing it manually.

/tmp/safesquid

This folder contains the temporary files created by SafeSquid while process is running or upgrading to the latest version.

/usr/local/safesquid

This directory contains security, ui_root, sqlite and bin sub-directories. These sub-directories contains the various files related to
-activation of the product
-User Interface rendering
-Sqlite Database
-SSL certificates etc.

/usr/local/safesquid/bin

This directory contains the scripts which can be executed/run with external applications section. User created scripts should be stored in /usr/local/safesquid/bin directory for execution.

/usr/local/safesquid/security

This directory contains policies, ssl and dns sub-directories. This directory contains activation_key.updates.backup, activation_key.updates and activation_key files which are product activation related files. These files should never be deleted otherwise SafeSquid service will be stopped.

/usr/local/safesquid/security/policies

This directory contains the default.config.xml which is the default configuration file of SafeSquid. You can modify configuration, i.e. Any of the section or policies from SafeSquid interface. Whenever a user modifies the configuration 1st time and do save config, two files will be created. One of the file created is config.xml which will be now latest configuration file. Other file created will be config_XXXX@YYYY_ZZZZ.xml which will be the last backup file of your saved configuration. Here XXXX is Username who modified/Accessed the configuration, YYYY is IP Address from which file is modified and ZZZZ is the Time at which file modified. Every modification of configuration afterwards will create one new config_XXXX@YYYY_ZZZZ.xml file. All these files can be used for restoring last known good configuration of the user.

/usr/local/safesquid/security/ssl/

This folder contains the SSL ROOT certificates and and trusted bundle file. It also contains the subca used in openvpn configuration.

/usr/local/safesquid/sqlite

This directory contains the users.db.conf, reporting_db.conf and bypass_db.conf files. These are configuration files for Sqlite database in SafeSquid.

/usr/local/safesquid/ui_root/

This directory contains further sub-directories which contains files used for rendering SafeSquid Web User Interface.

/usr/local/safesquid/ui_root/cgi-bin

This directory contains the additional scripts which are used for execution of well defined functionality of SafeSquid. Some of the functionalities are generation of support tarball, generation of performance plot, Kerberos setup etc.

/usr/local/safesquid/ui_root/css

This directory contains all the CSS (Cascading Style Sheets) files. These files helps to describe how HTML elements of SafeSquid to be displayed on screen. Modification in these files without proper knowledge may disarrange the SafeSquid interface display.

/usr/local/safesquid/ui_root/fonts

This directory contains web font files used in SafeSquid. You will get  glyphicons-halflings-regular.*fontawesome-webfont.* and hinted-SegoeUI.* files. Font Awesome is a font and icon toolkit based on CSS and LESS. Segoe is a typeface, or family of fonts, that is best known for its use by Microsoft. Glyphis used for variety of designs of a certain character. You can add more web font files as per your need.

/usr/local/safesquid/ui_root/img

This directory contains the image files which are shown on SafeSquid interface. Some of these files are PNG and GIF format used to show simple animations or small icons on the interface. You can add your preferred image files in this folder to modify the interface display. Modify CSS/JavaScript files and edit your preferred image file names to modify SafeSquid interface display.

/usr/local/safesquid/ui_root/js

This directory contains all the javascript files used in SafeSquid to perform various functionality.

/usr/local/safesquid/ui_root/templates

This directory contains upgrade.sh, success.html, landing.html and block_bypass.html files. SafeSquid uses upgrade.sh file to check and upgrade the latest package. Other HTML files are templates to display on the browser. Some of these templates are used for displaying successful logging,  captive portal and when access is denied/ blocked. You can add your own custom template files here and create the entry in the templates section.

/var/cache/safesquid

This is the default directory to store all caching objects. You can configure SafeSquid'’s cache and its storage area, for optimum performance. SafeSquid will create cache store for all cacheable objects if cache section is enabled.

/var/db/safesquid/report

This folder contains the Sqlite database files of SafeSquid. SafeSquid retrieves the user information from the database to display on reports tab. You will get files like main.db, main.db-shm, main.db-wal, safesquid2.db, safesquid2.db-shm, safesquid2.db-wal and YYYYMMDDhhmmss-main.db in this folder. Where main.db and safesquid2.db are database files. A new time-stamped file YYYYMMDDhhmmss-main.db is created after every 1000 transactions. Files with extension DB-WAL are SQLite write-ahead log files. Database modifications are written to the DB-WAL file before being committed to the database. Files with extension DB-SHM are SQLite shared memory storage files.

/var/db/safesquid/ssl

Contains the temporary SSL certificates created by safesquid for webservers, while doing https inspection.

/var/db/safesquid/users

 

/var/lib/safesquid/application_signatures

This directory stores the applications3 file in updates folder which is an application signature file. SafeSquid service checks and downloads the latest application signature file from cloud on an hourly basis.
 

/var/lib/safesquid/category

This folder contains category.db file which is the local database for custom categories.

/var/lib/safesquid/content_signatures

This directory contains magic.mgc and libmagic.so files which are shared library files. This directory also has updates folder to store content4 file which is an content signature file. SafeSquid service checks and downloads the latest content signature file from cloud on an hourly basis.

/var/lib/safesquid/imgfilter

This folder contains libIAImageReaderShared.so and libIAEngineShared.so files which are dependency/library files. These are Engine and Reader library files which are loaded after Image Analyzer module is initialized. This folder also contains imgfilter.tune file to fine tune the filter by defining the threshold score limit. SafeSquid service checks and downloads the latest library files from cloud on an hourly basis.

/var/lib/safesquid/sscore2

This folder contains essential library files for proper execution of SScore module. All the SScore signatures are stored into parental_sig subfolder. SafeSquid service checks and downloads the latest libbdupdatesdk.so file and stores into update subfolder on an hourly basis.

/var/lib/safesquid/svscan

This folder contains essential library files for proper execution of SvScan module. All the SvScan anti-Malware signature database are stored into Plugins subfolder. SafeSquid service checks and downloads the latest libbdupdatesdk.so file and stores into update subfolder on an hourly basis.

/var/log/safesquid/config

This folder contains the config.log file which stores the details about modification in the SafeSquid configuration via SafeSquid UI. This log file will help the administrator to trace any rule is added/modified/deleted in SafeSquid configuration. The administrator can easily roll back the faulty changes from SafeSquid configuration.  Log rotation will change config.log into XXXX-config.log file, where XXXX is the time of log rotation.
Below is the heading/legend for Config Log file-

"ACCESS_TIME"   "SAFESQUID_INTERFACE"   "USERNAME@IP"   "PAGE"  "SECTION"       "ACTION"        "HTTP_METHOD"   "URL"   "REFERER"       "ARGUMENTS"     "CONFIG_FILE"   "REASON"

Log Rotation: Log Rotation is the process in SafeSquid to control large log files. Some Log Analyzers and Text Editor cannot process bigger log files (2GB earlier). To handle this SafeSquid sets the parameter <LOG_SIZE_LIMIT> for the maximum file size in bytes for a log file. Exceeding the maximum file size SafeSquid will automatically truncate and compress the log file, further this file will be renamed and saved on the disk.

/var/log/safesquid/extended

This folder contains the extended.log file detailing the users, applications and security breaches. This log file will help the administrator to trace each request and response processed by the SafeSquid. Log rotation will change extended.log into XXXX-extended.log file, where XXXX is the time of log rotation.
Below is the heading/legend for Extended Log file-

"record_id"     "client_id"     "request_id"    "date_time"     "elapsed_time"  "status"        "size"  "upload"        "download"      "bypassed"      "client_ip"     "username"      "method"        "url"   "http_referer"  "useragent"     "mime"  "filter_name"   "filtering_reason"      "interface"     "cachecode"     "peercode"      "peer"  "request_host"  "request_tld"   "referer_host"  "referer_tld"   "range" "time_profiles" "user_groups"   "request_profiles"      "application_signatures"        "categories"    "response_profiles"     "upload_content_types"  "download_content_types"        "profiles"

/var/log/safesquid/native

This folder contains the native.log file detailing the various functional aspects like REQUESTS, SECURITY, REDIRECT etc. that are affected by the various features and their configuration. This file stored all data related to every request and response processed by the SafeSquid which will be helpful to administrator for debugging purpose. You can control the verbosity of the Native Log by specifying LOGLEVEL. Log rotation will change native.log into XXXX-native.log file, where XXXX is the time of log rotation.
LOG_LEVEL: Set to 16777216 (for only warnings) 33554432 (only errors) 67108864 (only profiles) 134217728 (only debug) 268435455 (all activities and debug information). Default is 33554435(errors requests network).

/var/log/safesquid/performance

This folder contains the performance.log file which provides performance metrics to identify any outage due to resource shortfall, or failure in Internet Connectivity, or surge in web-traffic, etc. This log file will help the administrator to analyze the performance of SafeSquid. SafeSquid performance log has been extended to make it easier for analysis with third-party software such as GNU Plot that analyses records on a progressive per line basis. Log rotation will change performance.log into XXXX-performance.log file, where XXXX is the time of log rotation.
Below is the heading/legend for Performance Log file-

Time Stamp (YYYYMMDDhhmmss) , Elapsed Time , Client Connections Handled , Client Connections Closed , Client Transactions Handled , Client Connections in Pool , Spare Client Threads , Client Threads in Use , Client Threads in Waiting , Threads Starting up , Threads Reserved for Prefetching , Threading Errors , Outbound Connections created , Outbound Connections Failed , Outbound Connection Pool Reused , Outbound Connections in Pool , Bytes in (KBytes) , Bytes Out (KBytes) , Caching Objects Created in Memory , Caching Objects Removed from Memory , DNS Queries Reused , New DNS Queries , DNS Query failures , Total System Memory (KBytes) , Free System Memory (KBytes) , SafeSquid Virtual Memory (KBytes) , SafeSquid Resident Memory (KBytes) , SafeSquid Shared Memory (KBytes) , SafeSquid Code Memory (KBytes) , SafeSquid Data Memory (KBytes) , SafeSquid Library Memory (KBytes) , Connections Handled Delta , Connections Closed Delta , Transactions Handled Delta , Client Pool Delta , Spare Threads Delta , Active Threads Delta , Threads Waiting Delta , Threads Starting up Delta , Threads Prefetching Delta , Threading Errors Delta , Outbound Connections created Delta , Outbound Connections Failed Delta , Outbound Connection Pool Reused Delta , Outbound Connections in Pool Delta , Bytes in (KBytes) Delta , Bytes Out (KBytes) Delta , Caching Objects Created in Memory Delta , Caching Objects Removed from Memory Delta , DNS Queries Reused Delta , New DNS Queries Delta , DNS Query failures Delta, load avg.(1 min), load avg.(5 min), load avg.(15 min), Running Processes, Waiting Processes, User Time, System Time, Total (user + system) Time , User Time Delta , System Time Delta , Total Time Delta

/var/log/safesquid/privacy

 

/var/run/safesquid

This folder contains the safesquid.pid file which stores process ID of SafeSquid. For every restart of SafeSquid this file is modified with new process ID. 

Application Eco-system