<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Soldat&#039;s log &#187; iptables</title>
	<atom:link href="http://blog.chernando.eu/tag/iptables/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.chernando.eu</link>
	<description>Simplemente otro blog personal</description>
	<lastBuildDate>Thu, 22 Jul 2010 20:09:59 +0000</lastBuildDate>
	<language>es</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.chernando.eu' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/0eb8b53f0c14a196e38f0abba5641993?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>Soldat&#039;s log &#187; iptables</title>
		<link>http://blog.chernando.eu</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.chernando.eu/osd.xml" title="Soldat&#039;s log" />
	<atom:link rel='hub' href='http://blog.chernando.eu/?pushpress=hub'/>
		<item>
		<title>iptables, configuraciones básicas</title>
		<link>http://blog.chernando.eu/2005/12/04/iptables-configuraciones-basicas/</link>
		<comments>http://blog.chernando.eu/2005/12/04/iptables-configuraciones-basicas/#comments</comments>
		<pubDate>Sun, 04 Dec 2005 17:40:16 +0000</pubDate>
		<dc:creator>chernando</dc:creator>
				<category><![CDATA[*NIX]]></category>
		<category><![CDATA[Seguridad]]></category>
		<category><![CDATA[dnat]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[nat]]></category>
		<category><![CDATA[proxy]]></category>

		<guid isPermaLink="false">http://chernando.wordpress.com/2005/12/04/iptables-configuraciones-basicas/</guid>
		<description><![CDATA[El pasado 24 de noviembre durante la charla de redes tratamos algunas configuraciones básicas de iptables que siempre viene bien tener a mano: Enmascarar el tráfico de nuestra red local: iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE Hacer uso de un proxy transparente: iptables -t nat -A PREROUTING -i eth1 -p tcp --dport [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.chernando.eu&blog=827394&post=5&subd=chernando&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>El pasado 24 de noviembre durante la <a href="http://acm.asoc.fi.upm.es/~chernando/doc/netadmin-slides/">charla de redes</a> tratamos algunas configuraciones básicas de iptables que siempre viene bien tener a mano:</p>
<ul>
<li>Enmascarar el tráfico de nuestra red local:<br />
<code>iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE</code></li>
<li>Hacer uso de un proxy transparente:<br />
<code>iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j DNAT --to 192.168.0.1:8080</code></li>
<li>Redirigir tráfico entrante a un servidor interno:<br />
<code>iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to 192.168.0.1:80</code></li>
</ul>
<p>Además <a href="http://www.vitavonni.de/">Erich Schubert</a> comenta en su blog una nueva funcionalidad de iptables que permite, por ejemplo, <a href="http://blog.drinsama.de/erich/en/linux/2005120301-filtering-bittorrent.html">filtrar BitTorrent</a> y <a href="http://blog.drinsama.de/erich/en/linux/2005120402-firewalls.html">un esquema básico de cortafuegos</a> del que voy a hacer redundancia aquí:<br />
<code>*filter<br />
:INPUT DROP<br />
:FORWARD DROP<br />
:OUTPUT ACCEPT<br />
-A INPUT -i lo -j ACCEPT<br />
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT<br />
COMMIT<br />
</code></p>
<p>Un esquema  muy resumido y cómodo para máquinas en las que tengamos confianza en el tráfico que se genera.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/chernando.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/chernando.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chernando.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chernando.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chernando.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chernando.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chernando.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chernando.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chernando.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chernando.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chernando.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chernando.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.chernando.eu&blog=827394&post=5&subd=chernando&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.chernando.eu/2005/12/04/iptables-configuraciones-basicas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/062f1c6b266029372b1705c017069e68?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chernando</media:title>
		</media:content>
	</item>
	</channel>
</rss>