<?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>Fernando Luis &#187; gateway</title>
	<atom:link href="http://www.fernandoluis.com/tag/gateway/feed" rel="self" type="application/rss+xml" />
	<link>http://www.fernandoluis.com</link>
	<description>Fernando Luis security linux  debian fotografia</description>
	<lastBuildDate>Wed, 17 Aug 2011 12:25:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Rutado en función del servicio</title>
		<link>http://www.fernandoluis.com/rutado-en-funcion-del-servicio/2009/02</link>
		<comments>http://www.fernandoluis.com/rutado-en-funcion-del-servicio/2009/02#comments</comments>
		<pubDate>Tue, 17 Feb 2009 08:26:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[gateway]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[route]]></category>

		<guid isPermaLink="false">http://www.fernandoluis.com/wordpress/?p=27</guid>
		<description><![CDATA[<p>No siempre existe una único gateway, hay condiciones en la cual, es conveniente establecer rutas en función de los servicios demandados.</p>
<p>Un ejemplo sencillo sería el siguiente:</p>
<p>ip route add default via 192.168.1.1</p>
<p>ip route add default via 192.168.1.1 table 1</p>
<p>ip route add default via 192.168.2.1 table 2</p>
<p>ip rule add fwmark 0&#215;1 table 2</p>
<p>iptables -t mangle -A OUTPUT [...]]]></description>
			<content:encoded><![CDATA[<p>No siempre existe una único gateway, hay condiciones en la cual, es conveniente establecer rutas en función de los servicios demandados.</p>
<p>Un ejemplo sencillo sería el siguiente:</p>
<p>ip route add default via 192.168.1.1</p>
<p>ip route add default via 192.168.1.1 table 1</p>
<p>ip route add default via 192.168.2.1 table 2</p>
<p>ip rule add fwmark 0&#215;1 table 2</p>
<p>iptables -t mangle -A OUTPUT -p tcp &#8211;dport 80 -j MARK &#8211;set-mark 0&#215;1</p>
<p>Con ello, todas las conexiones salientes hacia el puerto 80, serán enrutadas mediante el gw 192.168.2.1 y el resto de servicios lo hará por 192.168.1.1</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fernandoluis.com/rutado-en-funcion-del-servicio/2009/02/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

