<?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>Linux Mail Server Setup and Howto Guide &#187; Squid Proxy Server</title>
	<atom:link href="http://www.linuxmail.info/category/squid-proxy-server/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linuxmail.info</link>
	<description>Rapidly deploy Linux based mail solutions today</description>
	<lastBuildDate>Tue, 01 Nov 2011 00:43:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Squid Proxy Server Setup Howto for RHEL/CentOS 5</title>
		<link>http://www.linuxmail.info/squid-proxy-server-setup-howto/</link>
		<comments>http://www.linuxmail.info/squid-proxy-server-setup-howto/#comments</comments>
		<pubDate>Sat, 15 Nov 2008 13:02:07 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[Squid Proxy Server]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=152</guid>
		<description><![CDATA[This article will show you how to install and configure the Squid Proxy Server in Red Hat Enterprise Linux/CentOS 5.]]></description>
			<content:encoded><![CDATA[<p><strong>Squid</strong> is an open source caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-requested web pages. Squid also has extensive access controls and makes a great server accelerator. This article will show you how to install and configure the Squid Proxy Server in RHEL/CentOS 5.</p>
<span id="more-152"></span>
<div class="post-info-spacing"><script type="text/javascript">google_ad_client="pub-3384844279561399";google_ad_slot="5340126843";google_ad_width=336;google_ad_height=280;</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>

<h2>How to install Linux</h2>
<p>You can use either <a href="http://www.redhat.com">Red Hat Enterprise Linux 5</a> or <a href="http://www.centos.org">CentOS 5</a>. RHEL 5 can be purchased from <a href="http://www.redhat.com">Red Hat</a> and comes with support. CentOS 5 on the other hand can be downloaded <a href="http://isoredirect.centos.org/centos/5/isos/">here</a>.</p>
<div class="clearfix steps"><a href="/images/centos-5/boot.png"><img class="preview" alt="Boot" src="/images/centos-5/t-boot.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. <a href="/how-to-install-centos-5-linux/">How to install CentOS 5.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/welcome2.png"><img class="preview" alt="Welcome" src="/images/centos-5/t-welcome2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. <a href="/how-to-setup-centos-5-linux/">How to setup CentOS 5.</a></div>
<div class="clearfix steps"><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />To simplify our administration tasks, log in as the user <strong>root</strong> and specify your root password. This is not the recommended way of administering a Linux box, but for the tasks at hand it is the most efficient way.</div>
<div class="clearfix steps"><a href="/images/centos-5/ping-mail.png"><img class="preview" alt="Edit /etc/hosts" src="/images/centos-5/t-ping-mail.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. <a href="/configure-host-name-lookup-centos-5/">How to configure host name lookup.</a></div>
<h2>How to setup the Squid Proxy Server</h2>
<p>The Server &#8211; GUI installation already include Squid so all we have to do is start the Squid service and open the Squid port in the firewall.</p>
<div class="clearfix steps"><a href="/images/centos-5/edit-squid-conf-3.png"><img class="preview" alt="Edit squid.conf" src="/images/centos-5/t-edit-squid-conf-3.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Edit the Squid configuration file <em>/etc/squid/squid.conf</em>. See a sample <a href="/files/squid.conf">squid.conf</a>. Learn more about the <a href="/squid-acl-elements/">Squid Access Control List (ACL)</a>.</div>
<div class="clearfix steps"><a href="/images/centos-5/service-config.png"><img class="preview" alt="Service Configuration" src="/images/centos-5/t-service-config.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Start the <em>squid</em> service. <a href="/how-to-start-stop-services-centos-5/">Learn how to start services.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/security-level-config-2.png"><img class="preview" alt="Security Level Configuration" src="/images/centos-5/t-security-level-config-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Squid listens on the port <em>3128</em> so this should be opened in the firewall. <a href="/firewall-configuration-centos-5/">Learn how to configure the firewall.</a></div>
<div class="clearfix steps"><a href="/images/windows-xp/ie7-squid-denied.png"><img class="preview" alt="IE7 Squid Denied" src="/images/windows-xp/t-ie7-squid-denied.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. <a href="/firefox-ie-proxy-server-howto/">Configure your browser to use Squid.</a> If you hit any of the deny rules, you should see a Squid error message.</div>
<!-- h2>How to setup the Squid Access Control</h2 -->
<h2>How to integrate Active Directory</h2>
<p>You can use you Active Directory user accounts for authenticating in Squid. You can also the Active Directory groups to group the access control in Squid. This section describes how to use Samba to integrate Active Directory into Squid.</p>
<div class="clearfix steps"><a href="/images/centos-5/getent-passwd.png"><img class="preview" alt="getent passwd" src="/images/centos-5/t-getent-passwd.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. <a href="/active-directory-integration-samba-centos-5/">How to setup Samba and Winbind.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/firefox-authenticate.png"><img class="preview" alt="getent passwd" src="/images/centos-5/t-firefox-authenticate.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. <a href="/squid-active-directory-integration/">How to integrate Active Directory into Squid.</a></div>
<h2>How to generate analysis reports</h2>
<p>To generate analysis report for Squid, we are going to use the Squid Analysis Report Generator (SARG) and Webmin. Webmin will make it easier to manage SARG.</p>
<div class="clearfix steps"><a href="/images/centos-5/webmin-sarg-report.png"><img class="preview" alt="Boot" src="/images/centos-5/t-webmin-sarg-report.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><a href="/squid-analysis-report-generator-webmin/">How to install and configure the Squid Analysis Report Generator (SARG).</a></div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/squid-proxy-server-setup-howto/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Squid and Active Directory Integration</title>
		<link>http://www.linuxmail.info/squid-active-directory-integration/</link>
		<comments>http://www.linuxmail.info/squid-active-directory-integration/#comments</comments>
		<pubDate>Sun, 02 Nov 2008 10:29:39 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[Squid Proxy Server]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=137</guid>
		<description><![CDATA[This article describes how to configure Squid to use the Active Directory user accounts for authentication and groups for access control.]]></description>
			<content:encoded><![CDATA[<p>You can use you Active Directory user accounts for authenticating in Squid. You can also the Active Directory groups to group the access control in Squid. This article describes how to configure Squid to use the Active Directory user accounts for authentication and groups for access control.</p>
<span id="more-137"></span>
<div class="post-info-spacing"><script type="text/javascript">google_ad_client="pub-3384844279561399";google_ad_slot="5340126843";google_ad_width=336;google_ad_height=280;</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>

<p>We will use Winbind to integrate Active Directory into Squid. See <a href="/active-directory-integration-samba-centos-5/">Active Directory Integration with Samba</a> for instructions on how to configure Winbind.</p>
<h2>Authenticating using Active Directory</h2>
<div class="clearfix steps"><a href="/images/centos-5/edit-squid-conf.png"><img class="preview" alt="Edit squid.conf" src="/images/centos-5/t-edit-squid-conf.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Edit the file <em>/etc/squid/squid.conf</em> and add the lines below.</div>
<pre class="steps scroll">
auth_param ntlm program /usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp
auth_param ntlm children 5
auth_param ntlm keep_alive on

auth_param basic program /usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off

acl authenticated proxy_auth REQUIRED
</pre>
<p>The first section of auth_param configures NTLM browser authentication (works in Internet Explorer) to authenticate using Samba. The second section of auth_param does the same but works for basic browser authentication.</p>
<p>The last line defines an <a href="/squid-acl-elements/">access control list element</a> named <em>authenticated</em> which can be used in any access control list. Below is a simple access control list which allows only authenticated users to have access to the Squid cache.</p>
<pre class="steps">
http_access allow authenticated
</pre>
<div class="clearfix steps"><a href="/images/centos-5/service-config.png"><img class="preview" alt="Service Configuration" src="/images/centos-5/t-service-config.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Restart the <em>squid</em> service. <a href="/how-to-start-stop-services-centos-5/">Learn how to restart services.</a></div>
<div class="clearfix steps"><a href="/images/centos-5/firefox-authenticate.png"><img class="preview" alt="Firefox Authentication" src="/images/centos-5/t-firefox-authenticate.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Try browsing the web via the proxy server, you should be asked to authenticate. <a href="/firefox-ie-proxy-server-howto/">Learn how to configure Firefox or Internet Explorer to use a proxy server.</a></div>
<h2>Using Active Directory Security Groups</h2>
<p>You can use the Active Directory Security Group in your access control list. Distribution group will not work here.</p>
<div class="clearfix steps"><a href="/images/centos-5/edit-squid-conf-2.png"><img class="preview" alt="Edit squid.conf" src="/images/centos-5/t-edit-squid-conf-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. Edit the file <em>/etc/squid/squid.conf</em> and add the lines below.</div>
<pre class="steps">
external_acl_type ad_group %LOGIN /usr/lib/squid/wbinfo_group.pl
acl banned_users external ad_group BannedUsers
</pre>
<p>The first line defines an external acl type named ad_group which points to a Perl program that accepts a user name and group name parameter and returns <em>Ok</em> if the user name belongs in a specified group name.</p>
<p>The second line defines an access control list element named <em>banned_users</em> which specifies the Active Directory group <em>BannedUsers</em>. Below is an example in using the banned_users acl.</p>
<pre class="steps">
http_access deny banned_users
</pre>
<div class="clearfix steps"><a href="/images/centos-5/service-config.png"><img class="preview" alt="Service Configuration" src="/images/centos-5/t-service-config.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Restart the <em>squid</em> service. <a href="/how-to-start-stop-services-centos-5/">Learn how to restart services.</a></div>
<div class="clearfix steps"><a href="/images/windows-xp/ie7-squid-denied.png"><img class="preview" alt="Internet Explorer 7" src="/images/windows-xp/t-ie7-squid-denied.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Try browsing the web via the proxy server. <a href="/firefox-ie-proxy-server-howto/">Learn how to configure Firefox or Internet Explorer to use a proxy server.</a></div>
<h2>Related Pages</h2>
<div class="clearfix steps"><a href="/images/centos-5/webmin-sarg-report.png"><img class="preview" alt="Boot" src="/images/centos-5/t-webmin-sarg-report.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a><a href="/squid-analysis-report-generator-webmin/">How to install and configure the Squid Analysis Report Generator (SARG).</a></div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/squid-active-directory-integration/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Squid Analysis Report Generator (SARG) and Webmin</title>
		<link>http://www.linuxmail.info/squid-analysis-report-generator-webmin/</link>
		<comments>http://www.linuxmail.info/squid-analysis-report-generator-webmin/#comments</comments>
		<pubDate>Sat, 25 Oct 2008 11:56:30 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[Squid Proxy Server]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=104</guid>
		<description><![CDATA[This article will show you how to use the Squid Analysis Report Generator (SARG) through Webmin, a web-based interface for administering Linux.]]></description>
			<content:encoded><![CDATA[<p>The <strong>Squid Analysis Report Generator  (SARG)</strong> enables you to see your Squid users internet usage. SARG provides many informations about Squid users activities like times, bytes, sites, etc. This article will show you how to use SARG through Webmin, a web-based interface for administering Linux.</p>
<span id="more-104"></span>
<div class="post-info-spacing"><script type="text/javascript">google_ad_client="pub-3384844279561399";google_ad_slot="5340126843";google_ad_width=336;google_ad_height=280;</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>

<h2>Installing Webmin and SARG</h2>
<div class="clearfix steps"><a href="/images/centos-5/installing-rpmforge.png"><img class="preview" alt="RPM Forge" src="/images/centos-5/t-installing-rpmforge.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. <a href="/add-rpmforge-centos-5/">Add the RPMforge repository into Yum.</a> We will be getting the SARG RPM package for Red Hat/CentOS from RPMforge.</div>
<div class="clearfix steps"><a href="/images/centos-5/yum-install-sarg.png"><img class="preview" alt="Yum install SARG" src="/images/centos-5/t-yum-install-sarg.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. From a terminal window, type in the command below to install SARG.<pre class="steps">yum install sarg</pre></div>
<div class="clearfix steps"><a href="/images/centos-5/webmin-main.png"><img class="preview" alt="Webmin" src="/images/centos-5/t-webmin-main.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. <a href="/webmin-setup-howto/">Install Webmin.</a> After installing, login to Webmin. Webmin will enable us to control who gets access to the Squid reports. We will also have an easy to use web-based interface for configuring the report format.</div>
<div class="clearfix steps"><a href="/images/centos-5/webmin-sarg-configure.png"><img class="preview" alt="SARG configure" src="/images/centos-5/t-webmin-sarg-configure.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Click <em>Un-used modules</em> in the side bar. Next click <em>Squid Report Generator</em>. We need to configure SARG so click <em>module configuration</em>.</div>
<div class="clearfix steps"><a href="/images/centos-5/webmin-sarg-configure-2.png"><img class="preview" alt="SARG configure" src="/images/centos-5/t-webmin-sarg-configure-2.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>5. Change the value of <em>Full path to SARG configuration file</em> to <em>/etc/sarg/sarg.conf</em> then click the <em>Save</em>.</div>
<div class="clearfix steps"><img class="icon32x32 left" alt="Note" src="/images/emblem-note.png" />Next time you need to use the Squid Report Generator, look for it under <em>Servers</em> instead of <em>Un-used modules</em>.</div>
<h2>Generating a report</h2>
<div class="clearfix steps"><a href="/images/centos-5/webmin-sarg.png"><img class="preview" alt="SARG" src="/images/centos-5/t-webmin-sarg.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>1. To generate a report, click the <em>Generate Report Now</em> button.</div>
<div class="clearfix steps"><a href="/images/centos-5/webmin-sarg-generate-report.png"><img class="preview" alt="SARG" src="/images/centos-5/t-webmin-sarg-generate-report.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>2. Next, click <em>View completed report</em>.</div>
<div class="clearfix steps"><a href="/images/centos-5/webmin-sarg-reports.png"><img class="preview" alt="SARG" src="/images/centos-5/t-webmin-sarg-reports.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>3. Click the latest generated report.</div>
<div class="clearfix steps"><a href="/images/centos-5/webmin-sarg-report.png"><img class="preview" alt="SARG" src="/images/centos-5/t-webmin-sarg-report.png" onmouseover="changeSrc(this)" /><img class="full" alt="" src="/images/busy.gif" /></a>4. Review the generated report.</div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/squid-analysis-report-generator-webmin/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Squid Access Control List (ACL) Elements</title>
		<link>http://www.linuxmail.info/squid-acl-elements/</link>
		<comments>http://www.linuxmail.info/squid-acl-elements/#comments</comments>
		<pubDate>Sun, 19 Oct 2008 14:36:34 +0000</pubDate>
		<dc:creator>consultant</dc:creator>
				<category><![CDATA[Squid Proxy Server]]></category>

		<guid isPermaLink="false">http://www.linuxmail.info/?p=99</guid>
		<description><![CDATA[Describes the different types of access control list element types in available Webmin and Squid.]]></description>
			<content:encoded><![CDATA[<p>The <strong>Squid Access Control List (ACL) Element</strong> defines a specific condition that can be acted upon when met. Listed below are the different types ACL elements available in Webmin and its equivalent in the Squid configuration file.</p>
<span id="more-99"></span>
<div class="post-info-spacing"><script type="text/javascript">google_ad_client="pub-3384844279561399";google_ad_slot="5340126843";google_ad_width=336;google_ad_height=280;</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div>

<ul>
<li><a href="#browser">Browser Regexp (browser)</a></li>
<li><a href="#src">Client Address (src)</a></li>
<li><a href="#srcdomain">Client Hostname (srcdomain)</a></li>
<li><a href="#srcdom_regexp">Client Regexp (srcdom_regexp)</a></li>
<li><a href="#time">Date and Time (time)</a></li>
<li><a href="#dest_as">Dest AS Number (dest_as)</a></li>
<li><a href="#arp">Ethernet Address (arp)</a></li>
<li><a href="#proxy_auth">External Auth (proxy_auth)</a></li>
<li><a href="#proxy_auth_regexp">External Auth Regexp (proxy_auth_regexp)</a></li>
<li><a href="#max_user_ip">Max User IP (max_user_ip)</a></li>
<li><a href="#maxconn">Maximum Connections (maxconn)</a></li>
<li><a href="#myip">Proxy IP Address (myip)</a></li>
<li><a href="#myport">Proxy Port (myport)</a></li>
<li><a href="#ident">RFC931 User (ident)</a></li>
<li><a href="#ident_regexp">RFC931 User Regexp (ident_regexp)</a></li>
<li><a href="#rep_mime_type">Reply MIME Type (rep_mime_type)</a></li>
<li><a href="#req_mime_type">Request MIME Type (req_mime_type)</a></li>
<li><a href="#method">Request Method (method)</a></li>
<li><a href="#snmp_community">SNMP Community (snmp_community)</a></li>
<li><a href="#src_as">Source AS Number (src_as)</a></li>
<li><a href="#urlpath_regexp">URL Path Regexp (urlpath_regexp)</a></li>
<li><a href="#port">URL Port (port)</a></li>
<li><a href="#proto">URL Protocol (proto)</a></li>
<li><a href="#url_regexp">URL Regexp (url_regexp)</a></li>
<li><a href="#dst">Web Server Address (dst)</a></li>
<li><a href="#dstdomain">Web Server Hostname (dstdomain)</a></li>
<li><a href="#dstdom_regexp">Web Server Regexp (dstdom_regexp)</a></li>
</ul>
<p>You can define multiple ACL elements having the same name and type. It will be acted upon if any one of those condition are met.</p>
<div class="indent">
Example
<pre class="steps">
acl Safe_ports port 80
acl Safe_ports port 21
acl Safe_ports port 443
</pre>
</div>
<p>You can also define multiple values in a separate file.</p>
<div class="indent">
Example
<pre class="steps">
acl Safe_ports port "/etc/squid/safe_ports"
</pre>
<em>/etc/squid/safe_ports</em> contains the lines below
<pre class="steps">
80
21
443
</pre>
</div>
<h2 id="browser">Browser Regexp (browser)</h2>
<div class="indent">
Matches a regular expression pattern against the User-Agent header of a browser. Use the <em>-i</em> option to make the comparison case-insensitive. Visit <a href="http://www.useragent.org/">http://www.useragent.org/</a> to see your User-Agent header.
<pre class="steps"><strong>acl</strong> aclname <strong>browser</strong> [-i] regexp</pre>
Example
<pre class="steps">acl mozilla_compatible browser Mozilla</pre>
</div>
<h2 id="src">Client Address (src)</h2>
<div class="indent">
Matches the IP address of the requesting client. If <em>hostname</em> is specified, it will be converted to an IP address during Squid initialization so it won&#8217;t match anymore if the IP address changes afterwards.
<pre class="steps">
<strong>acl</strong> aclname <strong>src</strong> ip-address[/netmask]
<strong>acl</strong> aclname <strong>src</strong> addr1-addr2/netmask
<strong>acl</strong> aclname <strong>src</strong> hostname
</pre>
Example
<pre class="steps">
acl boss_ip         src 192.168.0.2
acl bosses_ip       src 192.168.0.2-192.168.0.10/255.255.255.0
acl local_network   src 192.168.0.0/24
acl office_networks src 192.168.1.0-192.168.10.0/24
</pre>
</div>
<h2 id="srcdomain">Client Hostname (srcdomain)</h2>
<div class="indent">
Matches the reverse DNS of the requesting client&#8217;s IP address.
<pre class="steps">
<strong>acl</strong> aclname <strong>srcdomain</strong> hostname.domain.suffix
<strong>acl</strong> aclname <strong>srcdomain</strong> .domain.suffix
</pre>
Example
<pre class="steps">
acl bugs_host   srcdomain bugsbunny.acme.local
acl acme_domain srcdomain .acme.local
</pre>
</div>
<h2 id="srcdom_regexp">Client Regexp (srcdom_regexp)</h2>
<div class="indent">
Matches a regular expression pattern against the the reverse DNS of the requesting client&#8217;s IP address. Use the <em>-i</em> option to make the comparison case-insensitive.
<pre class="steps"><strong>acl</strong> aclname <strong>srcdom_regexp</strong> [-i] regexp</pre>
Example
<pre class="steps">acl hostname_starting_with_the_letter_x srcdom_regexp ^x.*</pre>
</div>
<h2 id="time">Date and Time (time)</h2>
<div class="indent">
Matches the date and time the client is making the request.
<pre class="steps"><strong>acl</strong> aclname <strong>time</strong> [day-abbreviations] [h1:m1-h2:m2]</pre>
Day Abbreviations
<ul>
<li><b>S</b> &#8211; Sunday</li>
<li><b>M</b> &#8211; Monday</li>
<li><b>T</b> &#8211; Tuesday</li>
<li><b>W</b> &#8211; Wednesday</li>
<li><b>H</b> -Thursday</li>
<li><b>F</b> &#8211; Friday</li>
<li><b>A</b> &#8211; Saturday</li>
<li><b>D</b> &#8211; Weekdays (Monday &#8211; Friday)</li>
</ul>
Example
<pre class="steps">
acl lunch_break  time 12:00-13:00
acl office_hours time D 09:00-17:00
</pre>
</div>
<h2 id="dest_as">Dest AS Number (dest_as)</h2>
<div class="indent">
Matches the Destination Autonomous System Number of the server being queried.
<pre class="steps">
<strong>acl</strong> aclname <strong>dst_as</strong> number
</pre>
Example
<pre class="steps">
acl sampleas dst_as 1234
</pre>
</div>
<h2 id="arp">Ethernet Address (arp)</h2>
<div class="indent">
Matches the ethernet (Media Access Control, MAC) address of the requesting client. Squid can only determine the MAC address for clients that are on the same subnet. If the client is on a different subnet, then Squid cannot find out its MAC address.
<pre class="steps">
<strong>acl</strong> aclname <strong>arp</strong> mac-address
</pre>
Example
<pre class="steps">
acl boss_mac arp 01:02:03:04:05:06
</pre>
</div>
<h2 id="proxy_auth">External Auth (proxy_auth)</h2>
<div class="indent">
Matches a username acquired using HTTP authentication headers. Use the <em>-i</em> option to make the comparison case-insensitive. Use <em>REQUIRED</em> to match all users. 
<pre class="steps">
<strong>acl</strong> aclname <strong>proxy_auth</strong> username1 username2
<strong>acl</strong> aclname <strong>proxy_auth</strong> REQUIRED
</pre>
Example
<pre class="steps">
acl acme_top_stars      proxy_auth bugsbunny daffyduck
acl authenticated_users proxy_auth REQUIRED
</pre>
</div>
<h2 id="proxy_auth_regexp">External Auth Regexp (proxy_auth_regexp)</h2>
<div class="indent">
Matches a regular expression pattern against a username acquired using HTTP authentication headers. Use the <em>-i</em> option to make the comparison case-insensitive.
<pre class="steps">
<strong>acl</strong> aclname <strong>proxy_auth_regexp</strong> [-i] regexp
</pre>
Example
<pre class="steps">
acl usernames_starting_with_the_letter_x proxy_auth_regexp ^x.*
</pre>
</div>
<h2 id="max_user_ip">Max User IP (max_user_ip)</h2>
<div class="indent">
Matches when the same user attempts to log in for more than the specified number of times from different ip addresses. Use the <em>-s</em> option to strictly enforce the limit. Without -s, Squid will just annoy the user by &#8220;randomly&#8221; denying requests.
<pre class="steps">
<strong>acl</strong> aclname <strong>max_user_ip</strong> [-s] number
</pre>
Example
<pre class="steps">
acl max_user_ip_conn max_user_ip 5
</pre>
</div>
<h2 id="maxconn">Maximum Connections (maxconn)</h2>
<div class="indent">
Matches when the specified number of HTTP connections for a client has been exceeded.
<pre class="steps">
<strong>acl</strong> aclname <strong>maxconn</strong> number
</pre>
Example
<pre class="steps">
acl max_conn_limit maxconn 10
</pre>
</div>
<h2 id="myip">Proxy IP Address (myip)</h2>
<div class="indent">
Matches the IP address of the Squid server where the client connected. Useful for servers with multiple IP addresses. If <em>hostname</em> is specified, it will be converted to an IP address during Squid initialization so it won&#8217;t match anymore if the IP address changes afterwards.
<pre class="steps">
<strong>acl</strong> aclname <strong>myip</strong> ip-address[/netmask]
<strong>acl</strong> aclname <strong>myip</strong> addr1-addr2/netmask
<strong>acl</strong> aclname <strong>myip</strong> hostname
</pre>
Example
<pre class="steps">
acl dialup_ip 192.168.0.2
</pre>
</div>
<h2 id="myport">Proxy Port (myport)</h2>
<div class="indent">
Matches the port of the Squid server where the client connected to. Useful for servers listening in multiple ports.
<pre class="steps">
<strong>acl</strong> aclname <strong>myport</strong> portnumber
</pre>
Example
<pre class="steps">
acl accel_port myport 80
acl proxy_port myport 3128
</pre>
</div>
<h2 id="ident">RFC931 User (ident)</h2>
<div class="indent">
Matches a username against an external ident server running on the client machines. 
<pre class="steps">
<strong>acl</strong> aclname <strong>ident</strong> username

</pre>
Example
<pre class="steps">
acl friends ident bugsbunny daffyduck
</pre>
</div>
<h2 id="ident_regexp">RFC931 User Regexp (ident_regexp)</h2>
<div class="indent">
Matches a regular expression pattern against an external ident server running on the client machines. Use the <em>-i</em> option to make the comparison case-insensitive.
<pre class="steps">
<strong>acl</strong> aclname <strong>ident_regexp</strong> [-i] regexp
</pre>
Example
<pre class="steps">
acl usernames_starting_with_the_letter_x ident_regexp ^x.*
</pre>
</div>
<h2 id="rep_mime_type">Reply MIME Type (rep_mime_type)</h2>
<div class="indent">
Matches the regular expression pattern against the Content-Type header of the origin server&#8217;s HTTP response. Useful only when used in an http_reply_access rule. Use the <em>-i</em> option to make the comparison case-insensitive.
<pre class="steps">
<strong>acl</strong> aclname <strong>rep_mime_type</strong> [-i] regexp
</pre>
Example
<pre class="steps">
acl java_download rep_mime_type application/x-java
</pre>
</div>
<h2 id="req_mime_type">Request MIME Type (req_mime_type)</h2>
<div class="indent">
Matches the regular express pattern against the Content-Type header of the client&#8217;s HTTP request. You can use this to detect certain file uploads and some types of HTTP tunneling requests. Use the <em>-i</em> option to make the comparison case-insensitive.
<pre class="steps">
<strong>acl</strong> aclname <strong>req_mime_type</strong> [-i] regexp
</pre>
Example
<pre class="steps">
acl audio_file_upload req_mime_type -i ^audio/
</pre>
</div>
<h2 id="method">Request Method (method)</h2>
<div class="indent">
Matches the HTTP request method sent by the client. Squid recognizes the following methods: GET,POST,PUT,HEAD, CONNECT,TRACE,OPTIONS and DELETE.
<pre class="steps">
<strong>acl</strong> aclname <strong>method</strong> method-type
</pre>
Example
<pre class="steps">
acl get_post_method method GET POST
</pre>
</div>
<h2 id="snmp_community">SNMP Community (snmp_community)</h2>
<div class="indent">
Matches a string against an SNMP query, which is controlled by the snmp_access directive.
<pre class="steps">
<strong>acl</strong> aclname <strong>snmp_community</strong> string
</pre>
Example
<pre class="steps">
acl my_community snmp_community MyCommunity
</pre>
</div>
<h2 id="src_as">Source AS Number (src_as)</h2>
<div class="indent">
Matches the Autonomous System Number of the requesting client.
<pre class="steps">
<strong>acl</strong> aclname <strong>src_as</strong> number
</pre>
Example
<pre class="steps">
acl my_isp src_as 1234
</pre>
</div>
<h2 id="urlpath_regexp">URL Path Regexp (urlpath_regexp)</h2>
<div class="indent">
Matches a regular expression pattern against the requested URL path. The URL path specifies the path only and does not include the protocol and the hostname. Use the <em>-i</em> option to make the comparison case-insensitive.
<pre class="steps">
<strong>acl</strong> aclname <strong>urlpath_regexp</strong> [-i] regexp
</pre>
Example
<pre class="steps">
acl images_path urlpath_regexp ^/images
</pre>
</div>
<h2 id="port">URL Port (port)</h2>
<div class="indent">
Matches the destination port number of the request.
<pre class="steps">
<strong>acl</strong> aclname <strong>port</strong> number
<strong>acl</strong> aclname <strong>port</strong> range
</pre>
Example
<pre class="steps">
acl web_port  port 80
acl voip_port port 10000-11000
</pre>
</div>
<h2 id="proto">URL Protocol (proto)</h2>
<div class="indent">
Matches the protocol of the request.
<pre class="steps">
<strong>acl</strong> aclname <strong>proto</strong> protocol
</pre>
Example
<pre class="steps">
acl ftp proto FTP
</pre>
</div>
<h2 id="url_regexp">URL Regexp (url_regexp)</h2>
<div class="indent">
Matches a regular expression pattern against the requested URL. Use the <em>-i</em> option to make the comparison case-insensitive.
<pre class="steps">
<strong>acl</strong> aclname <strong>url_regexp</strong> [-i] regexp
</pre>
Example
<pre class="steps">
acl ftp_mp3 url_regexp ^ftp://.*\.mp3$
</pre>
</div>
<h2 id="dst">Web Server Address (dst)</h2>
<div class="indent">
Matches the IP address of the destination server. If <em>hostname</em> is specified, it will be converted to an IP address during Squid initialization so it won&#8217;t match anymore if the IP address changes afterwards.
<pre class="steps">
<strong>acl</strong> aclname <strong>dst</strong> ip-address[/netmask]
<strong>acl</strong> aclname <strong>dst</strong> addr1-addr2/netmask
<strong>acl</strong> aclname <strong>dst</strong> hostname
</pre>
Example
<pre class="steps">
acl google dst www.google.com
</pre>
</div>
<h2 id="dstdomain">Web Server Hostname (dstdomain)</h2>
<div class="indent">
Matches the domain of the destination server.
<pre class="steps">
<strong>acl</strong> aclname <strong>dstdomain</strong> hostname.domain.suffix
<strong>acl</strong> aclname <strong>dstdomain</strong> .domain.suffix 
</pre>
Example
<pre class="steps">
acl www_google dstdomain www.google.com
acl www_google dstdomain google.com  # matches exactly google.com
acl google_dom dstdomain .google.com # all subdomains of google.com
</pre>
</div>
<h2 id="dstdom_regexp">Web Server Regexp (dstdom_regexp)</h2>
<div class="indent">
Matches the regular expression pattern against the domain of the destination server.
<pre class="steps">
<strong>acl</strong> aclname <strong>dstdom_regexp</strong> regexp
</pre>
Example
<pre class="steps">
acl domains_starting_with_the_letter_x dstdom_regexp ^x.*
</pre>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.linuxmail.info/squid-acl-elements/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

