<?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>Sin ambición</title>
	<atom:link href="http://www.guero.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.guero.net</link>
	<description>Detalles técnicos del mundo del desarrollo web y sistemas, proyectos y opinión.</description>
	<lastBuildDate>Wed, 10 Feb 2010 19:29:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Google y su fibra óptica &#124; Ante las tonterías una gran acción</title>
		<link>http://www.guero.net/2010/02/google-fibra-optica-gran-accion/</link>
		<comments>http://www.guero.net/2010/02/google-fibra-optica-gran-accion/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 19:29:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[humor]]></category>
		<category><![CDATA[epic 2015]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[neutralidad en la red]]></category>
		<category><![CDATA[patronal del comercio electrónico]]></category>
		<category><![CDATA[terratenientes internet]]></category>

		<guid isPermaLink="false">http://www.guero.net/?p=166</guid>
		<description><![CDATA[En el anterior post comentaba la idea más tonta que han tenido las operadoras españolas en los últimos meses, pero se ve que no es solo cosa de las españolas. Así que continuo con el cachondeo:
Luego,

La Patronal del comercio electrónico contra el cobro a los negocios en Red
Como ya comentó Amadeu Abril, profesor de la [...]]]></description>
			<content:encoded><![CDATA[<p>En el anterior post comentaba la <a title="Neutralidad en la red" href="http://www.guero.net/2010/02/neutralidad-en-la-red/">idea más tonta que han tenido las operadoras </a>españolas en los últimos meses, pero se ve que no es solo cosa de las españolas. Así que continuo con el cachondeo:</p>
<p>Luego,</p>
<blockquote>
<h2><a href="http://www.elmundo.es/elmundo/2010/02/10/comunicacion/1265823691.html" target="_blank">La Patronal del comercio electrónico contra el cobro a los negocios en Red</a></h2>
<p>Como ya comentó Amadeu Abril, profesor de la Facultad de Derecho de ESADE, y Manent apoya,<strong> &#8220;es como si la empresa que gestiona una autopista cobrara al hotel donde un turista que pasa por la autopista va de vacaciones&#8221;.</strong></p></blockquote>
<p>Luego,</p>
<blockquote>
<h2><a href="http://www.fayerwayer.com/2010/02/google-planea-ofrecer-enlaces-de-1-gigabit/?utm_source=feedburner&amp;utm_medium=feed&amp;utm_campaign=Feed:+fayerwayer+(FayerWayer)" target="_blank">Google planea ofrecer enlaces de 1 Gigabit</a></h2>
<p>El objetivo es entregar una velocidad de Internet 100 veces más rápidas que las conexiones americanas actuales, es decir enlaces de <a href="http://es.wikipedia.org/wiki/Fibra_óptica" target="_blank">fibra óptica</a> de 1 Gigabit por segundo para los hogares.</p></blockquote>
<p>Luego,</p>
<blockquote>
<h2>Telefónica quiebra por intentar hacer de &#8220;terrateniente de internet&#8221;</h2>
<p>Pero Google tiro sus propios cables y antenas. Las otras telecos traidoras permitieron la tiranía del <a href="http://www.youtube.com/watch?v=ff_AGfFxiPk">google grid</a> (epic)</p></blockquote>
<p style="text-align: center;"><!-- Smart Youtube --><span class="youtube"><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/fFmCT-B8TTw&amp;rel=1&amp;color1=d6d6d6&amp;color2=f0f0f0&amp;border=&amp;fs=1&amp;hl=en&amp;autoplay=&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0" /><param name="allowFullScreen" value="true" /><embed wmode="transparent" src="http://www.youtube.com/v/fFmCT-B8TTw&amp;rel=1&amp;color1=d6d6d6&amp;color2=f0f0f0&amp;border=&amp;fs=1&amp;hl=en&amp;autoplay=&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="355" ></embed><param name="wmode" value="transparent" /></object></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.guero.net/2010/02/google-fibra-optica-gran-accion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Neutralidad en la red o como meter la mano donde está el dinero</title>
		<link>http://www.guero.net/2010/02/neutralidad-en-la-red/</link>
		<comments>http://www.guero.net/2010/02/neutralidad-en-la-red/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 09:39:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[humor]]></category>
		<category><![CDATA[financiación rtve]]></category>
		<category><![CDATA[impuesto telecos]]></category>
		<category><![CDATA[neutralidad en la red]]></category>

		<guid isPermaLink="false">http://www.guero.net/?p=148</guid>
		<description><![CDATA[España instaura un canon para poder financiar a los creadores de cultura, además quien cerrar cualquier sitio que difunda copias privadas (cueste lo que cueste)
La UE va a multar a Francia por el impuesto a las telecos que financiarán su televisión, lo mismo pasa con España.
César Alierta (presidente de telefónica) dice que todos los que venden servicios por Internet lo [...]]]></description>
			<content:encoded><![CDATA[<p>España instaura un <a href="http://es.wikipedia.org/wiki/Canon_por_copia_privada_(España)">canon</a> para poder financiar a los creadores de cultura, además quien <a href="http://www.rtve.es/noticias/20091201/cultura-podra-cerrar-webs-descarga-sin-necesidad-autorizacion-judicial/303790.shtml">cerrar cualquier sitio</a> que difunda copias privadas (<a href="http://www.guero.net/2009/12/manifiesto-“en-defensa-de-los-derechos-fundamentales-en-internet”/">cueste lo que cueste</a>)</p>
<p>La <a href="http://europa.eu/rapid/pressReleasesAction.do?reference=IP/10/67&amp;format=HTML&amp;aged=0&amp;language=ES&amp;guiLanguage=en">UE va a multar a Francia</a> por el impuesto a las telecos que financiarán su televisión, <a href="http://www.elmundo.es/elmundo/2010/01/30/comunicacion/1264877981.html">lo mismo pasa con España</a>.</p>
<p><a href="http://cesaralierta.telefonica.es/">César Alierta</a> (presidente de telefónica) dice que <a href="http://www.eitb.com/videos/noticias/tecnologia/detalle/349899/alierta-telefonica-advierte-buscadores-internet-tendran-pagar/">todos los que venden servicios por Internet lo hacen gracias a el y las otras telecos</a>. Google, Apple, Microsoft, etc.. existen gracias a las operadoras de internet y por lo tanto las telecos piden una parte del pastel de beneficios que obtienen todas estas empresas. ¿Para que pago yo mi ADSL? Como comenta <a href="http://www.enriquedans.com/2010/02/alierta-y-la-neutralidad-de-la-red-reacciones.html">Enrique Dans</a> buscan facturar por dos vías, es decir, vender el mismo servicio dos veces.</p>
<ul>
<li>Ciudadanos / Clientes queremos consumir contenidos (libros, música, noticias&#8230;)</li>
<li>Luego, las <strong>telecos</strong> ponen la fibra para que se pueda transmitir todo eso por un cable (y nos cobran por ello &#8211; 0,15€ por un SMS de 120 caracteres)</li>
<li>Luego, las empresas que crean <strong>aplicaciones</strong>: google lo organiza para que lo podamos encontrar, facebook nos facilita que lo comuniquemos nosotros mismos, twitter nos da inmediatez&#8230; (y cobran de la publicidad o por el servicio)</li>
<li>Luego, los que crean <strong>contenidos</strong> no están cobrando (al menos no como antes, sentados y recibiendo dinero por cada CD)</li>
<li>Luego, el <strong>gobierno</strong> cobra a las <strong>telecos</strong> y a todos los ciudadanos para financiar a los que crean contenidos (según ellos; como televisión española)</li>
<li>Luego, las <strong>telecos</strong> quieren cobrar a los de las <strong>aplicaciones</strong> que utilizan sus redes (google, yahoo,&#8230;)</li>
<li>Luego, las <strong>eléctricas</strong> van pedir una parte del pastel a las <strong>telecos</strong> porque sus routers y servidores funcionan porque ellos les dan electricidad</li>
<li>Luego, los <strong>transportistas</strong> les pedirán una parte del pastel a los <strong>restaurantes</strong> porque pueden cocinar gracias a que ellos les llevan la comida</li>
<li>Luego, las <strong>telecos</strong> le cobrarán a <strong>meneame</strong> 0,05€ por cada meneo ya que estos llegan por sus redes y las <strong>electricas</strong> otros 0,05€ porque los ordenadores de los que hacen los menos funcionan gracias a ellos y Linus Torvalds le pedirá 1,50€ como canon por el kernel de linux al que le han sacado tanto provecho&#8230; el meneo está a 1,60€&#8230;</li>
<li>Luego, ¿se les va la olla?</li>
</ul>
<h2>¿Para que innovar y buscar nuevos modelos de negocio si les podemos pedir/robar una parte del pastel a los que innovan o a los consumidores por consumir&#8230;?</h2>
]]></content:encoded>
			<wfw:commentRss>http://www.guero.net/2010/02/neutralidad-en-la-red/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jazztel televisión &#124; Jazztelia TV es un desastre!</title>
		<link>http://www.guero.net/2010/02/jazztel-television-jazztelia-desastre/</link>
		<comments>http://www.guero.net/2010/02/jazztel-television-jazztelia-desastre/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 16:38:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Opinion]]></category>
		<category><![CDATA[jazztel]]></category>
		<category><![CDATA[jazztel televisión]]></category>
		<category><![CDATA[jazztel tv]]></category>
		<category><![CDATA[jazztelia]]></category>

		<guid isPermaLink="false">http://www.guero.net/?p=143</guid>
		<description><![CDATA[Hace tiempo que utilizamos la ADSL de Jazztel de 20M, funciona muy bien. No llega a los 20M pero si 15 o 16 y a un precio mucho mejor que la competencia, incluso en alguna incidencia se han comunicado y lo han resuelto rápidamente.
Una historia muy distinta es con Jazztelia TV, la televisión por IP de Jazzatel. [...]]]></description>
			<content:encoded><![CDATA[<p>Hace tiempo que utilizamos la ADSL de Jazztel de 20M, funciona muy bien. No llega a los 20M pero si 15 o 16 y a un precio mucho mejor que la competencia, incluso en alguna incidencia se han comunicado y lo han resuelto rápidamente.</p>
<p>Una historia muy distinta es con Jazztelia TV, la televisión por IP de Jazzatel. <strong>Es un producto extremadamente cutre</strong>.</p>
<ul>
<li>El receptor (o decodificador) es muy antiguo</li>
<li>No soporta formato 16:9</li>
<li>La calidad de la imagen es mala (aun que ellos dicen que es calidad DVD)</li>
<li>Tienen muchos cortes en la imagen</li>
<li><strong>Tarda 5 segundos en cambiar de canal</strong></li>
<li><strong>Y lo mejor, es que para evitar problemas de ancho de banda te limitan los 20M <span style="color: #ff6600;">a solo 5M</span></strong></li>
<li>Además de que no te avisan de nada de esto, te juran que tienes 5M aun que en el router se puede ver claramente la limitación (en la configuración de la WAN dice a que velocidad se ha &#8220;negociado&#8221; la conexión)</li>
</ul>
<p>A mi me parece que intentan dar un servicio para que no están preparados porque su competencia ya lo está dando (mejor o peor &#8211; imagenio también es una porquería). Esto es una tomadura de pelo porque no informan ni aun que se lo preguntes.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.guero.net/2010/02/jazztel-television-jazztelia-desastre/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Una jornada laboral más razonable, sin merendolas..</title>
		<link>http://www.guero.net/2010/02/una-jornada-laboral-mas-razonable-sin-merendolas/</link>
		<comments>http://www.guero.net/2010/02/una-jornada-laboral-mas-razonable-sin-merendolas/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 16:24:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Opinion]]></category>
		<category><![CDATA[jornada laboral]]></category>

		<guid isPermaLink="false">http://www.guero.net/?p=140</guid>
		<description><![CDATA[
Piden que España adopte el horario portugués para mejorar la conciliación
&#8230;con el fin de cambiar el &#8220;singular horario español, que no beneficia a nadie y que tiene como resultado trabajadores estresados y desmotivados, baja productividad, familias desestructuradas, menores desatendidos, altos niveles de siniestralidad&#8230;&#8221;.
Por fin empiezan a tomarse enserio el tema de los horarios, hace mucho [...]]]></description>
			<content:encoded><![CDATA[<blockquote>
<h2><a title="Piden que España adopte el horario portugués para mejorar la conciliación" href="http://www.elmundo.es/elmundo/2010/01/28/espana/1264681559.html" target="_blank">Piden que España adopte el horario portugués para mejorar la conciliación</a></h2>
<p>&#8230;con el fin de cambiar el <strong>&#8220;singular horario español, que no beneficia a nadie y que tiene como resultado trabajadores estresados y desmotivados, baja productividad, familias desestructuradas, menores desatendidos, altos niveles de siniestralidad&#8230;&#8221;</strong>.</p></blockquote>
<p>Por fin empiezan a tomarse enserio el tema de los horarios, hace mucho tiempo que sabe que España es el país menos productivo de la Unión Europea y en el que más horas pasa en la oficina. Me quedo con una frase de <a title="Piden que España retrase una hora su reloj para mejorar la conciliación laboral" href="http://www.20minutos.es/noticia/617135/0/espana/retrasar/reloj/" target="_blank">20minutos.es</a> sobre este tema:</p>
<blockquote><p><strong>&#8220;En ningn pas europeo se hace pausa para el caf, se sale de casa bien desayunado&#8221;</strong></p>
<p>&#8220;Lo que nos preocupa es que nuestros horarios no facilitan la conciliacin de la vida personal y laboral, crean problemas en la productividad&#8221;, dice Buqueras. &#8220;Somos el pas de la UE en donde <strong>más horas se pasa en el trabajo, más de 200 horas por encima de la media anual</strong>&#8220;.</p></blockquote>
<p>A ver si empezamos a echar <em><strong>horas de calidad</strong></em><strong> </strong>(como dice un amigo) y no cantidad de horas.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.guero.net/2010/02/una-jornada-laboral-mas-razonable-sin-merendolas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Proyecciones urbanas: Palma de Mallorca 2010 (Plaza de Cort)</title>
		<link>http://www.guero.net/2010/01/proyecciones-urbanas-palma-de-mallorca-2010-plaza-de-cort/</link>
		<comments>http://www.guero.net/2010/01/proyecciones-urbanas-palma-de-mallorca-2010-plaza-de-cort/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 11:01:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[palma de mallorca]]></category>
		<category><![CDATA[plaza de cort]]></category>
		<category><![CDATA[proyecciones urbanas]]></category>
		<category><![CDATA[san sebastia 2010]]></category>

		<guid isPermaLink="false">http://www.guero.net/?p=132</guid>
		<description><![CDATA[No había visto una proyección en un edificio, por lo que nos sabría decir si fue buena o mala. A mi me gusto mucho, en algunas escenas daba la sensación de que lo podías tocar. No fue mucha gente a verlo pero creo que es porque nadie sabía exactamente que es lo que hacían así creo que [...]]]></description>
			<content:encoded><![CDATA[<p>No había visto una proyección en un edificio, por lo que nos sabría decir si fue buena o mala. A mi me gusto mucho, en algunas escenas daba la sensación de que lo podías tocar. No fue mucha gente a verlo pero creo que es porque nadie sabía exactamente que es lo que hacían así creo que merece ser difundido.</p>
<p style="text-align: center;"><a href="http://www.fotocommunity.es/pc/pc/cat/8552/display/19942708" target="_blank"><img class="aligncenter size-medium wp-image-133" title="Ferran Petit (Cort 2010)" src="http://www.guero.net/wp-content/uploads/2010/01/CORT-7-a19942708-300x152.jpg" alt="Ferran Petit (Cort 2010)" width="300" height="152" /></a></p>
<p style="text-align: center;"><!-- Smart Youtube --><span class="youtube"><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/uRHLzjDEfgU&amp;rel=1&amp;color1=d6d6d6&amp;color2=f0f0f0&amp;border=&amp;fs=1&amp;hl=en&amp;autoplay=&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0" /><param name="allowFullScreen" value="true" /><embed wmode="transparent" src="http://www.youtube.com/v/uRHLzjDEfgU&amp;rel=1&amp;color1=d6d6d6&amp;color2=f0f0f0&amp;border=&amp;fs=1&amp;hl=en&amp;autoplay=&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="355" ></embed><param name="wmode" value="transparent" /></object></span></p>
<p>Enlaces:</p>
<p><a href="http://www.fotocommunity.es/pc/pc/cat/8552/display/19942806" target="_blank">Ferran Petit (fotografías)</a></p>
<p><a title="Explosión de color en Cort" href="http://www.diariodemallorca.es/palma/2010/01/22/explosion-color-cort/539285.html" target="_blank">Explosin de color en Cort (diario de mallorca)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.guero.net/2010/01/proyecciones-urbanas-palma-de-mallorca-2010-plaza-de-cort/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Red SOStenible</title>
		<link>http://www.guero.net/2010/01/red-sostenible/</link>
		<comments>http://www.guero.net/2010/01/red-sostenible/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 13:02:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.guero.net/?p=126</guid>
		<description><![CDATA[Consideramos imprescindible la retirada de la disposición final primera de la Ley de Economía Sostenible por los siguientes motivos:
1 -Viola los derechos constitucionales en los que se ha de basar un estado democrático en especial la presunción de inocencia, libertad de expresión, privacidad, inviolabilidad domiciliaria, tutela judicial efectiva, libertad de mercado, protección de consumidoras y [...]]]></description>
			<content:encoded><![CDATA[<p>Consideramos imprescindible la retirada de la disposición final primera de la Ley de Economía Sostenible por los siguientes motivos:</p>
<p>1 -Viola los derechos constitucionales en los que se ha de basar un estado democrático en especial la presunción de inocencia, libertad de expresión, privacidad, inviolabilidad domiciliaria, tutela judicial efectiva, libertad de mercado, protección de consumidoras y consumidores, entre otros.</p>
<p>2 &#8211; Genera para la Internet un estado de excepción en el cual la ciudadanía será tratada mediante procedimientos administrativos sumarísimos reservados por la Audiencia Nacional a narcotraficantes y terroristas.</p>
<p>3 &#8211; Establece un procedimiento punitivo “a la carta” para casos en los que los tribunales ya han manifestado que no constituían delito, implicando incluso la necesidad de modificar al menos 4 leyes, una de ellas orgánica. Esto conlleva un cambio radical en el sistema jurídico y una fuente de inseguridad para el sector de las TIC (Tecnología de la Información y la Comunicación). Recordamos, en este sentido, que el intercambio de conocimiento y cultura en la red es un <a href="http://noticias.lainformacion.com/economia-negocios-y-finanzas/redes/los-usuarios-que-descargan-archivos-p2p-gastan-mas-dinero_Fo58z3eGxWsRG0NKpjhCE7/" target="_blank">motor económico</a> importante para <a href="http://noticias.lainformacion.com/arte-cultura-y-espectaculos/cine/el-cine-espanol-cerrara-con-cifras-record-a-pesar-de-internet_uVFrhCBCXhYPTF51YCG3a7/" target="_blank">salir de la crisis</a> como se ha <a href="http://www.theinquirer.es/2009/11/17/lo-que-las-discograficas-ocultan.html" target="_blank">demostrado</a> <a href="http://www.elmundo.es/elmundo/2009/11/20/cultura/1258739927.html" target="_blank">ampliamente.</a></p>
<p>4 &#8211; Los mecanismos preventivos urgentes de los que dispone la ley y la judicatura son para proteger a toda ciudadanía frente a riesgos tan graves como los que afectan a la salud pública. El gobierno pretende utilizar estos mismos mecanismos de protección global para beneficiar intereses particulares frente a la ciudadanía. Además la normativa introducirá el concepto de &#8220;lucro indirecto&#8221;, es decir: a mí me pueden cerrrar el blog porque &#8220;promociono&#8221; a uno que &#8220;promociona&#8221; a otro que linka a un tercero que hace negocios presuntamente ilícitos</p>
<p>5 &#8211; Recordamos que la propiedad intelectual <a href="http://derechoynormas.blogspot.com/2010/01/la-ley-de-ejecucion-por-la-sospecha.html" target="_blank">no es un derecho fundamental</a> contrariamente a las declaraciones del Ministro de Justicia, Francisco Caamaño. Lo que es un derecho fundamental es el derecho a la producción literaria y artística.</p>
<p>6 &#8211; De acuerdo con las declaraciones de la Ministra de Cultura, esta disposición se utilizará exclusivamente para cerrar 200 webs que presuntamente están atentando contra los derechos de autor. Entendemos que si éste es el objetivo de la disposición, no es necesaria, ya que con la legislación actual existen procedimientos que permiten actuar contra webs, incluso con medidas cautelares, cuando presuntamente se esté incumpliendo la legalidad. Por lo que no queda sino recelar de las verdaderas intenciones que la motivan ya que lo único que añade a la legislación actual es el hecho de dejar la ciudadanía en una situación de grave indefensión jurídica en el entorno digital.</p>
<p>7 &#8211; Finalmente consideramos que la propuesta del gobierno no sólo es un despilfarro de recursos sino que será absolutamente ineficaz en sus presuntos propósitos y deja patente la absoluta incapacidad por parte del ejecutivo de entender los tiempos y motores de la Era Digital.</p>
<p>La disposición es una concesión más a la vieja industria del entretenimiento en detrimento de los derechos fundamentales de la ciudadanía en la era digital.</p>
<p>La ciudadanía no puede permitir de ninguna manera que sigan los intentos de vulnerar derechos fundamentales de las personas, sin la debida tutela judicial efectiva, para proteger derechos de menor rango como la propiedad intelectual. Dicha circunstancia ya fué aclarada con el dictado de inconstitucionalidad de la ley Corcuera (o ley de patada en la puerta). <a href="http://www.facebook.com/group.php?gid=186879394498" target="_blank">El Manifiesto en defensa de los derechos fundamentales en Internet</a>, respaldado por más de 200 000 personas, ya avanzó la reacción y demandas de la ciudadanía antes la perspectiva inaceptable del gobierno.</p>
<p>Para impulsar un definitivo cambio de rumbo y coordinar una respuesta conjunta, el 9 de enero se ha constituido la &#8220;Red SOStenible&#8221; una plataforma representativa de todos los sectores sociedad civil afectados. El objetivo es iniciar una ofensiva para garantizar una regulación del entorno digital que permita expresar todo el potencial de la Red y de la creación cultural respetando las libertades fundamentales.</p>
<p>En este sentido, reconocemos como referencia para el desarrollo de la era digital, la <a href="http://fcforum.net/es/" target="_blank">Carta para la innovación, la creatividad y el acceso al conocimiento</a>, un documento de síntesis elaborado por más de <a href="http://fcforum.net/es/charter_extended#signatories" target="_blank">100 expertos de 20 países</a> que recoge los principios legales fundamentales que deben inspirar este nuevo horizonte.</p>
<p>En particular, consideramos que en estos momentos es especialmente urgentes la implementación por parte de gobiernos e instituciones competentes, de los siguientes aspectos recogidos en la Carta:</p>
<p>1 &#8211; Las/os artistas como todos los trabajadores tienen que poder vivir de su trabajo (referencia punto 2 &#8220;<a href="http://fcforum.net/es/charter_extended#legal" target="_blank">Demandas legales</a>&#8220;, párrafo B. &#8220;Estímulo de la creatividad y la innovación&#8221;, de la <a href="http://fcforum.net/es/charter_extended" target="_blank">Carta</a>);</p>
<p>2 &#8211; La sociedad necesita para su desarrollo de una red abierta y libre (referencia punto 2 &#8220;<a href="http://fcforum.net/es/charter_extended#legal" target="_blank">Demandas legales</a>&#8220;, párrafo D &#8220;Acceso a las infraestructuras tecnológicas&#8221;, de la <a href="http://fcforum.net/es/charter_extended" target="_blank">Carta</a>);</p>
<p>3 &#8211; El derecho a cita y el derecho a compartir tienen que ser potenciado y no limitado como fundamento de toda posibilidad de información y constitutivo de todo conocimiento (referencia punto 2 &#8220;<a href="http://fcforum.net/es/charter_extended#legal" target="_blank">Demandas legales</a>&#8220;, párrafo A &#8220;Derechos en un contexto digital&#8221;, de la <a href="http://fcforum.net/es/charter_extended" target="_blank">Carta</a>);</p>
<p>4 &#8211; La ciudadanía debe poder disfrutar libremente de los derechos exclusivos de los bienes públicos que se pagan con su dinero, con el dinero publico (referencia punto 2 &#8220;<a href="http://fcforum.net/es/charter_extended#legal" target="_blank">Demandas legales</a>&#8220;, párrafo C &#8220;Conocimiento común y dominio público&#8221;, de la <a href="http://fcforum.net/es/charter_extended" target="_blank">Carta</a>);</p>
<p>5 -Consideramos necesaria una reforma en profundidad del sistema de las entidades de gestión y la abolición del canon digital (referencia punto 2 &#8220;<a href="http://fcforum.net/es/charter_extended#legal" target="_blank">Demandas legales</a>&#8220;, párrafo B. &#8220;Estímulo de la creatividad y la innovación&#8221;, de la<a href="http://fcforum.net/es/charter_extended" target="_blank">Carta</a>).</p>
<p>Por todo ello hoy se inicia la campaña <a href="http://internetnoseraotratv.net" target="_blank">INTERNET NO SERA OTRA TELE</a> y se llevarán a cabo diversas acciones ciudadanas durante todo el periodo de la presidencia española de la UE.</p>
<p>Consideramos particularmente importantes en el calendario de la presidencia de turno española el II Congreso de Economía de la Cultura (29 y 30 de marzo en Barcelona), Reunión Informal de ministros de Cultura (30 y 31 de marzo en Barcelona) y la reunión de ministros de Telecomunicaciones (18 a 20 de abril en Granada).</p>
<p>La Red tiene previsto reunirse con representantes nacionales e internacionales de partidos políticos, representantes de la cultura y legaciones diplomáticas.</p>
<p>Firmado Red SOStenible</p>
<p><a href="http://Red-SOStenible.net" target="_blank">http://Red-SOStenible.net</a></p>
<p>La Red Sostenible somos todo. Si quieres adherirte a este texto, cópialo, blogguéalo, difúndelo.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.guero.net/2010/01/red-sostenible/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Constitución Española: Artículo 20</title>
		<link>http://www.guero.net/2009/12/constitucion-espanola-articulo-20/</link>
		<comments>http://www.guero.net/2009/12/constitucion-espanola-articulo-20/#comments</comments>
		<pubDate>Sun, 06 Dec 2009 15:32:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.guero.net/?p=118</guid>
		<description><![CDATA[Constitución Española, Artículo 20:
1. Se reconocen y protegen los derechos:

A expresar y difundir libremente los pensamientos, ideas y opiniones mediante la palabra, el escrito o cualquier otro medio de reproducción.
A la producción y creación literaria, artística, científica y técnica.
A la libertad de cátedra.
A comunicar o recibir libremente información veraz por cualquier medio de difusión. La [...]]]></description>
			<content:encoded><![CDATA[<p>Constitución Española, <a href="http://noticias.juridicas.com/base_datos/Admin/constitucion.t1.html#c2s1" target="_blank">Artículo 20</a>:</p>
<p>1. Se reconocen y protegen los derechos:</p>
<ol type="a">
<li>A expresar y difundir libremente los pensamientos, ideas y opiniones mediante la palabra, el escrito o cualquier otro medio de reproducción.</li>
<li>A la producción y creación literaria, artística, científica y técnica.</li>
<li>A la libertad de cátedra.</li>
<li>A comunicar o recibir libremente información veraz por cualquier medio de difusión. La Ley regulará el derecho a la cláusula de conciencia y al secreto profesional en el ejercicio de estas libertades.</li>
</ol>
<p>2. <strong>El ejercicio de estos derechos no puede restringirse mediante ningún tipo de censura previa</strong>.</p>
<p>3. La Ley regulará la organización y el control parlamentario de los medios de comunicación social dependientes del Estado o de cualquier ente público y garantizará el acceso a dichos medios de los grupos sociales y políticos significativos, respetando el pluralismo de la sociedad y de las diversas lenguas de España.</p>
<p>4. Estas libertades tienen su límite en el respeto a los derechos reconocidos en este Título, en los preceptos de las Leyes que lo desarrollan y, especialmente, en el <a href="http://noticias.juridicas.com/base_datos/Admin/lo1-1982.html" target="_blank">derecho al honor, a la intimidad, a la propia imagen</a> y a la protección de la juventud y de la infancia.</p>
<p>5. <strong>Solo podrá acordarse el secuestro de publicaciones, grabaciones y otros medios de información en virtud de resolución judicial.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.guero.net/2009/12/constitucion-espanola-articulo-20/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Manifiesto “En defensa de los derechos fundamentales en internet”</title>
		<link>http://www.guero.net/2009/12/manifiesto-%e2%80%9cen-defensa-de-los-derechos-fundamentales-en-internet%e2%80%9d/</link>
		<comments>http://www.guero.net/2009/12/manifiesto-%e2%80%9cen-defensa-de-los-derechos-fundamentales-en-internet%e2%80%9d/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 15:36:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.guero.net/?p=122</guid>
		<description><![CDATA[

Ante la inclusión en el Anteproyecto de Ley de Economía sostenible de modificaciones legislativas que afectan al libre ejercicio de las libertades de expresión, información y el derecho de acceso a la cultura a través de Internet, los periodistas, bloggers, usuarios, profesionales y creadores de internet manifestamos nuestra firme oposición al proyecto, y declaramos que…
1.- [...]]]></description>
			<content:encoded><![CDATA[<div>
<div>
<p>Ante la inclusión en el Anteproyecto de Ley de Economía sostenible de modificaciones legislativas que afectan al libre ejercicio de las libertades de expresión, información y el derecho de acceso a la cultura a través de Internet, los periodistas, bloggers, usuarios, profesionales y creadores de internet manifestamos nuestra firme oposición al proyecto, y declaramos que…</p>
<p>1.- <strong>Los derechos de autor no pueden situarse por encima de los derechos fundamentales de los ciudadanos</strong>, como el derecho a la privacidad, a la seguridad, a la presunción de inocencia, a la tutela judicial efectiva y a la libertad de expresión.</p>
<p>2.- <strong>La suspensión de derechos fundamentales es y debe seguir siendo competencia exclusiva del poder judicial</strong>. Ni un cierre sin sentencia. Este anteproyecto, en contra de lo establecido en el artículo 20.5 de la Constitución, pone en manos de un órgano no judicial -un organismo dependiente del ministerio de Cultura-, la potestad de impedir a los ciudadanos españoles el acceso a cualquier página web.</p>
<p>3.- <strong>La nueva legislación creará inseguridad jurídica en todo el sector tecnológico español</strong>, perjudicando uno de los pocos campos de desarrollo y futuro de nuestra economía, entorpeciendo la creación de empresas, introduciendo trabas a la libre competencia y ralentizando su proyección internacional.</p>
<p>4.- <strong>La nueva legislación propuesta amenaza a los nuevos creadores y entorpece la creación cultural</strong>. Con Internet y los sucesivos avances tecnológicos se ha democratizado extraordinariamente la creación y emisión de contenidos de todo tipo, que ya no provienen prevalentemente de las industrias culturales tradicionales, sino de multitud de fuentes diferentes.</p>
<p>5.- <strong>Los autores</strong>, como todos los trabajadores,<strong> tienen derecho a vivir de su trabajo con nuevas ideas creativas, modelos de negocio y actividades</strong> asociadas a sus creaciones. Intentar sostener con cambios legislativos a una industria obsoleta que no sabe adaptarse a este nuevo entorno no es ni justo ni realista. Si su modelo de negocio se basaba en el control de las copias de las obras y en Internet no es posible sin vulnerar derechos fundamentales, deberían buscar otro modelo.</p>
<p>6.- Consideramos que <strong>las industrias culturales necesitan para sobrevivir alternativas modernas, eficaces, creíbles y asequibles y que se adecuen a los nuevos usos sociales</strong>, en lugar de limitaciones tan desproporcionadas como ineficaces para el fin que dicen perseguir.</p>
<p>7.- <strong>Internet debe funcionar de forma libre y sin interferencias políticas</strong> auspiciadas por sectores que pretenden perpetuar obsoletos modelos de negocio e imposibilitar que el saber humano siga siendo libre.</p>
<p>8.- <strong>Exigimos que el Gobierno garantice por ley la neutralidad de la Red en España</strong>, ante cualquier presión que pueda producirse, como marco para el desarrollo de una economía sostenible y realista de cara al futuro.</p>
<p>9.- <strong>Proponemos una verdadera reforma del derecho de propiedad intelectual</strong> orientada a su fin: devolver a la sociedad el conocimiento, promover el dominio público y limitar los abusos de las entidades gestoras.</p>
<p>10.- <strong>En democracia las leyes y sus modificaciones deben aprobarse tras el oportuno debate público</strong> y habiendo consultado previamente a todas las partes implicadas. <strong>No es de recibo que se realicen cambios legislativos que afectan a derechos fundamentales en una ley no orgánica y que versa sobre otra materia</strong>.</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.guero.net/2009/12/manifiesto-%e2%80%9cen-defensa-de-los-derechos-fundamentales-en-internet%e2%80%9d/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shorewall 4.4 en Ubuntu (con QoS, IFB, Nat)</title>
		<link>http://www.guero.net/2009/11/shorewall-4-4-en-ubuntu-con-qos-ifb-nat/</link>
		<comments>http://www.guero.net/2009/11/shorewall-4-4-en-ubuntu-con-qos-ifb-nat/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 11:52:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Sistemas y redes]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[qos]]></category>
		<category><![CDATA[shorewall]]></category>
		<category><![CDATA[shorewall 4.4]]></category>

		<guid isPermaLink="false">http://www.guero.net/?p=92</guid>
		<description><![CDATA[En el post anterior sobre shorewall 4.2 expliqué su instalación y configuración para una red básica. Ahora voy a documentar lo mismo pero con la última versión de shorewall 4.4. La nueva versión tiene cosas muy interesantes pero la que a mi más me interesó es el soporte de flow (&#8220;flow&#8221; traffic classifier, lo explicaré [...]]]></description>
			<content:encoded><![CDATA[<p>En el <a href="http://www.guero.net/2009/09/shorewall-en-ubuntu-firewall-qos-nat/">post anterior sobre shorewall 4.2</a> expliqué su instalación y configuración para una red básica. Ahora voy a documentar lo mismo pero con la última versión de <a href="http://www1.shorewall.net/pub/shorewall/4.4/shorewall-4.4.4/releasenotes.txt">shorewall 4.4</a>. La nueva versión tiene cosas muy interesantes pero la que a mi más me interesó es el soporte de flow (<a href="http://www.shorewall.net/traffic_shaping.htm#tcclasses">&#8220;flow&#8221; traffic classifier</a>, lo explicaré en otro post).</p>
<p><strong>Definición de la red</strong></p>
<blockquote><p><strong>eth1</strong>: Interfase para conexión a internet (ip dinámica)<br />
<strong>eth2</strong>: Interfase para la red local (192.168.8.0/24)</p></blockquote>
<p><strong>Hacemos una copia de la instalación anterior y eliminamos (si existe)</strong></p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> shorewall.old <br />
<span style="color: #7a0874; font-weight: bold;">cd</span> shorewall.old<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>shorewall<span style="color: #000000; font-weight: bold;">/*</span> .<span style="color: #000000; font-weight: bold;">/</span></div></div>
<p><strong>Descargamos e Instalamos</strong></p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> shorewall<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> shorewall<br />
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>shorewall.de<span style="color: #000000; font-weight: bold;">/</span>pub<span style="color: #000000; font-weight: bold;">/</span>shorewall<span style="color: #000000; font-weight: bold;">/</span>4.4<span style="color: #000000; font-weight: bold;">/</span>shorewall-4.4.4<span style="color: #000000; font-weight: bold;">/</span>shorewall-4.4.4.1.tar.bz2<br />
<span style="color: #c20cb9; font-weight: bold;">tar</span> jxf shorewall-4.4.4.1.tar.bz2<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> shorewall-4.4.4.1<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> .<span style="color: #000000; font-weight: bold;">/</span>install.sh</div></div>
<p><strong>Documentación oficial</strong><br />
En toda instalación de un firewall hay particularidades, por lo que recomiendo leer la documentación oficial de shorewall. Iré poniendo links a la documentación oficial sobre cada acción.</p>
<p><em>[DOC] <strong><a href="http://www.shorewall.net/configuration_file_basics.htm">Sobre la estructura de los ficheros de configuración</a></strong></em></p>
<p><strong>Comandos necesarios para el arranque</strong>: /etc/shorewall/init</p>
<blockquote><p>Que cargue con el <a href="http://www.shorewall.net/traffic_shaping.htm#IFB">modulo de IFB</a>, creando solo un dispositivo que será ifb0.</p></blockquote>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">qt modprobe ifb <span style="color: #007800;">numifbs</span>=1<br />
qt ip <span style="color: #c20cb9; font-weight: bold;">link</span> <span style="color: #000000; font-weight: bold;">set</span> dev ifb0 up<br />
qt <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>lock<span style="color: #000000; font-weight: bold;">/</span>subsys<span style="color: #000000; font-weight: bold;">/</span></div></div>
<p><strong>/etc/shorewall/interfaces</strong></p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#ZONE &nbsp; &nbsp; &nbsp; INTERFACE &nbsp; BROADCAST &nbsp; OPTIONS</span><br />
net &nbsp; &nbsp; eth1<br />
loc &nbsp; &nbsp; eth2&nbsp; &nbsp; &nbsp; &nbsp; detect&nbsp; &nbsp; &nbsp; dhcp</div></div>
<p><strong>/etc/shorewall/masq</strong><br />
<em>[DOC] <strong><a href="http://shorewall.net/Documentation.htm#Masq">NAT</a> &#8211; <a href="http://shorewall.net/NAT.htm">NAT2</a></strong></em></p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#INTERFACE&nbsp; &nbsp; &nbsp; SOURCE&nbsp; &nbsp; &nbsp; ADDRESS &nbsp; &nbsp; PROTO &nbsp; PORT(S) IPSEC &nbsp; MARK</span><br />
eth1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 192.168.8.0<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">24</span></div></div>
<p><strong>/etc/shorewall/zones</strong><br />
<em>[DOC] <strong><a href="http://www.shorewall.net/manpages/shorewall-zones.html">Zonas bajo control</a></strong></em></p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#ZONE &nbsp; TYPE&nbsp; &nbsp; &nbsp; &nbsp; OPTIONS &nbsp; &nbsp; IN&nbsp; &nbsp; &nbsp; OUT</span><br />
fw&nbsp; firewall<br />
net ipv4<br />
loc ipv4</div></div>
<p><strong>/etc/shorewall/policy</strong><br />
<em>[DOC] <strong><a href="http://www.shorewall.net/manpages/shorewall-policy.html">Politica general</a></strong></em></p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#SOURCE &nbsp; &nbsp; DEST&nbsp; &nbsp; &nbsp; &nbsp; POLICY&nbsp; &nbsp; &nbsp; LOG LEVEL &nbsp; LIMIT:BURST</span><br />
loc &nbsp; &nbsp; net &nbsp; &nbsp; ACCEPT<br />
loc &nbsp; &nbsp; <span style="color: #007800;">$FW</span> &nbsp; &nbsp; ACCEPT<br />
<span style="color: #007800;">$FW</span> &nbsp; &nbsp; loc &nbsp; &nbsp; ACCEPT<br />
<span style="color: #007800;">$FW</span> &nbsp; &nbsp; net &nbsp; &nbsp; ACCEPT<br />
all &nbsp; &nbsp; all &nbsp; &nbsp; REJECT&nbsp; &nbsp; &nbsp; info</div></div>
<p><strong>/etc/shorewall/rules</strong><br />
<em>[DOC] <strong><a href="http://www.shorewall.net/manpages/shorewall-rules.html">Reglas</a></strong></em></p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;"># ACTION&nbsp; &nbsp; SOURCE&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DEST&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PROTO &nbsp; &nbsp; &nbsp; DEST PORT(S)&nbsp; &nbsp; ORIGINAL DESTRATE LIMIT</span><br />
<span style="color: #666666; font-style: italic;"># Redirección de puertos</span><br />
DNAT&nbsp; &nbsp; &nbsp; &nbsp; net &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; loc:192.168.8.78&nbsp; &nbsp; &nbsp; &nbsp; tcp &nbsp; &nbsp; <span style="color: #000000;">5900</span><br />
DNAT&nbsp; &nbsp; &nbsp; &nbsp; net &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; loc:192.168.8.78&nbsp; &nbsp; &nbsp; &nbsp; tcp &nbsp; &nbsp; <span style="color: #000000;">8500</span>:<span style="color: #000000;">8600</span><br />
DNAT&nbsp; &nbsp; &nbsp; &nbsp; net &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; loc:192.168.8.78&nbsp; &nbsp; &nbsp; &nbsp; udp &nbsp; &nbsp; <span style="color: #000000;">8500</span>:<span style="color: #000000;">8600</span><br />
<span style="color: #666666; font-style: italic;"># FROM Net TO firewall</span><br />
ACCEPT&nbsp; &nbsp; &nbsp; net &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #007800;">$FW</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; icmp&nbsp; &nbsp; &nbsp; &nbsp; <br />
ACCEPT&nbsp; &nbsp; &nbsp; net &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #007800;">$FW</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tcp &nbsp; &nbsp; <span style="color: #000000;">22</span></div></div>
<p><strong>* Hasta aquí es lo básico en cuando a seguridad y NAT, con esto la red ya funciona. A partir de aquí es <a href="http://www.shorewall.net/traffic_shaping.htm">QoS o Traffic Shaping</a>.</strong></p>
<p><strong>/etc/shorewall/tcdevices</strong><br />
<em>[DOC] <strong><a href="http://www.shorewall.net/traffic_shaping.htm#tcdevices">Devices</a> &#8211; <a href="http://www.shorewall.net/traffic_shaping.htm#IFB">Redirigir el tráfico a IFB</a></strong></em></p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#NUMBER:&nbsp; &nbsp; IN-BANDWITH OUT-BANDWIDTH &nbsp; OPTIONS &nbsp; &nbsp; REDIRECTED</span><br />
<span style="color: #666666; font-style: italic;">#INTERFACE&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; INTERFACES</span><br />
<span style="color: #000000;">1</span>:eth1&nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; 300kbit &nbsp; &nbsp; classify&nbsp; &nbsp; <br />
<span style="color: #000000;">2</span>:ifb0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; 6000kbit&nbsp; &nbsp; &nbsp; &nbsp; classify&nbsp; &nbsp; eth1</div></div>
<p><strong>/etc/shorewall/tcclasses</strong><br />
<em>[DOC] <strong><a href="http://www.shorewall.net/traffic_shaping.htm#tcclasses">Clases</a></strong></em></p>
<blockquote><p>
Ahora es donde voy a dar mi opinion sobre como deberían ir estas clases, esto depende de la experiencia de cada uno, pero en fin, esta es la mía: </p>
<ul>
<li>Dividir en tres partes VoIP y Video IP (1:10 y 2:10) , ICMP/DNS y puertos conocidos (1:11 y 2:11) y por último tráfico desconocido (1:19 y 2:19)</li>
<li>Antes le daba mayor prioridad a SSH o ICMP y en mantenimientos he cortado llamadas y en alguna prueba de rendimiento también me quede sin teléfonos (que también puede ser un ataque DDoS u otros..)</li>
<li>La segunda clase sera para icmp y dns y tráfico conocido, y esta esta dividida en subclases con el fin de garantizar un mínimo a cada conexión</li>
<li>En mi red tengo un servidor DNS para que los equipos no vayan a buscar cada dominio en internet, de modo que al DNS le doy más prioridad que al trafico en si mismo ya que se realiza pocas veces y agiliza la navegación</li>
<li>Y ya que tengo servicios dentro de la red que son utilizados en ocasiones desde fuera de ella considero que se aplican los mismos principios para el trafico entrante</li>
<li>Sobre los porcentajes que he utilizado en este ejemplo es por el ancho de banda que tengo en esa instalación, esto cada uno lo tiene que mirar pero yo he intentado garantizar 128kbit a la voip tanto de subida como de bajada</li>
<li>Lo de enviar el tráfico desconocido a la última clase es para evitar el esfuerzo y la complicación de identificar las conexiones P2P, hay otras técnicas pero al final después de muchas pruebas esto es lo que me ha resultado más fácil de mantener</li>
</ul>
</blockquote>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;height:300px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#INTERFACE:CLASS&nbsp; &nbsp; MARK&nbsp; &nbsp; RATE: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CEIL&nbsp; &nbsp; &nbsp; &nbsp; PRIORITY&nbsp; &nbsp; OPTIONS</span><br />
<span style="color: #666666; font-style: italic;">##&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DMAX:UMAX</span><br />
<span style="color: #666666; font-style: italic;"># #</span><br />
<span style="color: #666666; font-style: italic;"># # eth1</span><br />
<span style="color: #666666; font-style: italic;"># #</span><br />
<span style="color: #000000;">1</span>:<span style="color: #000000;">10</span>&nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; full<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">43</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">100</span> &nbsp; &nbsp; full<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">9</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span> &nbsp; <span style="color: #000000;">1</span> &nbsp; tcp-ack,tos-minimize-delay <span style="color: #666666; font-style: italic;"># voip</span><br />
<span style="color: #000000;">1</span>:<span style="color: #000000;">11</span>&nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; full<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">47</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">100</span> &nbsp; &nbsp; full<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">9</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span> &nbsp; <span style="color: #000000;">2</span> &nbsp; tcp-ack,tos-minimize-delay <span style="color: #666666; font-style: italic;"># icmp / dns</span><br />
<span style="color: #000000;">1</span>:<span style="color: #000000;">11</span>:<span style="color: #000000;">101</span>&nbsp; &nbsp; - &nbsp; full<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span> &nbsp; &nbsp; &nbsp; full&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">11</span>&nbsp; <span style="color: #666666; font-style: italic;"># openvpn</span><br />
<span style="color: #000000;">1</span>:<span style="color: #000000;">11</span>:<span style="color: #000000;">102</span>&nbsp; &nbsp; - &nbsp; full<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span> &nbsp; &nbsp; &nbsp; full&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">12</span>&nbsp; <span style="color: #666666; font-style: italic;"># vnc</span><br />
<span style="color: #000000;">1</span>:<span style="color: #000000;">11</span>:<span style="color: #000000;">103</span>&nbsp; &nbsp; - &nbsp; full<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span> &nbsp; &nbsp; &nbsp; full&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">13</span>&nbsp; <span style="color: #666666; font-style: italic;"># http/https</span><br />
<span style="color: #000000;">1</span>:<span style="color: #000000;">11</span>:<span style="color: #000000;">104</span>&nbsp; &nbsp; - &nbsp; full<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span> &nbsp; &nbsp; &nbsp; full&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">14</span>&nbsp; <span style="color: #666666; font-style: italic;"># mail</span><br />
<span style="color: #000000;">1</span>:<span style="color: #000000;">11</span>:<span style="color: #000000;">105</span>&nbsp; &nbsp; - &nbsp; full<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span> &nbsp; &nbsp; &nbsp; full&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">15</span>&nbsp; <span style="color: #666666; font-style: italic;"># irc,msn,...</span><br />
<span style="color: #000000;">1</span>:<span style="color: #000000;">19</span>&nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; full<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">10</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">100</span> &nbsp; &nbsp; full<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">9</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span> &nbsp; <span style="color: #000000;">99</span>&nbsp; tos-minimize-cost,default<br />
<span style="color: #666666; font-style: italic;"># #</span><br />
<span style="color: #666666; font-style: italic;"># # ifb0</span><br />
<span style="color: #666666; font-style: italic;"># #</span><br />
<span style="color: #000000;">2</span>:<span style="color: #000000;">10</span>&nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; full<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">3</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">100</span>&nbsp; &nbsp; &nbsp; full<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">9</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span> &nbsp; <span style="color: #000000;">1</span> &nbsp; tcp-ack,tos-minimize-delay <span style="color: #666666; font-style: italic;"># voip</span><br />
<span style="color: #000000;">2</span>:<span style="color: #000000;">11</span>&nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; full<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">87</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">100</span> &nbsp; &nbsp; full<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">9</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span> &nbsp; <span style="color: #000000;">2</span> &nbsp; tcp-ack,tos-minimize-delay <span style="color: #666666; font-style: italic;"># icmp / dns</span><br />
<span style="color: #000000;">2</span>:<span style="color: #000000;">11</span>:<span style="color: #000000;">101</span>&nbsp; &nbsp; - &nbsp; full<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span> &nbsp; &nbsp; &nbsp; full&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">11</span>&nbsp; <span style="color: #666666; font-style: italic;"># openvpn</span><br />
<span style="color: #000000;">2</span>:<span style="color: #000000;">11</span>:<span style="color: #000000;">102</span>&nbsp; &nbsp; - &nbsp; full<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span> &nbsp; &nbsp; &nbsp; full&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">12</span>&nbsp; <span style="color: #666666; font-style: italic;"># vnc</span><br />
<span style="color: #000000;">2</span>:<span style="color: #000000;">11</span>:<span style="color: #000000;">103</span>&nbsp; &nbsp; - &nbsp; full<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span> &nbsp; &nbsp; &nbsp; full&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">13</span>&nbsp; <span style="color: #666666; font-style: italic;"># http/https</span><br />
<span style="color: #000000;">2</span>:<span style="color: #000000;">11</span>:<span style="color: #000000;">104</span>&nbsp; &nbsp; - &nbsp; full<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span> &nbsp; &nbsp; &nbsp; full&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">14</span>&nbsp; <span style="color: #666666; font-style: italic;"># mail</span><br />
<span style="color: #000000;">2</span>:<span style="color: #000000;">11</span>:<span style="color: #000000;">105</span>&nbsp; &nbsp; - &nbsp; full<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span> &nbsp; &nbsp; &nbsp; full&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">15</span>&nbsp; <span style="color: #666666; font-style: italic;"># irc,msn,...</span><br />
<span style="color: #000000;">2</span>:<span style="color: #000000;">19</span>&nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; full<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">10</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">100</span> &nbsp; &nbsp; full<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000;">9</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span> &nbsp; <span style="color: #000000;">99</span>&nbsp; tos-minimize-cost,default</div></div>
<p><strong>/etc/shorewall/tcfilters</strong><br />
<em>[DOC] <strong><a href="http://www.shorewall.net/traffic_shaping.htm#tcfilters">Filtros para identificar el tráfico</a></strong></em></p>
<blockquote><p>Yo he identificado estos puertos como útiles para mi red, como decía antes, cada uno sabrá lo que le es útil y lo que no.</p></blockquote>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;height:300px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#INTERFACE: SOURCE&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DEST&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PROTO &nbsp; DEST&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SOURCE</span><br />
<span style="color: #666666; font-style: italic;">#CLASS&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PORT(S) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PORT(S)</span><br />
<span style="color: #666666; font-style: italic;">#</span><br />
<span style="color: #666666; font-style: italic;"># &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OUTGOING TRAFFIC</span><br />
<span style="color: #666666; font-style: italic;">#</span><br />
<span style="color: #000000;">1</span>:<span style="color: #000000;">10</span>&nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; udp - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">4569</span>,<span style="color: #000000;">5060</span><br />
<span style="color: #000000;">1</span>:<span style="color: #000000;">10</span>&nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tcp - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">4569</span>,<span style="color: #000000;">5060</span><br />
<span style="color: #000000;">1</span>:<span style="color: #000000;">11</span>&nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; icmp&nbsp; &nbsp; echo-request,echo-reply<br />
<span style="color: #000000;">1</span>:<span style="color: #000000;">11</span>&nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tcp - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">53</span>,<span style="color: #000000;">22</span><br />
<span style="color: #000000;">1</span>:<span style="color: #000000;">11</span>&nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; udp - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">53</span><br />
<span style="color: #000000;">1</span>:<span style="color: #000000;">101</span> &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; udp - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">1194</span><br />
<span style="color: #000000;">1</span>:<span style="color: #000000;">101</span> &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tcp - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">1194</span><br />
<span style="color: #000000;">1</span>:<span style="color: #000000;">102</span> &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tcp - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">5900</span><br />
<span style="color: #000000;">1</span>:<span style="color: #000000;">103</span> &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tcp - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">80</span>,<span style="color: #000000;">443</span><br />
<span style="color: #000000;">1</span>:<span style="color: #000000;">104</span> &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tcp - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">25</span>,<span style="color: #000000;">465</span>,<span style="color: #000000;">110</span>,<span style="color: #000000;">995</span>,<span style="color: #000000;">143</span>,<span style="color: #000000;">993</span><br />
<span style="color: #000000;">1</span>:<span style="color: #000000;">105</span> &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tcp - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">1493</span>,<span style="color: #000000;">1542</span>,<span style="color: #000000;">1863</span>,<span style="color: #000000;">1963</span>,<span style="color: #000000;">5222</span>,<span style="color: #000000;">6667</span><br />
<span style="color: #666666; font-style: italic;"># #</span><br />
<span style="color: #666666; font-style: italic;"># # &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; INCOMING TRAFFIC</span><br />
<span style="color: #666666; font-style: italic;"># #</span><br />
<span style="color: #000000;">2</span>:<span style="color: #000000;">10</span>&nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; udp <span style="color: #000000;">4569</span>,<span style="color: #000000;">5060</span><br />
<span style="color: #000000;">2</span>:<span style="color: #000000;">10</span>&nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tcp <span style="color: #000000;">4569</span>,<span style="color: #000000;">5060</span><br />
<span style="color: #000000;">2</span>:<span style="color: #000000;">11</span>&nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; icmp&nbsp; &nbsp; echo-request,echo-reply<br />
<span style="color: #000000;">2</span>:<span style="color: #000000;">11</span>&nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tcp <span style="color: #000000;">53</span>,<span style="color: #000000;">22</span><br />
<span style="color: #000000;">2</span>:<span style="color: #000000;">11</span>&nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; udp <span style="color: #000000;">53</span><br />
<span style="color: #000000;">2</span>:<span style="color: #000000;">101</span> &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; udp <span style="color: #000000;">1194</span><br />
<span style="color: #000000;">2</span>:<span style="color: #000000;">101</span> &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tcp <span style="color: #000000;">1194</span><br />
<span style="color: #000000;">2</span>:<span style="color: #000000;">102</span> &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tcp <span style="color: #000000;">5900</span><br />
<span style="color: #000000;">2</span>:<span style="color: #000000;">103</span> &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tcp <span style="color: #000000;">80</span>,<span style="color: #000000;">443</span><br />
<span style="color: #000000;">2</span>:<span style="color: #000000;">104</span> &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tcp <span style="color: #000000;">25</span>,<span style="color: #000000;">465</span>,<span style="color: #000000;">110</span>,<span style="color: #000000;">995</span>,<span style="color: #000000;">143</span>,<span style="color: #000000;">993</span><br />
<span style="color: #000000;">2</span>:<span style="color: #000000;">105</span> &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tcp <span style="color: #000000;">1493</span>,<span style="color: #000000;">1542</span>,<span style="color: #000000;">1863</span>,<span style="color: #000000;">1963</span>,<span style="color: #000000;">5222</span>,<span style="color: #000000;">6667</span></div></div>
<p><strong>Esto es todo, ahora compilamos:</strong></p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>shorewall restart</div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.guero.net/2009/11/shorewall-4-4-en-ubuntu-con-qos-ifb-nat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shorewall en Ubuntu &#124; firewall, QoS, NAT</title>
		<link>http://www.guero.net/2009/09/shorewall-en-ubuntu-firewall-qos-nat/</link>
		<comments>http://www.guero.net/2009/09/shorewall-en-ubuntu-firewall-qos-nat/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 16:44:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Sistemas y redes]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[ifb]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[qos]]></category>
		<category><![CDATA[shorewall]]></category>

		<guid isPermaLink="false">http://www.guero.net/?p=62</guid>
		<description><![CDATA[ACTUALIZACIÓN: Instalación muy similar pero en shorewall 4.4
He realizado unas cuantas instalaciones de shorewall 4.2 en ubuntu server 8.04-LTS y están funcionando muy bien, lo recomiendo. Aún no he probado la última versión de shorewall 4.4 pero cuando lo haga lo publicaré. Tras un par de intentos fallidos de utilizar los repositorios PPA de Ubuntu [...]]]></description>
			<content:encoded><![CDATA[<p>ACTUALIZACIÓN: <a title="Shorewall 4.4, QoS, Ubuntu" href="http://www.guero.net/2009/11/shorewall-4-4-en-ubuntu-con-qos-ifb-nat/">Instalación muy similar pero en shorewall 4.4</a></p>
<p>He realizado unas cuantas instalaciones de <a title="Is high-level tool for configuring Netfilter" href="http://www.shorewall.net/" target="_blank">shorewall</a> 4.2 en ubuntu server 8.04-LTS y están funcionando muy bien, lo recomiendo. Aún no he probado la última versión de shorewall 4.4 pero cuando lo haga lo publicaré. Tras un par de intentos fallidos de utilizar los repositorios <a href="https://launchpad.net/~bmonty/+archive/ppa" target="_blank">PPA de Ubuntu</a> creo que es mejor <strong>no utilizarlos</strong>, instalar el paquete es muy fácil y no requiere demasiadas actualizaciones.</p>
<p>El objetivo de una instalación de este tipo es mantener una buena calidad de conexión para todos los equipos en una red local, para evitar que ninguno de los ordenadores acapare la conexión (ni con p2p, http, ftp,&#8230;). En definitiva, QoS (Quality of services).</p>
<p>Antes de que alguien me meta caña por lo que voy a decir, puntualizo que esto es para una red de ordenadores, no para servidores. Si alguien quiere montar un firewall con QoS para servidores debe tomar en cuenta otras cosas como ataques DDoS, flush control, etc.. etc.. largo etc..</p>
<p><span id="more-62"></span></p>
<p>Instalar Ubuntu Server 8.04 (o el LTS del momento)</p>
<p>En la instalación solo hace falta OpenSSH (ni escritorio, ni apache, ni nada..)</p>
<p><strong>* Definición de la red</strong></p>
<p><strong>eth1</strong> Tarjeta ethernet que va a internet<br />
<strong>eth2</strong> Tarjeta ethernet que va al switch de la red local</p>
<p><strong>* A partir veremos lo que es la instalación</strong></p>
<p>Una vez instalado descargamos <a href="http://slovakia.shorewall.net/pub/shorewall/4.2/shorewall-4.2.11/shorewall-common-4.2.11.tar.bz2">shorewall-comon</a> y <a href="http://slovakia.shorewall.net/pub/shorewall/4.2/shorewall-4.2.11/shorewall-perl-4.2.11.1.tar.bz2">shorewall-perl</a></p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>slovakia.shorewall.net<span style="color: #000000; font-weight: bold;">/</span>pub<span style="color: #000000; font-weight: bold;">/</span>shorewall<span style="color: #000000; font-weight: bold;">/</span>4.2<span style="color: #000000; font-weight: bold;">/</span>shorewall-4.2.11<span style="color: #000000; font-weight: bold;">/</span>shorewall-perl-4.2.11.1.tar.bz2<br />
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>slovakia.shorewall.net<span style="color: #000000; font-weight: bold;">/</span>pub<span style="color: #000000; font-weight: bold;">/</span>shorewall<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">4.2</span><span style="color: #000000; font-weight: bold;">/</span>shorewall-4.2.11<span style="color: #000000; font-weight: bold;">/</span>shorewall-common-4.2.11.tar.bz2</div></div>
<p>Descomprimimos</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">tar</span> jxvf shorewall-perl-4.2.11.1.tar.bz2<br />
<span style="color: #c20cb9; font-weight: bold;">tar</span> jxvf shorewall-common-4.2.11.tar.bz2</div></div>
<p>Instalamos shorewall-perl</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">cd</span> shorewall-perl-4.2.11.1<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> .<span style="color: #000000; font-weight: bold;">/</span>install.sh<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> ..</div></div>
<p>Instalamos shorewall-common</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">cd</span> shorewall-common-4.2.11<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> .<span style="color: #000000; font-weight: bold;">/</span>install.sh<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> ..</div></div>
<p>Editamos /etc/default/shorewall y cambiamos una variable de 0 a 1.</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #007800;">startup</span>=<span style="color: #000000;">1</span></div></div>
<p>Copiamos el fichero para que se ejecute al inciar el sistema y lo definimos en el arranque</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>shorewall<span style="color: #000000; font-weight: bold;">/</span>init <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>shorewall<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span><br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> update-rc.d shorewall defaults</div></div>
<p><strong>* A partir veremos lo que es la configuración básica del firewall</strong></p>
<p>Editamos <strong>/etc/shorewall/init</strong><br />
<em>Con esto lo que hacemos es decir a shorewall que inicie el modulo ifb, lenbante la interface y cree un directorio donde pondrá el -PID- de shorewall</em></p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">qt modprobe ifb <span style="color: #007800;">numifbs</span>=1<br />
qt ip <span style="color: #c20cb9; font-weight: bold;">link</span> <span style="color: #000000; font-weight: bold;">set</span> dev ifb0 up<br />
qt <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>lock<span style="color: #000000; font-weight: bold;">/</span>subsys<span style="color: #000000; font-weight: bold;">/</span></div></div>
<p>Ahora definimos las interfaces y sus funciones<br />
Editamos <strong>/etc/shorewall/init</strong><br />
<em>En este caso tenemos <strong>eth1 para internet</strong> y <strong>eth2 para la red local</strong>. En el caso de la red local yo utilizo un servidor de DHCP, que está en el mismo servidor donde instalo shorewall</em></p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#ZONE &nbsp; &nbsp; &nbsp; INTERFACE &nbsp; BROADCAST &nbsp; OPTIONS</span><br />
net &nbsp; &nbsp; eth1<br />
loc &nbsp; &nbsp; eth2&nbsp; &nbsp; &nbsp; &nbsp; detect&nbsp; &nbsp; &nbsp; dhcp</div></div>
<p>Definimos las <strong>zonas</strong>.<br />
Editamos <strong>/etc/shorewall/zones</strong></p>
<blockquote><p>Aquí tenemos un tema de conceptos:<br />
<strong>fw</strong> se refiere al mismo servidor, al mismo firewall<br />
<strong>net</strong> se refiere a internet, las conexiones desde fuera que NO la interface de conexión con internet<br />
<strong>loc</strong> se refiere a la red local</p></blockquote>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#ZONE &nbsp; TYPE&nbsp; &nbsp; &nbsp; &nbsp; OPTIONS &nbsp; &nbsp; IN&nbsp; &nbsp; &nbsp; OUT</span><br />
fw&nbsp; firewall<br />
net ipv4<br />
loc ipv4<br />
<span style="color: #666666; font-style: italic;">#LAST LINE - ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE</span></div></div>
<p>Activamos la función de masquerading, es decir NAT (sería DNAT).<br />
Editamos <strong>/etc/shorewall/masq</strong></p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#INTERFACE&nbsp; SOURCE&nbsp; &nbsp; &nbsp; ADDRESS &nbsp; &nbsp; PROTO &nbsp; PORT(S)</span><br />
eth1&nbsp; &nbsp; &nbsp; &nbsp; eth2</div></div>
<p>Ahora definimos las reglas generales por las que va a funcionar este firewall.<br />
Editamos <strong>/etc/shorewall/policy</strong><br />
<em>Aquí le diremos que todos las conexiones de la red local pueden ir a internet o bien lo contrario. En este caso es una red local con libre acceso a internet, pero no podrá entrar ninguna conexión desde internet. El mismo tiempo le decimos que las conexiones de internet en dirección al firewall no serán aceptadas pero si las de la red local.</em></p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#SOURCE &nbsp; &nbsp; DEST&nbsp; &nbsp; &nbsp; &nbsp; POLICY&nbsp; &nbsp; &nbsp; LOG LEVEL &nbsp; LIMIT:BURST</span><br />
loc &nbsp; &nbsp; net &nbsp; &nbsp; ACCEPT<br />
loc &nbsp; &nbsp; <span style="color: #007800;">$FW</span> &nbsp; &nbsp; ACCEPT<br />
<span style="color: #007800;">$FW</span> &nbsp; &nbsp; loc &nbsp; &nbsp; ACCEPT<br />
<span style="color: #007800;">$FW</span> &nbsp; &nbsp; net &nbsp; &nbsp; ACCEPT<br />
all &nbsp; &nbsp; all &nbsp; &nbsp; REJECT&nbsp; &nbsp; &nbsp; info</div></div>
<p>Activamos la función de masquerading, es decir NAT (sería DNAT).<br />
Editamos <strong>/etc/shorewall/masq</strong></p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#INTERFACE&nbsp; SOURCE&nbsp; &nbsp; &nbsp; ADDRESS &nbsp; &nbsp; PROTO &nbsp; PORT(S)</span><br />
eth1&nbsp; &nbsp; &nbsp; &nbsp; eth2</div></div>
<p><strong>* A partir de aquí empieza todo lo referente a QoS</strong></p>
<p>Definimos las interfaces que estarán en las reglas de QoS.<br />
Editamos <strong>/etc/shorewall/tcdevices</strong><br />
<em>En este caso tenemos 350kbit de subida y 6000kbit de bajada</em></p>
<blockquote><p>Aquí esta todo en OUT-BANDWIDTH porque lo que hacemos realmente es redirigir todo el tráfico entrante de eth1 ha ifb0 para que esta pueda rechazar paquetes simulando que no tiene ancho de banda suficiente. Esto no se puede hacer directamente sin ifb ya que no podemos decir al driver de la tarjeta que rechace determinados paquetes.</p></blockquote>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#NUMBER:&nbsp; &nbsp; IN-BANDWITH OUT-BANDWIDTH &nbsp; OPTIONS &nbsp; &nbsp; REDIRECTED</span><br />
<span style="color: #666666; font-style: italic;">#INTERFACE&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; INTERFACES</span><br />
<span style="color: #000000;">1</span>:eth1&nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; 350kbit &nbsp; &nbsp; classify<br />
<span style="color: #000000;">2</span>:ifb0&nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; 6000kbit&nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; eth1<br />
<span style="color: #666666; font-style: italic;">#LAST LINE -- ADD YOUR ENTRIES BEFORE THIS ONE -- DO NOT REMOVE</span></div></div>
<p>Definimos las <strong>class</strong> para la red.<br />
Editamos <strong>/etc/shorewall/tcclasses</strong></p>
<blockquote><p>Las clases son colas, igual que al llegar a aduanas. Una cola para personas del mismo país, otra para extranjeros, etc.. etc.. Pero al tratarse de una red lo que encolamos son paquetes. Con otro archivo diremos en que cola debe entrar cada tipo de conexión pero en este creamos los niveles. (<a href="http://shorewall.net/traffic_shaping.htm">más info</a>)</p></blockquote>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#INTERFACE:CLASS&nbsp; &nbsp; MARK&nbsp; &nbsp; RATE&nbsp; &nbsp; &nbsp; &nbsp; CEIL&nbsp; &nbsp; &nbsp; &nbsp; PRIORITY&nbsp; &nbsp; OPTIONS</span><br />
<span style="color: #000000;">1</span>:<span style="color: #000000;">110</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; <span style="color: #000000;">5</span><span style="color: #000000; font-weight: bold;">*</span>full<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span> &nbsp; full&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">1</span> &nbsp; &nbsp; &nbsp; tcp-ack,tos-minimize-delay<br />
<span style="color: #000000;">1</span>:<span style="color: #000000;">111</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; <span style="color: #000000;">5</span><span style="color: #000000; font-weight: bold;">*</span>full<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span> &nbsp; full&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">2</span> &nbsp; &nbsp; &nbsp; tos-minimize-delay<br />
<span style="color: #000000;">1</span>:<span style="color: #000000;">120</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; <span style="color: #000000;">4</span><span style="color: #000000; font-weight: bold;">*</span>full<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span> &nbsp; <span style="color: #000000;">8</span><span style="color: #000000; font-weight: bold;">*</span>full<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span> &nbsp; <span style="color: #000000;">3</span><br />
<span style="color: #000000;">1</span>:<span style="color: #000000;">130</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">*</span>full<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span> &nbsp; <span style="color: #000000;">6</span><span style="color: #000000; font-weight: bold;">*</span>full<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span> &nbsp; <span style="color: #000000;">4</span> &nbsp; &nbsp; &nbsp; default<br />
<span style="color: #000000;">1</span>:<span style="color: #000000;">140</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">*</span>full<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span> &nbsp; <span style="color: #000000;">4</span><span style="color: #000000; font-weight: bold;">*</span>full<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span> &nbsp; <span style="color: #000000;">5</span><br />
<span style="color: #000000;">2</span>:<span style="color: #000000;">110</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; <span style="color: #000000;">5</span><span style="color: #000000; font-weight: bold;">*</span>full<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span> &nbsp; full&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">1</span> &nbsp; &nbsp; &nbsp; tcp-ack,tos-minimize-delay<br />
<span style="color: #000000;">2</span>:<span style="color: #000000;">111</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; <span style="color: #000000;">5</span><span style="color: #000000; font-weight: bold;">*</span>full<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span> &nbsp; full&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">2</span> &nbsp; &nbsp; &nbsp; tos-minimize-delay<br />
<span style="color: #000000;">2</span>:<span style="color: #000000;">120</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; <span style="color: #000000;">4</span><span style="color: #000000; font-weight: bold;">*</span>full<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span> &nbsp; <span style="color: #000000;">8</span><span style="color: #000000; font-weight: bold;">*</span>full<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span> &nbsp; <span style="color: #000000;">3</span><br />
<span style="color: #000000;">2</span>:<span style="color: #000000;">130</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">*</span>full<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span> &nbsp; <span style="color: #000000;">6</span><span style="color: #000000; font-weight: bold;">*</span>full<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span> &nbsp; <span style="color: #000000;">4</span> &nbsp; &nbsp; &nbsp; default<br />
<span style="color: #000000;">2</span>:<span style="color: #000000;">140</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">*</span>full<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span> &nbsp; <span style="color: #000000;">4</span><span style="color: #000000; font-weight: bold;">*</span>full<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span> &nbsp; <span style="color: #000000;">5</span><br />
<span style="color: #666666; font-style: italic;">#LAST LINE -- ADD YOUR ENTRIES BEFORE THIS ONE -- DO NOT REMOVE</span></div></div>
<p>Ahora definimos que paquetes van por cada class.<br />
Editamos <strong>/etc/shorewall/tcfilters</strong><br />
<em>El tráfico más importante es el de icmp para establecer las conexiones, luego los puertos de mantenimiento como SSH (DNS también está en esta clase para que no tarde en buscar el host cada solicitud), luego puertos más utilizados para la red local (web, mail, etc..) y todo lo que no coincida con lo anterior lo mandaremos a la última class, la de menos peso.</em></p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;height:300px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#INTERFACE: SOURCE&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DEST&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PROTO &nbsp; DEST&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SOURCE</span><br />
<span style="color: #666666; font-style: italic;">#CLASS&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PORT(S) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PORT(S)</span><br />
<span style="color: #666666; font-style: italic;">#</span><br />
<span style="color: #666666; font-style: italic;"># &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OUTGOING TRAFFIC</span><br />
<span style="color: #666666; font-style: italic;">#</span><br />
1:120 &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tcp - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 80,443<br />
1:111 &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; udp - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1194<br />
1:111 &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tcp - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1194<br />
1:111 &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tcp - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #c20cb9; font-weight: bold;">ssh</span>,<span style="color: #000000;">53</span><br />
<span style="color: #000000;">1</span>:<span style="color: #000000;">111</span> &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; udp - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">53</span><br />
<span style="color: #000000;">1</span>:<span style="color: #000000;">110</span> &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; icmp&nbsp; &nbsp; echo-request,echo-reply<br />
<span style="color: #666666; font-style: italic;">#</span><br />
<span style="color: #666666; font-style: italic;"># &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; INCOMING TRAFFIC</span><br />
<span style="color: #666666; font-style: italic;">#</span><br />
2:120 &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tcp 80,443<br />
2:111 &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; udp 1194<br />
2:111 &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tcp 1194<br />
2:111 &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tcp <span style="color: #c20cb9; font-weight: bold;">ssh</span>,<span style="color: #000000;">53</span><br />
<span style="color: #000000;">2</span>:<span style="color: #000000;">111</span> &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; udp <span style="color: #000000;">53</span><br />
<span style="color: #000000;">2</span>:<span style="color: #000000;">110</span> &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; icmp&nbsp; &nbsp; echo-request,echo-reply<br />
<span style="color: #666666; font-style: italic;">#LAST LINE -- ADD YOUR ENTRIES BEFORE THIS ONE -- DO NOT REMOVE</span></div></div>
<p>Y listo, ejecutamos y a probar:</p>
<div class="codecolorer-container bash vibrant" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>shorewall start</div></div>
<p>ACTUALIZACIÓN (13/Oct/2009): Me equivoqué en la edición de &#8216;/etc/shorewall/tcfilters&#8217;, como está ahora mismo es la versión correcta.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.guero.net/2009/09/shorewall-en-ubuntu-firewall-qos-nat/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
