<?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>Debian Tutorials &#187; proxy</title>
	<atom:link href="http://www.debiantutorials.com/tag/proxy/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.debiantutorials.com</link>
	<description>Copy/Paste tutorials for Debian based Linux distros</description>
	<lastBuildDate>Tue, 27 Dec 2011 01:15:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Installing and configuring Varnish HTTP accelerator</title>
		<link>http://www.debiantutorials.com/installing-and-configuring-varnish-http-accelerator/</link>
		<comments>http://www.debiantutorials.com/installing-and-configuring-varnish-http-accelerator/#comments</comments>
		<pubDate>Sun, 12 Sep 2010 22:35:15 +0000</pubDate>
		<dc:creator>aip</dc:creator>
				<category><![CDATA[Lenny]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[accelerator]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[varnish]]></category>

		<guid isPermaLink="false">http://www.debiantutorials.com/?p=355</guid>
		<description><![CDATA[Varnish is a state of the art web accelerator. Its mission is to sit in front of a web server an cache the content. It makes your web site go fast. 1. Install Varnish apt-get install varnish 2. Configure the backend (pico /etc/varnish/default.vcl) backend default { set backend.host = "157.166.224.26"; set backend.port = "80"; } [...]]]></description>
			<content:encoded><![CDATA[<p>Varnish is a state of the art web accelerator. Its mission is to sit in front of a web server an cache the content. It makes your web site go fast.</p>
<p>1. Install Varnish</p>
<p><code>apt-get install varnish<br />
</code><span id="more-355"></span></p>
<p>2. Configure the backend (pico /etc/varnish/default.vcl)</p>
<p><code>backend default {<br />
        set backend.host = "157.166.224.26";<br />
        set backend.port = "80";<br />
}<br />
</code></p>
<p><em>This will be the server containing the actual web site published to the users. I'm using the IP address for cnn.com for testing.</em></p>
<p>3. Configure deamon options for varnish to use the default.vcl (pico /etc/default/varnish)</p>
<p>Comment out the following lines: (lines 21 - 25)</p>
<p><code>#DAEMON_OPTS="-a :6081 \<br />
#             -T localhost:6082 \<br />
#             -b localhost:8080 \<br />
#             -u varnish -g varnish \<br />
#             -s file,/var/lib/varnish/$INSTANCE/varnish_storage.bin,1G"<br />
</code></p>
<p>Remove the comment blocks from these lines: (34 - 37)</p>
<p><code>DAEMON_OPTS="-a :6081 \<br />
              -T localhost:6082 \<br />
              -f /etc/varnish/default.vcl \<br />
              -s file,/var/lib/varnish/$INSTANCE/varnish_storage.bin,1G"<br />
</code></p>
<p><em>By default, Varnish listens on port 6081 as specified in the -a parameter but for production you probably want to use port 80.</em></p>
<p>4. Restart Varnish</p>
<p><code>/etc/init.d/varnish restart<br />
</code></p>
<p>5. Test by entering this location in a web browser: http://yourserver:6081.</p>
<p><em>Replace yourserver with your server's hostname or IP address</em></p>
<p>This is just a simple setup but you can set up multiple backends and do some advanced configurations. <a href="http://www.varnish-cache.org/docs/2.1/" target="_blank">Here's the Varnish documentation</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.debiantutorials.com/installing-and-configuring-varnish-http-accelerator/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing HAVP (HTTP Antivirus Proxy)</title>
		<link>http://www.debiantutorials.com/installing-havp-http-antivirus-proxy/</link>
		<comments>http://www.debiantutorials.com/installing-havp-http-antivirus-proxy/#comments</comments>
		<pubDate>Sun, 13 Jun 2010 06:50:05 +0000</pubDate>
		<dc:creator>aip</dc:creator>
				<category><![CDATA[Lenny]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[clamav]]></category>
		<category><![CDATA[havp]]></category>
		<category><![CDATA[proxy]]></category>

		<guid isPermaLink="false">http://www.debiantutorials.net/?p=315</guid>
		<description><![CDATA[HAVP (HTTP Antivirus Proxy) is a proxy with a ClamAV anti-virus scanner. The main aims are continuous, non-blocking downloads and smooth scanning of dynamic and password protected HTTP traffic. Havp antivirus proxy has a parent and transparent proxy mode. It can be used with squid or standalone. 1. Install HAVP apt-get install havp 2. Start [...]]]></description>
			<content:encoded><![CDATA[<p>HAVP (HTTP Antivirus Proxy) is a proxy with a ClamAV anti-virus scanner. The main aims are continuous, non-blocking downloads and smooth scanning of dynamic and password protected HTTP traffic. Havp antivirus proxy has a parent and transparent proxy mode. It can be used with squid or standalone.</p>
<p>1. Install HAVP</p>
<p><code>apt-get install havp<br />
</code><span id="more-315"></span></p>
<p>2. Start HAVP if it didn't start after the installation</p>
<p><code>/etc/init.d/havp start<br />
</code></p>
<p>It's ready, by default HAVP listens on port 8080. You can configure your web browser to use the server as a proxy.</p>
<p>You can customize the error pages by editing the html files in this directory: /etc/havp/templates/en/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.debiantutorials.com/installing-havp-http-antivirus-proxy/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Installing nginx from source with mail support</title>
		<link>http://www.debiantutorials.com/installing-nginx-from-source-with-mail-support/</link>
		<comments>http://www.debiantutorials.com/installing-nginx-from-source-with-mail-support/#comments</comments>
		<pubDate>Mon, 29 Mar 2010 23:14:33 +0000</pubDate>
		<dc:creator>aip</dc:creator>
				<category><![CDATA[Lenny]]></category>
		<category><![CDATA[Mail]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[proxy]]></category>

		<guid isPermaLink="false">http://www.debiantutorials.net/?p=251</guid>
		<description><![CDATA[nginx is a lightweight, high performance web server/reverse proxy and e-mail (SMTP/IMAP/POP3) proxy. 1. Install required packages apt-get install build-essential autotools-dev debhelper libpcre3-dev zlib1g-dev libssl-dev 2. Receive the nginx source apt-get source nginx 3. Enable the mail modules cd nginx-x.x.x pico debian/rules Replace nginx-x.x.x with the correct folder created. Add "--with-mail --with-mail_ssl_module" to the line [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.debiantutorials.net/wp-content/uploads/2010/03/nginx-logo.png" alt="nginx" title="nginx" width="175" height="45" class="alignright size-full wp-image-253" />nginx is a lightweight, high performance web server/reverse proxy and e-mail (SMTP/IMAP/POP3) proxy.</p>
<p>1. Install required packages</p>
<p><code>apt-get install build-essential autotools-dev debhelper libpcre3-dev zlib1g-dev libssl-dev<br />
</code><span id="more-251"></span></p>
<p>2. Receive the nginx source</p>
<p><code>apt-get source nginx<br />
</code></p>
<p>3. Enable the mail modules</p>
<p><code>cd nginx-x.x.x<br />
pico debian/rules<br />
</code></p>
<p><em>Replace nginx-x.x.x with the correct folder created.</em></p>
<p>Add "--with-mail --with-mail_ssl_module" to the line starting with ./configure so that it looks something like this:</p>
<p><code>./configure $(CONFIGURE_OPTS) --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --pid-path=/var/run/nginx.pid --lock-path=/var/lock/nginx.lock   --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/lib/nginx/body --http-proxy-temp-path=/var/lib/nginx/proxy --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --with-debug --with-http_stub_status_module --with-http_flv_module --with-http_ssl_module --with-http_dav_module --with-mail --with-mail_ssl_module<br />
</code></p>
<p>4. Build the package</p>
<p><code>dpkg-buildpackage<br />
</code></p>
<p>5. Install the new nginx package</p>
<p><code>dpkg -i ../nginx_x.x.x-x.deb<br />
</code></p>
<p><em>Replace nginx_x.x.x-x.deb with the correct version and platform. In my case the filename is: nginx_0.6.32-3+lenny3_amd64.deb</em></p>
<p>6. Configure nginx</p>
<p>Next step is to configure the nginx rules. That's outside the scope of this tutorial.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.debiantutorials.com/installing-nginx-from-source-with-mail-support/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing and configuring Squid proxy server</title>
		<link>http://www.debiantutorials.com/installing-and-configuring-squid-proxy-server/</link>
		<comments>http://www.debiantutorials.com/installing-and-configuring-squid-proxy-server/#comments</comments>
		<pubDate>Fri, 25 Dec 2009 23:05:25 +0000</pubDate>
		<dc:creator>aip</dc:creator>
				<category><![CDATA[Etch]]></category>
		<category><![CDATA[Lenny]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[squid]]></category>

		<guid isPermaLink="false">http://www.debiantutorials.net/installing-and-configuring-squid-proxy-server/</guid>
		<description><![CDATA[Squid is a caching proxy 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. 1. Install the Squid package apt-get install squid 2. Allow your ip network to use the proxy server (pico [...]]]></description>
			<content:encoded><![CDATA[<p>Squid is a caching proxy 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>1. Install the Squid package</p>
<p><code>apt-get install squid<br />
</code><span id="more-218"></span></p>
<p>2. Allow your ip network to use the proxy server (pico /etc/squid/squid.conf). Append lines similar to these to your config </p>
<p>file:</p>
<p><code>acl mynetwork src 192.168.1.0/255.255.255.0<br />
http_access allow mynetwork<br />
</code></p>
<p><em>Replace 192.168.1.0/255.255.255.0 with the network that should be able to use the proxy.</em></p>
<p>3. Don't forward client ip information (optional)</p>
<p><code>forwarded_for off<br />
</code></p>
<p>4. Restart the daemon</p>
<p><code>/etc/init.d/squid restart<br />
</code></p>
<p>5. Configure your web browser or application your would like to use the proxy server to connect to serverip at port 3128.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.debiantutorials.com/installing-and-configuring-squid-proxy-server/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Simple load balancing using Pound</title>
		<link>http://www.debiantutorials.com/simple-load-balancing-using-pound/</link>
		<comments>http://www.debiantutorials.com/simple-load-balancing-using-pound/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 20:30:47 +0000</pubDate>
		<dc:creator>aip</dc:creator>
				<category><![CDATA[Lenny]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[load balancing]]></category>
		<category><![CDATA[pound]]></category>
		<category><![CDATA[proxy]]></category>

		<guid isPermaLink="false">http://www.debiantutorials.net/?p=213</guid>
		<description><![CDATA[The Pound program is a reverse proxy, load balancer and HTTPS front-end for Web server(s). Pound was developed to enable distributing the load among several Web-servers and to allow for a convenient SSL wrapper for those Web servers that do not offer it natively. 1. Install the pound package apt-get install pound 2. Configure the [...]]]></description>
			<content:encoded><![CDATA[<p>The Pound program is a reverse proxy, load balancer and HTTPS front-end for Web server(s). Pound was developed to enable distributing the load among several Web-servers and to allow for a convenient SSL wrapper for those Web servers that do not offer it natively.</p>
<p>1. Install the pound package</p>
<p><code>apt-get install pound<br />
</code><span id="more-213"></span></p>
<p>2. Configure the load balancing. Replace everything below and including ListenHTTP with something like this: (pico /etc/pound/pound.cfg)</p>
<p><code>ListenHTTP<br />
&nbsp;&nbsp;Address 0.0.0.0<br />
&nbsp;&nbsp;Port 80<br />
&nbsp;&nbsp;xHTTP 0<br />
&nbsp;<br />
&nbsp;&nbsp;Service<br />
&nbsp;&nbsp;&nbsp;&nbsp;HeadRequire "Host: .*www.google.com.*"<br />
&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;BackEnd<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Address 209.85.227.103<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Port 80<br />
&nbsp;&nbsp;&nbsp;&nbsp;End<br />
&nbsp;&nbsp;&nbsp;&nbsp;BackEnd<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Address 209.85.227.104<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Port 80<br />
&nbsp;&nbsp;&nbsp;&nbsp;End<br />
&nbsp;&nbsp;&nbsp;&nbsp;BackEnd<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Address 209.85.227.105<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Port 80<br />
&nbsp;&nbsp;&nbsp;&nbsp;End<br />
&nbsp;&nbsp;&nbsp;&nbsp;BackEnd<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Address 209.85.227.106<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Port 80<br />
&nbsp;&nbsp;&nbsp;&nbsp;End<br />
&nbsp;&nbsp;End<br />
End<br />
</code></p>
<p><em>In this example we'll be listening for www.google.com and forward requests to 4 of Google's web servers/clusters. You can of course replace the domain with one of your own and point it to any servers. The servers can be on different networks, using different platforms and you can even forward different paths to different servers. Ex. www.google.com/apps could be forwarded to 1.2.3.4 while www.google.com is forwarded to 2.3.4.5. <a href="http://www.apsis.ch/pound/" target="_blank">Click here for more details about Pound</a></em> </p>
<p>3. Enable the Pound service (pico /etc/default/pound)</p>
<p><code>startup=1<br />
</code></p>
<p>4. Restart Pound</p>
<p><code>/etc/init.d/pound start<br />
</code></p>
<p>You must point the dns record for www.google.com to your server's IP address. You could use the hosts file to do this or use another domain.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.debiantutorials.com/simple-load-balancing-using-pound/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
