<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>squid Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/squid/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Sat, 07 Dec 2019 02:59:46 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>Disable Firefox Web Browser Disk Cache When Using Squid Proxy Server</title>
		<link>https://www.osradar.com/disable-firefox-web-browser-disk-cache-when-using-squid-proxy-server/</link>
					<comments>https://www.osradar.com/disable-firefox-web-browser-disk-cache-when-using-squid-proxy-server/#respond</comments>
		
		<dc:creator><![CDATA[Chris]]></dc:creator>
		<pubDate>Sat, 07 Dec 2019 02:59:44 +0000</pubDate>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[squid]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=16344</guid>

					<description><![CDATA[<p>I use a Firefox-based web browser which connects to a Squid proxy server. The proxy server is part of a much more complicated secure network. One of the many benefits of using Squid, in addition to the obvious security benefits, is content caching. The cache increases network performance for fetching clients and lowers internet bandwidth. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/disable-firefox-web-browser-disk-cache-when-using-squid-proxy-server/">Disable Firefox Web Browser Disk Cache When Using Squid Proxy Server</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>I use a Firefox-based web browser which connects to a Squid proxy server.  The proxy server is part of a much more complicated secure network.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="576" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/disk-cache-disable_0-1024x576.jpg" alt="" class="wp-image-16350" srcset="https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_0-1024x576.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_0-300x169.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_0-768x432.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_0-696x392.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_0-1068x601.jpg 1068w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_0-747x420.jpg 747w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_0.jpg 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>One of the many benefits of using Squid, in addition to the obvious security benefits, is content caching. The cache increases network performance for fetching clients and lowers internet bandwidth.</p>



<p>Firefox web browser
also includes its own built-in cache. Two of them, actually! It has a
memory cache and a disk cache. You can view the contents of the cache
by entering the following into your navigation bar:</p>



<p><strong><code>about:cache</code></strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="576" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/disk-cache-disable_1-1024x576.png" alt="" class="wp-image-16345" srcset="https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_1-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_1-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_1-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_1-1536x864.png 1536w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_1-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_1-1068x601.png 1068w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_1-747x420.png 747w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_1.png 1919w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>From here you can also update the cache or view the details of a specific cached item.</p>



<p>The Firefox web
browser cache is designed to increase performance. However, when you
have caching being performed by Squid, then using the web browser
cache is effectively a duplication of services. When the Firefox disk
cache and Squid are both actively caching I often found that
connections would hang, become unstable or even become
non-responsive. This was the result of the Firefox disk cache
conflicting with the Squid cache &#8211; two caches trying to do the same
task.</p>



<p>While choosing one
cache over another might not technically be a &#8216;better&#8217; option, I have
found it&#8217;s better to leave the task of caching to Squid as it is a
dedicated server designated for one specific role. This frees up
Firefox resources to concentrate on rendering content rather than
juggling finite resources for multiple tasks inside the browser.</p>



<p>There is also an
added security benefit to disabling the Firefox disk cache. When
enabled, malicious web content can reside inside the cache. Where
memory cache is non-persistent and cleared on Firefox close, the disk
cache is persistent and if there is malicious content present, it
will get reloaded every time Firefox is booted or until you clear the
cache entirely.</p>



<p>It&#8217;s best to leave
the Firefox memory cache enabled to maintain Firefox web browser
performance, as the memory cache poses less threat of cache conflict
with Squid to that of the disk cache. To disable the disk cache enter
the following into your navigation bar:</p>



<p><strong><code>about:config</code></strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="576" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/disk-cache-disable_2-1024x576.png" alt="" class="wp-image-16346" srcset="https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_2-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_2-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_2-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_2-1536x864.png 1536w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_2-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_2-1068x601.png 1068w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_2-747x420.png 747w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_2.png 1919w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Press <strong>ENTER</strong> to confirm the warning dialog. Now, search for the configuration string:</p>



<p><strong><code>browser.cache.disk.enable</code></strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="576" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/disk-cache-disable_3-1024x576.png" alt="" class="wp-image-16347" srcset="https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_3-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_3-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_3-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_3-1536x864.png 1536w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_3-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_3-1068x601.png 1068w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_3-747x420.png 747w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_3.png 1919w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Set the value to &#8220;<strong>false</strong>&#8220;.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="576" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/disk-cache-disable_4-1024x576.png" alt="" class="wp-image-16348" srcset="https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_4-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_4-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_4-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_4-1536x864.png 1536w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_4-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_4-1068x601.png 1068w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_4-747x420.png 747w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_4.png 1919w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Your disk cache is now disabled. We can verify the change by revisiting the <strong>about:cache</strong> page.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="576" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/12/disk-cache-disable_5-1024x576.png" alt="" class="wp-image-16349" srcset="https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_5-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_5-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_5-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_5-1536x864.png 1536w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_5-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_5-1068x601.png 1068w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_5-747x420.png 747w, https://www.osradar.com/wp-content/uploads/2019/12/disk-cache-disable_5.png 1919w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Most of the caching is now be performed by the Squid proxy server, complemented by the Firefox memory cache.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/disable-firefox-web-browser-disk-cache-when-using-squid-proxy-server/">Disable Firefox Web Browser Disk Cache When Using Squid Proxy Server</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/disable-firefox-web-browser-disk-cache-when-using-squid-proxy-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Squid Proxy: How to install and configure it on Ubuntu 18.04 / 16.04.</title>
		<link>https://www.osradar.com/squid-proxy-install-and-configure-it/</link>
					<comments>https://www.osradar.com/squid-proxy-install-and-configure-it/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 14 Dec 2018 02:13:00 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[squid]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=8372</guid>

					<description><![CDATA[<p>If you&#8217;re a sysadmin I probably don&#8217;t have to explain much about what a proxy is. However, I&#8217;m aware that not everyone handles these concepts so easily. So, a proxy is a device in computer science that performs the role of intermediary. For example, Internet access is full of Proxys where through it is that [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/squid-proxy-install-and-configure-it/">Squid Proxy: How to install and configure it on Ubuntu 18.04 / 16.04.</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>If you&#8217;re a sysadmin I probably don&#8217;t have to explain much about what a proxy is. However, I&#8217;m aware that not everyone handles these concepts so easily. So, a proxy is a device in computer science that performs the role of intermediary. For example, Internet access is full of Proxys where through it is that requests are made. Fortunately, in Linux, we have the fabulous Squid Proxy.</p>
<p><a href="http://www.squid-cache.org/Intro/">Squid</a> Proxy is a veteran program that allows you to have a proxy server running on your system. It is one of the most popular applications in the entire Unix ecosystem. Obviously, it&#8217;s open source, which guarantees you won&#8217;t have license problems or anything similar. In addition, there is a large community of users willing to shield knowledge to this tool.</p>
<p>Some of its characteristics are:</p>
<ul>
<li>Open Source. Squid Proxy is distributed under the<a href="https://www.gnu.org/licenses/gpl.html" rel="noopener"> GPL license.</a> Vital to have no licensing problems and be used in virtually any project.</li>
<li>It specializes in Unix systems such as <strong>Linux</strong>.</li>
<li>Being a proxy cache supports<strong> HTTP, HTTPS, and FTP</strong>. Basic internet services.</li>
<li>SSL compatible to increase connection security.</li>
</ul>
<p>And many others that have given the role of being practically a standard for Linux.</p>
<h1>1. Install Squid Proxy</h1>
<p>In this tutorial, I will use a server with Ubuntu 18.04. But, Squid Proxy can be easily installed on many Linux distributions. So, in Ubuntu, the installation process is really simple.</p>
<pre class="">:~$ sudo apt install squid</pre>
<p>&nbsp;</p>
<p><figure id="attachment_8373" aria-describedby="caption-attachment-8373" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8373" src="https://www.osradar.com/wp-content/uploads/2018/12/1-8.png" alt="1.- Install Squid Proxy" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/12/1-8.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/1-8-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/1-8-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/1-8-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/1-8-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/1-8-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8373" class="wp-caption-text">1.- Install Squid Proxy</figcaption></figure></p>
<p>Next, start, enable and check the service status.</p>
<p>&nbsp;</p>
<pre class="">:~$ sudo systemctl start squid
:~$ sudo systemctl enable squid
:~$ sudo systemctl status squid</pre>
<p><figure id="attachment_8374" aria-describedby="caption-attachment-8374" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8374" src="https://www.osradar.com/wp-content/uploads/2018/12/2-8.png" alt="2.- Working with Squid service" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/12/2-8.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/2-8-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/2-8-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/2-8-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/2-8-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/2-8-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8374" class="wp-caption-text">2.- Working with Squid service</figcaption></figure></p>
<p>And that&#8217;s. So, let&#8217;s configure it.</p>
<h1>2.- Changing the Squid Proxy port</h1>
<p>By default, Squid uses port 3128. For security reasons it is recommended to change the port where it works. So if you can, do it.</p>
<p>To do it, edit the <code>/etc/squid/squid.conf</code> file and change the port.</p>
<pre class="">:~$ sudo nano /etc/squid/squid.conf</pre>
<p><figure id="attachment_8375" aria-describedby="caption-attachment-8375" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8375" src="https://www.osradar.com/wp-content/uploads/2018/12/3-8.png" alt="3.- Changing the default port" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/12/3-8.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/3-8-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/3-8-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/3-8-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/3-8-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/3-8-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8375" class="wp-caption-text">3.- Changing the default port</figcaption></figure></p>
<p>Then, restart the service.</p>
<pre class="">:~$ sudo systemctl restart squid</pre>
<p><figure id="attachment_8376" aria-describedby="caption-attachment-8376" style="width: 862px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8376" src="https://www.osradar.com/wp-content/uploads/2018/12/4-8.png" alt="4.- restarting the Squid service" width="862" height="228" srcset="https://www.osradar.com/wp-content/uploads/2018/12/4-8.png 862w, https://www.osradar.com/wp-content/uploads/2018/12/4-8-300x79.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/4-8-768x203.png 768w" sizes="(max-width: 862px) 100vw, 862px" /><figcaption id="caption-attachment-8376" class="wp-caption-text">4.- restarting the Squid service</figcaption></figure></p>
<h1>3. Setting some configurations</h1>
<p>Now let&#8217;s do some basic configurations with Squid. Remember that its use is very wide and varies according to the server requirements.</p>
<p>First, I don&#8217;t think you want to, but you can allow or deny all HTTP traffic. This will remove Internet access from your entire network. So let&#8217;s go.</p>
<p>Edit the <code>/etc/squid/squid.conf</code> file. Remove the # at the beginning of the line to set the desired parameter.</p>
<pre class="">:~$ sudo nano /etc/quid/quid.conf</pre>
<p><figure id="attachment_8377" aria-describedby="caption-attachment-8377" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8377" src="https://www.osradar.com/wp-content/uploads/2018/12/5-8.png" alt="5.- Deny or Allow access to the all hosts." width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/12/5-8.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/5-8-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/5-8-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/5-8-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/5-8-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/5-8-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8377" class="wp-caption-text">5.- Deny or Allow access to all hosts.</figcaption></figure></p>
<p>You can also define which websites you want to remove access to. Very useful in organizations and at work.</p>
<p>In this case, I will use two websites. You can add what you want.</p>
<pre class="">acl blocksite1 dstdomain espn.com
acl blocksite2 dstdomain apple.com
http_access deny blocksite1
http_access deny blocksite2</pre>
<p><figure id="attachment_8378" aria-describedby="caption-attachment-8378" style="width: 898px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8378" src="https://www.osradar.com/wp-content/uploads/2018/12/6-8.png" alt="6.- Blocking some sites" width="898" height="291" srcset="https://www.osradar.com/wp-content/uploads/2018/12/6-8.png 898w, https://www.osradar.com/wp-content/uploads/2018/12/6-8-300x97.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/6-8-768x249.png 768w" sizes="(max-width: 898px) 100vw, 898px" /><figcaption id="caption-attachment-8378" class="wp-caption-text">6.- Blocking some sites</figcaption></figure></p>
<p>However, if you have a lot of places to block. Ideally, create a blacklist and add it to the configuration file. Create a file <code>/etc/squid/blocked.lst</code>.</p>
<pre class="">:~$ sudo nano /etc/squid/blocked.lst</pre>
<p><figure id="attachment_8379" aria-describedby="caption-attachment-8379" style="width: 845px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8379" src="https://www.osradar.com/wp-content/uploads/2018/12/7-8.png" alt="7.- Showing a blocked sites list" width="845" height="246" srcset="https://www.osradar.com/wp-content/uploads/2018/12/7-8.png 845w, https://www.osradar.com/wp-content/uploads/2018/12/7-8-300x87.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/7-8-768x224.png 768w" sizes="(max-width: 845px) 100vw, 845px" /><figcaption id="caption-attachment-8379" class="wp-caption-text">7.- Showing a blocked sites list</figcaption></figure></p>
<p>Now, edit the configuration file and add the list.</p>
<pre class="">acl blocksitelist dstdomain "/etc/squid/blocked.lst"
http_access deny blocksitelist</pre>
<p><figure id="attachment_8380" aria-describedby="caption-attachment-8380" style="width: 686px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8380" src="https://www.osradar.com/wp-content/uploads/2018/12/8-8.png" alt="" width="686" height="140" srcset="https://www.osradar.com/wp-content/uploads/2018/12/8-8.png 686w, https://www.osradar.com/wp-content/uploads/2018/12/8-8-300x61.png 300w" sizes="(max-width: 686px) 100vw, 686px" /><figcaption id="caption-attachment-8380" class="wp-caption-text">8.- Adding a blocked list</figcaption></figure></p>
<p>Another way to block inappropriate sites in the organization is through keywords. Very useful if you don&#8217;t remember all the sites to restrict but you will block all those related to it.</p>
<pre class="">acl blockkeyword1 url_regex gmail
acl blockkeyword2 url_regex porn
http_access deny blockkeyword1
http_access deny blockkeyword2</pre>
<p><figure id="attachment_8381" aria-describedby="caption-attachment-8381" style="width: 728px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8381" src="https://www.osradar.com/wp-content/uploads/2018/12/9-7.png" alt="9.- Blocking keywords" width="728" height="132" srcset="https://www.osradar.com/wp-content/uploads/2018/12/9-7.png 728w, https://www.osradar.com/wp-content/uploads/2018/12/9-7-300x54.png 300w" sizes="(max-width: 728px) 100vw, 728px" /><figcaption id="caption-attachment-8381" class="wp-caption-text">9.- Blocking keywords</figcaption></figure></p>
<p>Or if you have a pretty extensive list, you can create a file and place them there. Then you add it to the configuration file. Similar to how it was done with domains.</p>
<pre class="">:~$ sudo nano /etc/squid/blockedkw.lst</pre>
<pre class="">acl blockkeywordlist url_regex "/etc/squid/blockedkw.lst"
http_access deny blockkeywordlist</pre>
<p><figure id="attachment_8382" aria-describedby="caption-attachment-8382" style="width: 526px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8382" src="https://www.osradar.com/wp-content/uploads/2018/12/10-7.png" alt="10.- Creating a file for the blocked keywords" width="526" height="288" srcset="https://www.osradar.com/wp-content/uploads/2018/12/10-7.png 526w, https://www.osradar.com/wp-content/uploads/2018/12/10-7-300x164.png 300w" sizes="(max-width: 526px) 100vw, 526px" /><figcaption id="caption-attachment-8382" class="wp-caption-text">10.- Creating a file for the blocked keywords</figcaption></figure></p>
<p>Now, go to the squid configuration file and add the list.</p>
<p><figure id="attachment_8383" aria-describedby="caption-attachment-8383" style="width: 638px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8383" src="https://www.osradar.com/wp-content/uploads/2018/12/11-8.png" alt="11.- Adding a blocked keywords list" width="638" height="69" srcset="https://www.osradar.com/wp-content/uploads/2018/12/11-8.png 638w, https://www.osradar.com/wp-content/uploads/2018/12/11-8-300x32.png 300w" sizes="(max-width: 638px) 100vw, 638px" /><figcaption id="caption-attachment-8383" class="wp-caption-text">11.- Adding a blocked keywords list</figcaption></figure></p>
<p>For all these changes to take effect, it is necessary to restart the Squid service.</p>
<pre class="">:~$ sudo systemctl restart squid</pre>
<p>And that&#8217;s it.</p>
<h1>Conclusion</h1>
<p>It&#8217;s true that Squid Proxy offers a lot of possibilities. However, today I have presented some basic options but very useful at the time of configuring it. It only remains for you to continue using and enjoying this tool.</p>
<p>You can also read &#8220;<a href="https://www.osradar.com/how-to-install-and-use-pacaur-on-arch-linux/">How to Install and Use Pacaur on Arch Linux</a>&#8220;.</p>
<p>Please share this post with your friends.</p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/squid-proxy-install-and-configure-it/">Squid Proxy: How to install and configure it on Ubuntu 18.04 / 16.04.</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/squid-proxy-install-and-configure-it/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
