 




<?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>Open Source Software and Linux &#187; squid</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/linux-lotus-domino/tag/squid/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/linux-lotus-domino</link>
	<description></description>
	<lastBuildDate>Thu, 02 May 2013 21:07:56 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Squid proxy server quick start</title>
		<link>http://itknowledgeexchange.techtarget.com/linux-lotus-domino/squid-proxy-server-quick-start/</link>
		<comments>http://itknowledgeexchange.techtarget.com/linux-lotus-domino/squid-proxy-server-quick-start/#comments</comments>
		<pubDate>Sat, 06 Sep 2008 08:05:31 +0000</pubDate>
		<dc:creator>Xjlittle</dc:creator>
				<category><![CDATA[centos]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[https]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[proxy cache]]></category>
		<category><![CDATA[squid]]></category>
		<category><![CDATA[squid.conf]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[web proxy]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[Yum]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/linux-lotus-domino/squid-proxy-server-quick-start/</guid>
		<description><![CDATA[Here is a quick start plan for installing the squid-cache.org proxy server. Squid is a caching proxy server that uses HTTP, HTTPS and FTP for caching web pages from the internet. By caching web pages locally the squid server helps you save on bandwidth and increases page response time for web surfing. When you first [...]]]></description>
				<content:encoded><![CDATA[<p>Here is a quick start plan for installing the <a href="http://www.squid-cache.org/">squid-cache.org</a> proxy server.  Squid is a caching proxy server that uses HTTP, HTTPS and FTP for caching web pages from the internet.  By caching web pages locally the squid server helps you save on bandwidth and increases page response time for web surfing.</p>
<p>When you first open the squid configuration file it can be overwhelming with over 4000 lines.  Many of these are comments but there are still hundreds of configuration choices.  I am going to reduce these down to a solid foundation which will get you up and running quickly.  This will give you some time to study the other configuration choices that may be necessary for your use.  For most people some form of the configuration entries that we use here will be enough to control and proxy your web access.</p>
<p>Squid can be installed on Linux, Unix or Windows.  For our purposes here we are installing on <a href="http://centos.org">Centos 5.x</a>.</p>
<p>Let&#8217;s get started:</p>
<p>Install the Squid package<br />
<code>	yum install squid</code></p>
<p>cd to the configuration directory<br />
<code>	cd /etc/squid</code></p>
<p>The default squid config file contains over 4000 lines.  Remove the comments so that the file<br />
is a workable size<br />
Copy the squid.conf file to dist.conf.squid to preserve the comments for reference<br />
<code>	cp squid.conf dist.squid.conf</code><br />
The following sed command edits the squid.conf file in place removing comments and empty lines<br />
<code>	sed -i.tmp '/^#/d; /^$/d' squid.conf</code><br />
This will produce a file that contains the following entries:</p>
<p><code><br />
http_port 3128<br />
hierarchy_stoplist cgi-bin ?<br />
acl QUERY urlpath_regex cgi-bin \?<br />
cache deny QUERY<br />
acl apache rep_header Server ^Apache<br />
broken_vary_encoding allow apache<br />
access_log /var/log/squid/access.log squid<br />
refresh_pattern ^ftp:           1440    20%     10080<br />
refresh_pattern ^gopher:        1440    0%      1440<br />
refresh_pattern .               0       20%     4320<br />
acl all src 0.0.0.0/0.0.0.0<br />
acl manager proto cache_object<br />
acl localhost src 127.0.0.1/255.255.255.255<br />
acl to_localhost dst 127.0.0.0/8<br />
acl SSL_ports port 443<br />
acl Safe_ports port 80          # http<br />
acl Safe_ports port 21          # ftp<br />
acl Safe_ports port 443         # https<br />
acl Safe_ports port 70          # gopher<br />
acl Safe_ports port 210         # wais<br />
acl Safe_ports port 1025-65535  # unregistered ports<br />
acl Safe_ports port 280         # http-mgmt<br />
acl Safe_ports port 488         # gss-http<br />
acl Safe_ports port 591         # filemaker<br />
acl Safe_ports port 777         # multiling http<br />
acl CONNECT method CONNECT<br />
http_access allow manager localhost<br />
http_access deny manager<br />
http_access deny !Safe_ports<br />
http_access deny CONNECT !SSL_ports<br />
http_access allow localhost<br />
http_access deny all<br />
http_reply_access allow all<br />
icp_access allow all<br />
coredump_dir /var/spool/squid<br />
</code></p>
<p>After doing this you will need to add some lines to the squid file for your environment<br />
<code><br />
        vim squid.conf<br />
	visible_hostname<br />
	acl our_networks src / /<br />
				as in 192.168.1.0/24 192.168.2.0/24<br />
	http_access our_networks<br />
</code><br />
Save your changes and exit the squid.conf file.</p>
<p>Create the squid cache directories in /var/spool/squid<br />
<code>	quid -z</code></p>
<p>Set squid to start on reboot<br />
<code>	chkconfig squid on</code></p>
<p>Start squid<br />
<code>	service squid start</code></p>
<p>This should work out of the box after pointing the clients to the correct proxy server and port.</p>
<p>Additional configuration directives can be issued through the /etc/sysconfig/squid file and the /etc/init.d/squid script.</p>
<p>I hope this helps you get squid up and running quickly.  Enjoy!</p>
<p>-j</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/linux-lotus-domino/squid-proxy-server-quick-start/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
