<?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>osscc &#187; Server</title>
	<atom:link href="http://www.osscc.org/category/documentation/networking/server/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.osscc.org</link>
	<description>free open source software for cyber cafe</description>
	<lastBuildDate>Wed, 03 Aug 2011 18:06:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>How to Setup Transparent Squid Proxy Server in Ubuntu</title>
		<link>http://www.osscc.org/2010/07/how-to-setup-transparent-squid-proxy-server-in-ubuntu/</link>
		<comments>http://www.osscc.org/2010/07/how-to-setup-transparent-squid-proxy-server-in-ubuntu/#comments</comments>
		<pubDate>Fri, 02 Jul 2010 19:30:08 +0000</pubDate>
		<dc:creator>cubiczero</dc:creator>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Operating System]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[proxy server]]></category>
		<category><![CDATA[squid]]></category>

		<guid isPermaLink="false">http://www.osscc.org/?p=161</guid>
		<description><![CDATA[How important proxy server for cyber cafe? For me as a cyber cafe entrepreneur, squid server is very important in keeping your customers internet access well performs. If you are new to open source cyber cafe concept, this article should be the best stater guide in helping you to setup a proxy server by using squid.]]></description>
			<content:encoded><![CDATA[<p>How important proxy server for cyber cafe? For me as a cyber cafe entrepreneur, squid server is very important in keeping your customers internet access well performs. If you are new to open source cyber cafe concept, this article should be the best stater guide in helping you to setup a proxy server by using squid.<span id="more-161"></span></p>
<hr /><a href="../wp-content/uploads/2010/07/squid-logo.gif"><img class="alignleft" title="squid-logo" src="../wp-content/uploads/2010/07/squid-logo.gif" alt="" width="183" height="210" /></a>Squid is a fully-featured HTTP/1.0 proxy which is almost (but not quite – we’re getting there!) HTTP/1.1 compliant. Squid offers a rich access control, authorization and logging environment to develop web proxy and content serving applications. This is a short guide on how to set up a transparent squid <a class="iAs" style="background-color: transparent ! important; background-image: none; border-bottom: medium none ! important; color: darkblue ! important; cursor: pointer ! important; font-weight: bold ! important; padding-bottom: 0px ! important; padding-left: 0pt; padding-right: 0pt; padding-top: 0pt; text-decoration: none ! important;" href="http://www.ubuntugeek.com/how-to-setup-transparent-squid-proxy-server-in-ubuntu.html#" target="_blank">proxy server<img style="border: 0pt none; margin: 0pt; padding: 0pt; display: inline ! important; float: none; height: 10px; left: 1px; position: relative; top: 1px; width: 10px;" src="http://images.intellitxt.com/ast/adTypes/mag-glass_10x10.gif" alt="" /></a>. Squid is a 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 has extensive access controls and makes a great server accelerator.</p>
<p><strong>Install Squid</strong><br />
Install squid and squid-common</p>
<blockquote><p><code>sudo aptitude install squid squid-common<br />
</code></p></blockquote>
<p>Edit the squid config file.</p>
<blockquote><p><code>sudo vi /etc/squid/squid.conf<br />
</code></p></blockquote>
<p>Set the allowed hosts.</p>
<blockquote><p><code>acl internal_network src 192.168.0.0/24 (</code>Where <code>192.168.0.0/24</code> is your IP range.)<code><br />
http_access allow internal_network</code></p></blockquote>
<p>Set the correct permissions.</p>
<blockquote><p><code>sudo chown -R proxy:proxy /var/log/squid/<br />
sudo chown proxy:proxy /etc/squid/squid.conf<br />
</code></p></blockquote>
<p>You will need to restart squid for the changes to take affect.</p>
<blockquote><p><code>sudo /etc/init.d/squid restart</code></p></blockquote>
<p>Now open up your browser and set your proxy to point to your new squid server on port 3128<br />
<strong> </strong></p>
<p><strong>Authentication</strong><br />
If you wish to use authentication with your proxy you will need to install apache2 utilities</p>
<blockquote><p><code>sudo aptitude install squid squid-common apache2-utils</code></p></blockquote>
<p>To add your first user you will need to specify -c</p>
<blockquote><p><code>sudo htpasswd -c /etc/squid.passwd first_user</code></p></blockquote>
<p>Thereafter you add new users with</p>
<blockquote><p><code>sudo htpasswd /etc/squid.passwd another_user</code></p></blockquote>
<p>Edit the squid config file</p>
<blockquote><p><code>sudo vi /etc/squid/squid.conf<br />
</code></p></blockquote>
<p>Set the the authentication parameters and the acl</p>
<blockquote><p><code>auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid.passwd<br />
auth_param basic children 5<br />
auth_param basic realm NFYE Squid proxy-caching web server<br />
auth_param basic credentialsttl 3 hours<br />
auth_param basic casesensitive off<br />
</code><br />
<code>acl users proxy_auth REQUIRED</code><br />
<code>acl sectionx proxy_auth REQUIRED</code><br />
<code>http_access allow users</code></p></blockquote>
<p>So this is what your squid.conf should look like.</p>
<blockquote><p><span style="font-family: monospace;">acl all src 0.0.0.0/0.0.0.0</span></p>
<p><code>acl </code><code>internal_network</code><code> src 192.168.0.0/24<br />
acl users proxy_auth REQUIRED<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 563      # https, snews<br />
acl SSL_ports port 873          # rsync<br />
acl Safe_ports port 80          # http<br />
acl Safe_ports port 21          # ftp<br />
acl Safe_ports port 443 563     # https, snews<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 Safe_ports port 631         # cups<br />
acl Safe_ports port 873         # rsync<br />
acl Safe_ports port 901         # SWAT<br />
acl sectionx proxy_auth REQUIRED<br />
acl purge method PURGE<br />
acl CONNECT method CONNECT</code><br />
http_access allow manager localhost<br />
http_access allow users<br />
http_access allow <code>internal_network</code><code><br />
http_access deny manager<br />
http_access allow purge localhost<br />
http_access deny purge<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</code><br />
<strong> </strong></p></blockquote>
<p><strong>Redirect the all HTTP traffic.</strong><br />
If you would like to redirect the all HTTP traffic through the proxy without needing to set up a proxy manually in all your applications you will need to add some rules</p>
<blockquote><p><code>iptables -t nat -A PREROUTING -i eth1 -p tcp -m tcp <code>--dport</code> 80 -j DNAT <code>--to-destination</code> 192.168.0.1:3128<br />
iptables -t nat -A PREROUTING -i eth0 -p tcp -m tcp --dport 80 -j REDIRECT <code>--to-ports</code> 3128<br />
</code></p></blockquote>
<p>Where eth1,eth0 are the LAN, WAN devices and 192.168.0.1 is the IP address of your LAN device.<br />
If you wish to monitor the performance of your proxy you can look as some log parser’s (sarg, calamaris, ect.)</p>
<p>After all, probably you feel the need to monitor the performance of your proxy. Unfortunately, most of the squid log parsers in the Ubuntu repository are configured for Squid 2.x. Nevertheless, squid 3 uses the same log format, so you can change the log file path in your parser config file (sarg, calamaris, etd.) or simply link the log directory of squid 3 to the correct path<br />
<code><br />
ln -s /var/log/squid3 /var/log/squid</code></p>
<p>Source : <a title="Kuscsik" href="http://kuscsik.blogspot.com/2008/01/transparent-proxy-with-squid-3-on.html" target="_blank">kuscsik</a></p>
<p><map name='google_ad_map_161_3db9945d9ae1c815'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/161?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_161_3db9945d9ae1c815' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=161&amp;url= http%3A%2F%2Fwww.osscc.org%2F2010%2F07%2Fhow-to-setup-transparent-squid-proxy-server-in-ubuntu%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.osscc.org/2010/07/how-to-setup-transparent-squid-proxy-server-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>To Bypass Transperent proxy for local Intranet</title>
		<link>http://www.osscc.org/2009/12/to-bypass-transperent-proxy-for-local-intranet/</link>
		<comments>http://www.osscc.org/2009/12/to-bypass-transperent-proxy-for-local-intranet/#comments</comments>
		<pubDate>Sat, 19 Dec 2009 22:44:00 +0000</pubDate>
		<dc:creator>osscc</dc:creator>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://www.osscc.org/2009/12/to-bypass-transperent-proxy-for-local-intranet/</guid>
		<description><![CDATA[By satishap Created 2008-05-21 06:43 Dear All,We have setup Squid proxy server in transparent mode so that every user is forced to browse the internet through squid proxy on 3128 port. Configuration is follows1) Squid and Firewall configured on same box on 172.18.0.51.2) Done all necessary setting required for Transparent Proxy.also it is working file. [...]]]></description>
			<content:encoded><![CDATA[<p>By <i>satishap</i>     
<div class="print-created">Created <i>2008-05-21 06:43</i></p>
</div>
<div class="print-content">Dear All,<br />We have setup Squid proxy server in transparent mode so that every user is forced to browse the internet through squid proxy on 3128 port.</p>
<p><b>Configuration is follows</b><br />1) Squid and Firewall configured on same box on 172.18.0.51.<br />2) Done all necessary setting required for Transparent Proxy.<br />also it is working file.</p>
<p>But my problem is that we have local intranet server on 172.21.0.4:80</p>
<p>In normal case without Transperent proxy manually assingning proxy address in Internet explorer proxy setting and clicking bypass proxy for local address we able to access intranet, but with Transperent proxy we r not able to access the same becuase which I suppose that all request is redirected to 3128 port( transperent proxy feature).</p>
<p>therefore We want to bypass transpernet proxy for local intranet so that<br />we can able to access 172.21.0.4 : 80 port. I thinks there must be iptable<br />rule which enables this, can anybody tell me how this is to done.</p>
</div>
<div class="print-footer"></div>
<hr class="print-hr" />
<div class="print-source_url"><b>Source URL:</b> <a href="http://www.linuxjournal.com/content/bypass-transperent-proxy-local-intranet">http://www.linuxjournal.com/content/bypass-transperent-proxy-local-intranet</a></div>
<p><b>Links:</b><br />[1] http://www.linuxjournal.com/content/dns-server<br />[2] http://www.linuxjournal.com/content/photo-gallery-software</p>
<p><map name='google_ad_map_168_3db9945d9ae1c815'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/168?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_168_3db9945d9ae1c815' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=168&amp;url= http%3A%2F%2Fwww.osscc.org%2F2009%2F12%2Fto-bypass-transperent-proxy-for-local-intranet%2F' /></p>]]></content:encoded>
			<wfw:commentRss>http://www.osscc.org/2009/12/to-bypass-transperent-proxy-for-local-intranet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

