<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2524 " id="quads-ad2524" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>

<h2 class="wp-block-heading">Setup Squid Guard (Proxy Server) on Pfsense</h2>



<p>In order to setup Squid Guard you should have two packages installed on your Pfsense for it to work properly.</p>
<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2529 " id="quads-ad2529" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>

<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2526 " id="quads-ad2526" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>

<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2523 " id="quads-ad2523" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>




<p>First package should be Squid 3 (In case you&#8217;re publishing Exchange web services with it) or Squid if not.</p>



<p>Second Package would be Squid Guard-Squid3 for Squid 3 or in case you don&#8217;t have Squid 3 you can use the normal &#8220;Stable&#8221; Squid-Guard version for Squid. ;</p>



<h2 class="wp-block-heading">Squid Package</h2>



<p>In my case I am using Squid 3 because I use its reverse proxy to publish Exchange web services so I will install SquidGaurd-Squid 3 to configure its proxy server.</p>



<p>I already downloaded and installed it but If you didn&#8217;t do so then you will have to navigate to >System > Packages >Available Packages and there you can find it and install it.</p>



<figure class="wp-block-image"><img src="https://sites.google.com/a/moh10ly.com/tech2/_/rsrc/1431547307869/blog/pfsense/setup-squid-guard-proxy-server-on-pfsense/pfsquid1.png" alt=""/> 

<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2522 " id="quads-ad2522" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>
 
</figure>



<p>From the Services Menu drop down you will find those 3 below (Proxy Filter, Proxy Server and Reverse Proxy) </p>



<figure class="wp-block-image"><img src="https://sites.google.com/a/moh10ly.com/tech2/_/rsrc/1431547307869/blog/pfsense/setup-squid-guard-proxy-server-on-pfsense/pfsquid2.png" alt=""/></figure>



<p>First I will go to Proxy Server tick which Interfaces I want to enable the proxy on (<strong>LAN, DMZ</strong>) and Enable &#8220;<strong>Transparent Http Proxy</strong>&#8221; and &#8220;<strong>Allow users on interface&#8221;</strong> in the General tab page</p>



<figure class="wp-block-image"><img src="https://sites.google.com/a/moh10ly.com/tech2/_/rsrc/1431547307870/blog/pfsense/setup-squid-guard-proxy-server-on-pfsense/pfsquid3.png" alt=""/></figure>



<p>If you scroll down you will find &#8220;Logging Settings&#8221; and other options that you don&#8217;t need to enable. Logging is required mostly for troubleshooting times.</p>



<p>Next I will go to &#8220;Local Cache&#8221; tab and change the ;<strong>Squid Hard Disk cache Settings ;</strong>in order to take more than 100 mb. I will make it 5000mb which is 5 GB to make internet browser faster for users who visit the same websites often.</p>



<p>After that you don&#8217;t need to do anything except saving changes in the end of the page below</p>



<figure class="wp-block-image"><img src="https://sites.google.com/a/moh10ly.com/tech2/_/rsrc/1431547307870/blog/pfsense/setup-squid-guard-proxy-server-on-pfsense/pfsquid4.png" alt=""/></figure>



<p>Go to &#8220;<strong>ACLs</strong>&#8221; page and enable the Local networks that I have, I will write them in the &#8220;<strong>Allowed subnets</strong>&#8221; section and save the page. </p>



<figure class="wp-block-image"><img src="https://sites.google.com/a/moh10ly.com/tech2/_/rsrc/1431547307870/blog/pfsense/setup-squid-guard-proxy-server-on-pfsense/pfsquid5.png" alt=""/></figure>



<p>I am finished with the Proxy Server settings, I will go to Proxy Filter and I will scroll down to the end of the page to Enable Blacklist option and paste the link below then click Save to save the changes</p>



<p><a href="http://www.shallalist.de/Downloads/shallalist.tar.gz">http://www.shallalist.de/Downloads/shallalist.tar.gz</a></p>
<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2527 " id="quads-ad2527" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>




<figure class="wp-block-image"><img src="https://sites.google.com/a/moh10ly.com/tech2/_/rsrc/1431547307870/blog/pfsense/setup-squid-guard-proxy-server-on-pfsense/pfsquid6.png" alt=""/></figure>



<p>Go to Blacklist tab to download the black list from there then I will copy the link below and press on Download</p>



<p><a href="http://www.shallalist.de/Downloads/shallalist.tar.gz">http://www.shallalist.de/Downloads/shallalist.tar.gz</a></p>



<figure class="wp-block-image"><img src="https://sites.google.com/a/moh10ly.com/tech2/_/rsrc/1431547307870/blog/pfsense/setup-squid-guard-proxy-server-on-pfsense/pfsquid7.png" alt=""/></figure>



<p>When I finish downloading I will go to &#8220;<strong>Common ACL</strong>&#8221; tab page and configure the Rules there which we have downloaded. As you can see below I have everything already configured but in order for you to configure it you will have to press on the > Green Start button first of all</p>



<figure class="wp-block-image"><img src="https://sites.google.com/a/moh10ly.com/tech2/_/rsrc/1431547307870/blog/pfsense/setup-squid-guard-proxy-server-on-pfsense/pfsquid8.png" alt=""/></figure>



<p>After you press on the Green button It will show you the rules that you want to configure. I have already configured (<strong>Alcohol, Deny, Gambling, Hacking, Social net</strong>)…</p>



<figure class="wp-block-image"><img src="https://sites.google.com/a/moh10ly.com/tech2/_/rsrc/1431547307870/blog/pfsense/setup-squid-guard-proxy-server-on-pfsense/pfsquid9.png" alt=""/></figure>



<figure class="wp-block-image"><img src="https://sites.google.com/a/moh10ly.com/tech2/_/rsrc/1431547307869/blog/pfsense/setup-squid-guard-proxy-server-on-pfsense/pfsquid10.png" alt=""/></figure>



<p>Then next I will configure the Redirect mode and type my own customized message that will appear to the clients behind Pfsense and use safeSearch.</p>



<figure class="wp-block-image"><img src="https://sites.google.com/a/moh10ly.com/tech2/_/rsrc/1431547307869/blog/pfsense/setup-squid-guard-proxy-server-on-pfsense/pfsquid11.png" alt=""/></figure>



<p>When done I will save this page and go to the General tab page and will click on Apply all changes and save the page.</p>



<figure class="wp-block-image"><img src="https://sites.google.com/a/moh10ly.com/tech2/_/rsrc/1431547307869/blog/pfsense/setup-squid-guard-proxy-server-on-pfsense/pfsquid12.png" alt=""/></figure>



<p>Note:</p>



<p>you should see that SafeGuard service state &#8220;Started&#8221; in order for it to work. If for any reason the service is not started try to navigate to >Status > System logs and check your logs here if there&#8217;s anything related to SafeGaurd or Squid.<br></p>



<figure class="wp-block-image"><img src="https://sites.google.com/a/moh10ly.com/tech2/_/rsrc/1431547307869/blog/pfsense/setup-squid-guard-proxy-server-on-pfsense/pfsquid13.png" alt=""/></figure>



<p>Now I will go to the Client and check if my client with &#8220;Pfsense as their default gateway&#8221; will respond to the Safe Guard rules or not.</p>



<p>I tried opening Facebook or Twitter but both are not working and they gave me the same message which I have customized in Pfsense. </p>



<figure class="wp-block-image"><img src="https://sites.google.com/a/moh10ly.com/tech2/_/rsrc/1431547307869/blog/pfsense/setup-squid-guard-proxy-server-on-pfsense/pfsquid14.png" alt=""/></figure>



<p>Over all this had been easy setup and everything works perfectly</p>
<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2531 " id="quads-ad2531" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>




<p>Hope this would be useful to you all.</p>

<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2525 " id="quads-ad2525" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>


Reset and manage your Active Directory users' Passwords Active Directory is one of the most…
Finding Exchange Database hidden mailboxes. Story:Maybe you have been in this situation before, trying to…
If you're using a Proxy server in your firewall or in your network and have…
Story:I got some clients that have reported some of their users being locked out and…
Delegate Permissions This is a code that I have wrote recently to check if an…
Story: I got a request from a client who constantly gets CVs and have to…