<?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>Matheus Conceição &#187; remoto</title>
	<atom:link href="http://conceicao.eti.br/blog/tag/remoto/feed/" rel="self" type="application/rss+xml" />
	<link>http://conceicao.eti.br/blog</link>
	<description>TI, Linux, BSD, Redes, Futebol e outros!</description>
	<lastBuildDate>Thu, 15 Sep 2011 14:35:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
		<item>
		<title>Proxy transparente em outra máquina no PF</title>
		<link>http://conceicao.eti.br/blog/2010/05/25/proxy-transparente-em-outra-maquina-no-pf/</link>
		<comments>http://conceicao.eti.br/blog/2010/05/25/proxy-transparente-em-outra-maquina-no-pf/#comments</comments>
		<pubDate>Tue, 25 May 2010 20:18:32 +0000</pubDate>
		<dc:creator>Matheus</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[OpenBSD]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Firewall]]></category>
		<category><![CDATA[lusca]]></category>
		<category><![CDATA[PF]]></category>
		<category><![CDATA[Proxy]]></category>
		<category><![CDATA[remoto]]></category>
		<category><![CDATA[Squid]]></category>
		<category><![CDATA[transparente]]></category>

		<guid isPermaLink="false">http://conceicao.eti.br/blog/?p=42</guid>
		<description><![CDATA[Olá pessoal; Para fazer com que o seu proxy transparente fique em outra máquina, além da regra de redirecionamento da porta 80 para a porta do seu proxy, você deve fazer uma regra de nat também. &#160; No gateway/firewall da rede: 1. Defina a seguinte sysctl: sysctl net.inet.ip.redirect=0  Obs.: Não esqueça de definir a sysctl [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; font-size: 13px; line-height: 19px; white-space: normal;">Olá pessoal;</span><br />
Para fazer com que o seu proxy transparente fique em outra máquina, além da regra de redirecionamento da porta 80 para a porta do seu proxy, você deve fazer uma regra de nat também.</p>
<p>&nbsp;</p>
<p><strong>No gateway/firewall da rede:</strong></p>
<p style="padding-left: 30px;">1. Defina a seguinte sysctl:</p>
<pre class="brush:shell">sysctl net.inet.ip.redirect=0</pre>
<p style="padding-left: 30px;"><code><br />
</code> Obs.: Não esqueça de definir a sysctl no /etc/sysctl.conf</p>
<p style="padding-left: 30px;">2. Adicione a seguinte linha no PF:</p>
<pre class="brush:shell">
pass in quick on $int_if route-to ($int_if $IP_Proxy) proto tcp from ! $IP_Proxy to any port www
</pre>
</p>
<p>&nbsp;</p>
<p><strong>No servidor de proxy:</strong></p>
<p style="padding-left: 30px;">1. Defina a seguinte sysctl:</p>
<pre class="brush:shell">sysctl net.inet.ip.redirect=0</pre>
<p>Obs.: Não esqueça de definir a sysctl no /etc/sysctl.conf</p>
<p style="padding-left: 30px;">2. Faça a regra de redirecionamento de porta (80 para 3128) no PF:</p>
<pre class="brush:shell">
rdr inet proto tcp from ! $IP_Proxy to any port www -&gt; $IP_Proxy port 3128
</pre>
</p>
<p>T+;</p>
]]></content:encoded>
			<wfw:commentRss>http://conceicao.eti.br/blog/2010/05/25/proxy-transparente-em-outra-maquina-no-pf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

